-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
94 lines (70 loc) · 1.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include <QMdiArea>
#include <QToolBar>
#include <QMainWindow>
#include <QMessageBox>
class ConnDialog;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = 0);
public slots:
void retranslateUi();
protected:
void closeEvent(QCloseEvent*);
private slots:
void grabWidget();
void aboutThisApp();
void updateActions();
void changePasswordDialog();
void connInfoDialog();
void closeSubWindow();
void closeAllSubWindows();
void setTabbedViewMode(bool);
void showParamsDialog();
void showUserAdminDialog();
void handleConnection();
void showTestSW();
private:
void openSubWindow(QWidget *);
bool confirmAction(const QString &);
bool authenticateUser(const QString &);
void readSettings();
void writeSettings();
void createToolBars();
void createMenus();
void createStatusBar();
void createActions();
void createWidgets();
void setupUi();
void connectSlots();
bool connected;
QAction * actNextSubWindow;
QAction * actPrevSubWindow;
QAction * actCloseSubWindow;
QAction * actCloseAllSubWindows;
QAction * actCascadeSubWindows;
QAction * actTileSubWindows;
QAction * actSetTabbedMdiViewMode;
QAction * actPwChange;
QAction * actConInfo;
QAction * actExit;
QAction * actAboutThisApp;
QAction * actParamsSwnd;
QAction * actUserAdmin;
QAction * actGrabScr;
QAction * actTestSW;
QMdiArea * mdiArea;
QToolBar * mdiToolBar;
QMenuBar * mainMenuBar;
QMenu * menuApp;
QMenu * menuRegs;
QMenu * menuMvmt;
QMenu * menuReps;
QMenu * menuHelp;
ConnDialog *cdlg;
};
#endif // MAINWINDOW_H