summaryrefslogtreecommitdiff
path: root/src/entryLayout.h
blob: 54e523f0792fc32d2bb1d67cbf95ac1c9b677026 (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
32
#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 cloneEntry();
		void removeEntry();
};

#endif