-
Notifications
You must be signed in to change notification settings - Fork 7
/
cmddialog.h
41 lines (33 loc) · 858 Bytes
/
cmddialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CMDDIALOG_H
#define CMDDIALOG_H
#include <QDialog>
#include "iec104driver.h"
#include "tablemodel.h"
namespace Ui {
class CmdDialog;
}
class CmdDialog : public QDialog
{
Q_OBJECT
public:
explicit CmdDialog( IEC104Driver *pDriver,QSettings *pSettings, TableModel *cmdTable, QWidget *parent = 0);
~CmdDialog();
private:
Ui::CmdDialog *ui;
QSettings *pSett=nullptr;
IEC104Driver *pDriver=nullptr;
// QList<CIECSignal> *pCmdList=nullptr;
void ShowWarning();
QList<CIECSignal> filteredList;
TableModel *cmdTable=nullptr;
void FilterCommands(uint type);
void SendCommand(bool isActivate);
public slots:
void reject();
void OnActivateCommand();
void OnDeactivateCommand();
void OnTypeChanged(int);
void OnCommandSelected(int);
void OnEditCommandList();
};
#endif // CMDDIALOG_H