summaryrefslogtreecommitdiff
path: root/src/assignmentList.h
blob: c21ca15f5e35f65a25cbadd0544641edef0cf9bb (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
44
45
46
47
48
#ifndef ASSIGNMENTLIST_H
#define ASSIGNMENTLIST_H

#include <QMainWindow>
#include <QSettings>

#include "ui_assignmentList.h"

class AssignmentList : public QMainWindow {
	Q_OBJECT

	public:
		QSettings configuration;

		AssignmentList();

	private:
		Ui::MainWindow ui;

		void initializeSettings();
		void initializeUI();
		void displayDate();
		void displayWidgets();
		void editGroup(int id);
		void removeGroup(int id);
		void groupContextMenu(int group_id);
		void addEntry(int parent); // TODO figure out type for parameter
		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();

		// helpers
		// used to clear out the grid layout when a refresh occurs
		void recursiveClear(QLayout *layout);

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

#endif