From 3e1d2e46ceea202120b4ff814fbd872bc6fc60f3 Mon Sep 17 00:00:00 2001 From: Louie S Date: Thu, 14 Mar 2024 18:46:37 -0400 Subject: RulesDialog menu working (functionality WIP) --- src/rulesDialog.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/rulesDialog.h (limited to 'src/rulesDialog.h') 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 + +#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 rules; + + void updateRulesList(); + + private slots: + void addRule(); + void deleteRule(int i); +}; + +#endif -- cgit