-
Notifications
You must be signed in to change notification settings - Fork 3
/
ProjectPage.h
58 lines (38 loc) · 895 Bytes
/
ProjectPage.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
53
54
55
56
57
58
#ifndef PROJECTPAGE_H
#define PROJECTPAGE_H
#include <QWidget>
#include "qtimemage.h"
class Project;
class QMenu;
class QLabel;
class QAction;
class QGroupBox;
class QSplitter;
class EventTreeWidget;
class EventTreeWidgetItem;
//class QTreeWidgetItem;
class QShowEvent;
/* Show the working UI for a single project */
class ProjectPage : public QWidget {
Q_OBJECT
public:
ProjectPage(QWidget *parent=0);
~ProjectPage();
void setProject(int64_t prj_id);
Project* project();
private slots:
void storeSettings();
void project_update(int64_t prj_id);
protected:
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private:
int64_t _project_id;
QGroupBox *_project_gb;
QLabel *_rate_lbl,
*_charge_quantum_lbl;
QSplitter *_splt;
EventTreeWidget *_event_trw;
bool _do_storeSettings;
};
#endif // PROJECTPAGE_H