40 lines
905 B
C++
40 lines
905 B
C++
#ifndef VIEWTRIGGERCONFIG_H
|
|
#define VIEWTRIGGERCONFIG_H
|
|
|
|
#include <QWidget>
|
|
#include "global.h"
|
|
#include "sqlitedb.h"
|
|
#include <QStandardItemModel>
|
|
#include "TableHeaderView.h"
|
|
|
|
namespace Ui {
|
|
class ViewTriggerConfig;
|
|
}
|
|
|
|
class ViewTriggerConfig : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void on_pushButton_del_clicked();
|
|
|
|
void on_comboBox_workCondition_currentTextChanged(const QString &arg1);
|
|
signals:
|
|
void deleteTriggerEvent_sg();
|
|
public:
|
|
explicit ViewTriggerConfig(QWidget *parent = nullptr);
|
|
~ViewTriggerConfig();
|
|
|
|
private:
|
|
Ui::ViewTriggerConfig *ui;
|
|
QString headerStr ;
|
|
TableHeaderView *myHeader;
|
|
QStandardItemModel *model;
|
|
QString m_strWorkCondition;
|
|
QVector<WorkCondition_t> m_WorkCondition;
|
|
QVector<TriggerConfig_t> m_vecTriggerConfig;
|
|
void LoadTriggerConfig(const QString& strWorkCondition);
|
|
|
|
};
|
|
|
|
#endif // VIEWTRIGGERCONFIG_H
|