diff options
Diffstat (limited to 'src/frontend/qtwidgets/ruleLayout.h')
-rw-r--r-- | src/frontend/qtwidgets/ruleLayout.h | 27 |
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 |