2023-05-17 17:40:32 -04:00
|
|
|
#ifndef CANVAS_H
|
|
|
|
#define CANVAS_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QChart>
|
|
|
|
#include <QChartView>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QGroupBox>
|
|
|
|
|
|
|
|
#include "macro.h"
|
|
|
|
#include "ClassDigitizer.h"
|
|
|
|
#include "CustomThreads.h"
|
|
|
|
#include "CustomWidgets.h"
|
|
|
|
|
|
|
|
|
|
|
|
//^====================================================
|
|
|
|
//^====================================================
|
|
|
|
class Canvas : public QMainWindow{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-05-18 17:14:24 -04:00
|
|
|
Canvas(Digitizer ** digi, unsigned int nDigi, QMainWindow * parent = nullptr);
|
2023-05-17 17:40:32 -04:00
|
|
|
~Canvas();
|
|
|
|
|
2023-05-18 17:14:24 -04:00
|
|
|
public slots:
|
|
|
|
void UpdateCanvas();
|
2023-05-19 16:23:04 -04:00
|
|
|
void ChangeHistView();
|
2023-05-17 17:40:32 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Digitizer ** digi;
|
|
|
|
unsigned short nDigi;
|
|
|
|
|
2023-05-19 16:23:04 -04:00
|
|
|
Histogram * hist[MaxNDigitizer][MaxNChannels];
|
2023-05-26 18:06:37 -04:00
|
|
|
RChartView * histView[MaxNDigitizer][MaxNChannels];
|
2023-05-19 16:23:04 -04:00
|
|
|
|
|
|
|
RComboBox * cbDivision;
|
|
|
|
|
|
|
|
RComboBox * cbDigi;
|
|
|
|
RComboBox * cbCh;
|
|
|
|
|
|
|
|
QGroupBox * histBox;
|
|
|
|
QGridLayout * histLayout;
|
|
|
|
int oldBd, oldCh;
|
2023-05-17 17:40:32 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|