SOLARIS_QT6_DAQ/mainwindow.h

66 lines
1.2 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QMainWindow>
#include <QTabWidget>
#include <QPlainTextEdit>
#include <QThread>
#include <qdebug.h>
#include <QDateTime>
#include <QScrollBar>
#include <QPushButton>
#include <vector>
#include "ClassDigitizer2Gen.h"
#include "digiSettings.h"
static Digitizer2Gen * digi = NULL;
class MainWindow : public QMainWindow{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
//void onThreadStarted(){ qDebug() << "kkkkkkkkkkk"; }
//void onThreadFinished(){ qDebug() << "thread done"; }
void bnOpenDigitizers_clicked();
void bnCloseDigitizers_clicked();
void OpenDigitizersSettings();
signals :
private:
QPushButton * bnProgramSettings;
QPushButton * bnOpenDigitizers;
QPushButton * bnCloseDigitizers;
QPushButton * bnDigiSettings;
QPushButton * bnStartACQ;
QPushButton * bnStopACQ;
DigiSettings * digiSetting;
QPlainTextEdit * logInfo;
unsigned short nDigi;
std::vector<unsigned short> digiSerialNum;
//QThread * StartRunThread;
void LogMsg(QString msg);
};
#endif // MAINWINDOW_H