-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathProjectComboBox.h
50 lines (32 loc) · 1.04 KB
/
ProjectComboBox.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
#ifndef PROJECT_COMBO_BOX
#define PROJECT_COMBO_BOX
#include <QComboBox>
class Project;
/**************************************************************************
* Wrap the QComboBox class to customize for our needs.
**************************************************************************/
class ProjectComboBox : public QComboBox {
Q_OBJECT
public:
ProjectComboBox(QWidget *parent);
~ProjectComboBox();
/* Eliminate default copy constructor and assignment operator */
ProjectComboBox(const ProjectComboBox&)= delete;
ProjectComboBox& operator=(const ProjectComboBox&)= delete;
void addProjectSorted(Project *prj);
int64_t ndx2Project_id(int ndx);
Project* ndx2Project(int ndx);
void populate();
int project_id2ndx(int64_t prj_id);
void removeItem(int ndx);
private slots:
void storeSettings();
void project_insert(int64_t);
void project_update(int64_t);
void project_remove(int64_t);
void event_insert(int64_t);
void event_update(int64_t);
void event_remove(int64_t);
private:
};
#endif