forked from foldynl/QLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlertRuleDetail.h
40 lines (30 loc) · 855 Bytes
/
AlertRuleDetail.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
#ifndef QLOG_UI_ALERTRULEDETAIL_H
#define QLOG_UI_ALERTRULEDETAIL_H
#include <QDialog>
#include <QCheckBox>
#include "core/AlertEvaluator.h"
namespace Ui {
class AlertRuleDetail;
}
class AlertRuleDetail : public QDialog
{
Q_OBJECT
public:
explicit AlertRuleDetail(const QString &ruleName, QWidget *parent);
~AlertRuleDetail();
public slots:
void save();
void ruleNameChanged(const QString&);
void callsignChanged(const QString&);
void spotCommentChanged(const QString&);
private:
Ui::AlertRuleDetail *ui;
QString ruleName;
QStringList ruleNamesList;
QList<QCheckBox*> memberListCheckBoxes;
private:
bool ruleExists(const QString &ruleName);
void loadRule(const QString &ruleName);
void generateMembershipCheckboxes(const AlertRule * rule = nullptr);
};
#endif // QLOG_UI_ALERTRULEDETAIL_H