diff options
Diffstat (limited to 'src/rulesDialog.h')
-rw-r--r-- | src/rulesDialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/rulesDialog.h b/src/rulesDialog.h new file mode 100644 index 0000000..8f0fd81 --- /dev/null +++ b/src/rulesDialog.h @@ -0,0 +1,30 @@ +#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; + + void updateRulesList(); + + private slots: + void addRule(); + void deleteRule(int i); +}; + +#endif |