-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
52 lines (37 loc) · 913 Bytes
/
mainwindow.h
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
49
50
51
52
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class TimeContainer;
class QWidget;
class QTableView;
class QPushButton;
class QModelIndex;
class HotkeyEventFilter;
class QDir;
class QItemSelection;
class TaskModelIo;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
private slots:
void onNextClicked();
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void onEndOfDayClicked();
void onPaste();
void onDeleteSelectedTask();
private:
QWidget *m_content;
TimeContainer *m_time_container;
QTableView *m_task_list;
QPushButton *m_next;
QPushButton *m_end;
HotkeyEventFilter *m_hotkey;
TaskModelIo *m_task_model_io;
static const QDir m_file_location;
static const QString m_file_name;
};
#endif // MAINWINDOW_H