summaryrefslogtreecommitdiff
path: root/src/assignmentList.h
blob: 4b792fa7300f083c1a0bb5606903e0ef0bfadb6d (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
33
34
35
36
37
38
39
40
41
42
43
#ifndef ASSIGNMENTLIST_H
#define ASSIGNMENTLIST_H

#include <QMainWindow>
#include <QSettings>
#include <QVBoxLayout>

#include "ui_assignmentList.h"

class AssignmentList : public QMainWindow {
	Q_OBJECT

	public:
		QSettings configuration;

		AssignmentList();
		void initializeGlobals();
		void displayWidgets();

	private:
		Ui::MainWindow ui;

		void initializeSettings();
		void initializeUI();
		void displayDate();
		QVBoxLayout *drawEntries(int parent_id);
		void editEntry(int id);
		void toggleDoneEntry(int id);
		void removeEntry(int id);
		void editRules(int id);
		void entryContextMenu(int entry_id);
		void drawGroups();
		void drawEntries();

	private slots:
		void preferences();
		void reload();
		void addGroup();
		void cleanHidden();
		void aboutDialog();
};

#endif