#include "gui/failedfilesdialog.h"
#include <QDebug>
-const QString DataFilesLoader::ME_SENDER_STR("DataFilesLoader");
-
DataFilesLoader::DataFilesLoader(QObject *parent) :
QObject(parent)
{
private:
QStringList m_supportedFileTypes;
- static const QString ME_SENDER_STR;
-
signals:
public slots:
#include <QDebug>
-const QString DataManager::ME_SENDER_STR("DataManager");
const char DataManager::UNIT_DEGREES_CELSIUS_TEXT[] = {static_cast<char>(0xB0), 0x43, 0x00};
const char DataManager::UNIT_KILOVOLTS_TEXT[] = {0x4B, 0x56, 0x00};
const char DataManager::UNIT_KILOVOLTS_ALT1_TEXT[] = {0x6B, 0x56, 0x00};
ExportRawDataDialog m_exportRawDataDialog;
ExportGraphToImageDialog m_graphToImageExportDialog;
- static const QString ME_SENDER_STR;
static const char UNIT_DEGREES_CELSIUS_TEXT[];
static const char UNIT_KILOVOLTS_TEXT[];
static const char UNIT_KILOVOLTS_ALT1_TEXT[];
#include <QDebug>
const double GraphView::DEFAULT_Y_MARGIN = 0.05;
-const QString GraphView::ME_SENDER_STR("GraphView");
GraphView::GraphView(std::shared_ptr<SignalController> controller, QWidget* parent) :
QWidget(parent), SignalDrawer(controller, Constraints(SignalController::RELATIVE_MIN, RELATIVE_Y_MIN_WITH_MARGIN(), SignalController::RELATIVE_MAX,
int m_zoomRectLastYPix;
static const double DEFAULT_Y_MARGIN;
- static const QString ME_SENDER_STR;
private slots:
void onCtxMenuDeletePeak(const QPoint pixPos);
QPoint m_relPixPos;
- static const QString ME_SENDER_STR;
-
private slots:
void onDeletePeakTriggered();
void onZoomOutTriggered();
#include "logger.h"
#include <QtCore/QLocale>
-const QString IntegrationTableModel::ME_SENDER_STR("IntegrationTableModel");
-
IntegrationTableModel::IntegrationTableModel(const std::shared_ptr<Integrator> integrator, QObject* parent) :
QAbstractTableModel(parent),
m_integrator(integrator)
private:
const std::shared_ptr<Integrator> m_integrator;
- static const QString ME_SENDER_STR;
-
public slots:
void prepToAdd(const int idx);
void prepToDelete(const int idx);
#include <QDebug>
-const QString Integrator::ME_SENDER_STR("Integrator");
-
Integrator::Integrator(std::shared_ptr<Signal> signal, QObject* parent) :
QObject(parent),
m_peakCount(0),
PeakMap m_peakMap;
std::shared_ptr<Signal> m_signal;
- static const QString ME_SENDER_STR;
-
signals:
void addingPeak(const int idx);
void deletingPeak(const int idx);
#define __QFUNC__ QString(__func__) + QString("()")
+#define ME_SENDER_STR typeid(*this).name()
+#define ME_SENDER_STR_S(ptr) typeid(*ptr).name()
+
class LocalLogger;
typedef std::shared_ptr<LocalLogger> LocalLoggerPtr;
const double SignalController::RELATIVE_MAX = 1.0;
const double SignalController::RELATIVE_MIN = 0.0;
-const QString SignalController::ME_SENDER_STR("SignalController");
const QString SignalController::KEY_PEAKS("peaks");
void drawIntegratedPeak(const std::shared_ptr<const IntegratedPeak> peak);
PeakDrawData genPeakDrawData(const std::shared_ptr<const IntegratedPeak> peak);
- static const QString ME_SENDER_STR;
-
static const QString KEY_PEAKS;
public slots:
#include <QFontMetrics>
#include <QDebug>
-const QString SignalDrawer::ME_SENDER_STR("SignalDrawer");
const int SignalDrawer::AXIS_LABEL_BORDER_OFFSET(2);
const int SignalDrawer::AXIS_LABEL_SCALE_OFFSET(3);
const int SignalDrawer::MAXIMAL_AXIS_BIGTICK_STEP(75);
const QString m_xAxisLabelText;
const QString m_yAxisLabelText;
-
- static const QString ME_SENDER_STR;
-
};
#endif // SIGNALDRAWER_H
#include <QtCore/QJsonValue>
#include <QtWidgets/QMessageBox>
-const QString SingleRunData::ME_SENDER_STR("SingleRunData");
-
SingleRunData::SingleRunData(const QString& methodName, const QString& operatorName, const QString& sampleInfo, const QDate date, const QTime time,
SignalsMap& sigs, SignalControllersMap& ctrls,
const QString& dirname, const QString& absPath, QObject *parent) :
SignalsMap m_signals;
const QTime m_time;
- static const QString ME_SENDER_STR;
-
signals:
public slots:
QVariant UserSettings::get(const QString key)
{
if (s_me == nullptr) {
- Logger::log(Logger::Level::ERROR, "UserSettings", __QFUNC__ + "UserSettings not initialized");
+ Logger::log(Logger::Level::ERROR, ME_SENDER_STR_S(s_me), __QFUNC__ + "UserSettings not initialized");
return QVariant();
}
std::lock_guard<std::mutex> lk(s_me->m_lock);
QVariant v = s_me->m_settings[key.toLower()];
- Logger::log(Logger::Level::DEBUG, "UserSettings ", __QFUNC__ + QString("Key: %1, Value: %2").arg(key).arg(v.toString()));
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR_S(s_me), __QFUNC__ + QString("Key: %1, Value: %2").arg(key).arg(v.toString()));
return v;
}