SOLARIS_QT6_DAQ/mainwindow.h

66 lines
1.2 KiB
C
Raw Normal View History

2023-01-25 14:59:48 -05:00
#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>
2023-01-25 17:16:14 -05:00
#include <vector>
2023-01-25 14:59:48 -05:00
#include "ClassDigitizer2Gen.h"
2023-01-25 17:16:14 -05:00
#include "digiSettings.h"
2023-01-25 14:59:48 -05:00
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();
2023-01-25 17:16:14 -05:00
void OpenDigitizersSettings();
2023-01-25 14:59:48 -05:00
signals :
private:
QPushButton * bnProgramSettings;
QPushButton * bnOpenDigitizers;
QPushButton * bnCloseDigitizers;
QPushButton * bnDigiSettings;
QPushButton * bnStartACQ;
QPushButton * bnStopACQ;
2023-01-25 17:16:14 -05:00
DigiSettings * digiSetting;
2023-01-25 14:59:48 -05:00
QPlainTextEdit * logInfo;
unsigned short nDigi;
2023-01-25 17:16:14 -05:00
std::vector<unsigned short> digiSerialNum;
2023-01-25 14:59:48 -05:00
//QThread * StartRunThread;
void LogMsg(QString msg);
};
#endif // MAINWINDOW_H