SOLARIS_QT6_DAQ/digiSettings.h

58 lines
1.0 KiB
C
Raw Normal View History

2023-01-25 17:16:14 -05:00
#ifndef DigiSettings_H
#define DigiSettings_H
#include <QWidget>
2023-01-26 19:12:18 -05:00
#include <QLineEdit>
#include <QSpinBox>
#include <QDoubleSpinBox>
#include <QGridLayout>
#include <QScrollArea>
#include <QTabWidget>
#include <QGroupBox>
#include <QCheckBox>
#include <QComboBox>
#include <QTableWidget>
#include <QDebug>
#include <QPushButton>
#include <QFrame>
#include <QSignalMapper>
2023-01-25 17:16:14 -05:00
#include "ClassDigitizer2Gen.h"
class DigiSettings : public QWidget{
Q_OBJECT
public:
DigiSettings(Digitizer2Gen * digi, unsigned short nDigi, QWidget * parent = nullptr);
~DigiSettings();
private slots:
2023-01-26 19:12:18 -05:00
void onTriggerClick(int haha){
unsigned short ch = haha/100;
unsigned short ch2 = haha - ch*100;
if(bnClickStatus[ch][ch2]){
bn[ch][ch2]->setStyleSheet("");
bnClickStatus[ch][ch2] = false;
}else{
bn[ch][ch2]->setStyleSheet("background-color: red;");
bnClickStatus[ch][ch2] = true;
}
}
2023-01-25 17:16:14 -05:00
signals:
private:
Digitizer2Gen * digi;
unsigned short nDigi;
2023-01-26 19:12:18 -05:00
QPushButton *bn[64][64];
bool bnClickStatus[64][64];
2023-01-25 17:16:14 -05:00
};
#endif