summaryrefslogtreecommitdiff
path: root/src/frontend/qtwidgets/ruleLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qtwidgets/ruleLayout.h')
-rw-r--r--src/frontend/qtwidgets/ruleLayout.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/frontend/qtwidgets/ruleLayout.h b/src/frontend/qtwidgets/ruleLayout.h
new file mode 100644
index 0000000..29a4deb
--- /dev/null
+++ b/src/frontend/qtwidgets/ruleLayout.h
@@ -0,0 +1,27 @@
+#ifndef RULELAYOUT_H
+#define RULELAYOUT_H
+
+#include <QComboBox>
+#include <QDate>
+#include <QDateTimeEdit>
+#include <QHBoxLayout>
+#include <QLineEdit>
+#include <QPushButton>
+
+#include "rule.h"
+
+class RuleLayout : public QHBoxLayout {
+ Q_OBJECT
+
+ public:
+ Rule rule;
+ QComboBox *when_widget;
+ QDateTimeEdit *date_widget;
+ QLineEdit *color_widget; // TODO consider making this a color selector widget
+ QLineEdit *highlight_widget; // TODO consider making this a color selector widget
+ QPushButton *del_button;
+
+ RuleLayout(const Rule &r);
+};
+
+#endif