blob: 7e74dc29d3b1ff9ced97e2eeac988edcedd7eab2 (
plain)
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
|
#ifndef RULESDIALOG_H
#define RULESDIALOG_H
#include <QDialog>
#include "entry.h"
#include "rule.h"
#include "ui_rulesDialog.h"
// show the list of rules associated with an entry
class RulesDialog : public QDialog {
Q_OBJECT
public:
RulesDialog(const Entry &entry);
void drawRules();
private:
Ui::rulesDialog ui;
int entry_id;
QList<Rule> rules;
QList<Rule> deleted_rules;
void updateRulesList();
private slots:
void addRule();
void deleteRule(int i);
void accept();
};
#endif
|