entermode.h
83 lines
| 1.9 KiB
| text/x-c
|
CLexer
/ rmapplugin / entermode.h
r46 | #ifndef ENTERMODE_H | |||
#define ENTERMODE_H | ||||
#include <QWidget> | ||||
#include <QPushButton> | ||||
#include <QGridLayout> | ||||
#include <QGroupBox> | ||||
r50 | #include <QVBoxLayout> | |||
r62 | #include <QLabel> | |||
#include <QRadioButton> | ||||
r46 | ||||
#include <TC_types.h> | ||||
#include <parameterdump.h> | ||||
r57 | //#include <arbitrarytime.h> | |||
r46 | ||||
class EnterMode : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit EnterMode(QWidget *parent = 0); | ||||
void sendEnterMode(unsigned char mode); | ||||
r62 | void setTimeToSend( ); | |||
r46 | ||||
QPushButton *button_enterModeStandby; | ||||
QPushButton *button_enterModeNormal; | ||||
QPushButton *button_enterModeBurst; | ||||
QPushButton *button_enterModeSBM1; | ||||
QPushButton *button_enterModeSBM2; | ||||
r50 | QPushButton *button_reset; | |||
QPushButton *button_updateInfo; | ||||
QPushButton *button_enableCalibration; | ||||
QPushButton *button_disableCalibration; | ||||
QPushButton *button_updateTime; | ||||
r46 | QGridLayout *mainLayout; | |||
QGridLayout *overallLayout; | ||||
r50 | QVBoxLayout *layout_updateTime; | |||
QVBoxLayout *layout_otherTC; | ||||
r46 | QGroupBox *groupBox; | |||
r50 | QGroupBox *groupBox_updateTime; | |||
QGroupBox *groupBox_otherTC; | ||||
r46 | ||||
ParameterDump *parameterDump; | ||||
r50 | ||||
r62 | unsigned int lastTMTime; | |||
unsigned int timeToSend; | ||||
QLabel *label_lastTMTime; | ||||
QRadioButton *radio_minus1; | ||||
QRadioButton *radio_plus0; | ||||
QRadioButton *radio_plus1; | ||||
QRadioButton *radio_plus2; | ||||
QRadioButton *radio_plus3; | ||||
QRadioButton *radio_plus4; | ||||
r57 | // ArbitraryTime *arbitraryTime; | |||
r46 | ||||
signals: | ||||
unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | ||||
public slots: | ||||
void enterModeStandby(); | ||||
void enterModeNormal(); | ||||
void enterModeBurst(); | ||||
void enterModeSBM1(); | ||||
void enterModeSBM2(); | ||||
r50 | ||||
void sendUpdateTime(); | ||||
void sendReset(); | ||||
void sendUpdateInfo(); | ||||
void sendEnableCalibration(); | ||||
void sendDisableCalibration(); | ||||
r62 | ||||
void lastTMTimeHasChanged( unsigned int lastTime ); | ||||
r46 | ||||
}; | ||||
#endif // ENTERMODE_H | ||||