summaryrefslogtreecommitdiff
path: root/src/entryLayout.h
blob: df19a18300417aa1b814eddeb86bfef32f58031b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ENTRYLAYOUT_H
#define ENTRYLAYOUT_H

#include <QDateTime>
#include <QHBoxLayout>
#include <QString>
#include <QUrl>

#include "entry.h"
#include "rule.h"

class EntryLayout : public QHBoxLayout {
	Q_OBJECT

	public:
		Entry entry;

		EntryLayout(const Entry &e);

	private:
		QList<Rule *> loadRules();

	private slots:
		void showContextMenu();
		void editEntry();
		void setRules();
		void toggleDone();
		void removeEntry();
};

#endif