-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.h
60 lines (44 loc) · 1.08 KB
/
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
53
54
55
56
57
58
59
60
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMap>
class QTabWidget;
class ClientTabBar;
class Client;
class ClientPage;
class MainToolBar;
class QSystemTrayIcon;
class MainWindow:public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget * parent = 0);
~MainWindow();
signals:
void sig_currentClient(int64_t client_id);
public slots:
void showProject(int64_t prj_id);
private slots:
void show_errMsg(const QString& msg);
void storeSettings();
void currentClientChanged(int ndx);
void populate_clients();
void clientTabMoved();
void client_insert(int64_t);
void client_update(int64_t);
void client_remove(int64_t);
void event_insert(int64_t);
void event_update(int64_t);
void event_remove(int64_t);
protected:
void closeEvent(QCloseEvent *event) override;
private:
int findClientNdx(int64_t client_id);
int findProjectClientNdx(int64_t prj_id);
int64_t currentClient_id();
struct {
ClientTabBar *tb;
ClientPage *pg;
} _client;
MainToolBar *_main_tb;
};
#endif // MAINWINDOW_H