diff options
author | Louie S <louie@example.com> | 2024-03-14 18:46:37 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-14 18:46:37 -0400 |
commit | 3e1d2e46ceea202120b4ff814fbd872bc6fc60f3 (patch) | |
tree | dedaca23bdfb6ea98d092585de02e87b79d32b8f /src/rulesDialog.h | |
parent | 2e4227a8875dc9a25dd92d46d2f71eff7ae1499a (diff) |
RulesDialog menu working (functionality WIP)
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 |