1 | #ifndef BNSWINDOW_H
|
---|
2 | #define BNSWINDOW_H
|
---|
3 |
|
---|
4 | #include <QtGui>
|
---|
5 | #include <QWhatsThis>
|
---|
6 |
|
---|
7 | #include "bns.h"
|
---|
8 |
|
---|
9 | class bnsAboutDlg : public QDialog {
|
---|
10 | Q_OBJECT
|
---|
11 | public:
|
---|
12 | bnsAboutDlg(QWidget* parent);
|
---|
13 | ~bnsAboutDlg();
|
---|
14 | };
|
---|
15 |
|
---|
16 | class bnsFlowchartDlg : public QDialog {
|
---|
17 | Q_OBJECT
|
---|
18 |
|
---|
19 | public:
|
---|
20 | bnsFlowchartDlg(QWidget* parent);
|
---|
21 | ~bnsFlowchartDlg();
|
---|
22 | };
|
---|
23 |
|
---|
24 | class bnsWindow : public QMainWindow {
|
---|
25 | Q_OBJECT
|
---|
26 |
|
---|
27 | public:
|
---|
28 | bnsWindow();
|
---|
29 | ~bnsWindow();
|
---|
30 |
|
---|
31 | public slots:
|
---|
32 | void slotMessage(const QByteArray msg);
|
---|
33 | void slotError(const QByteArray msg);
|
---|
34 |
|
---|
35 | private slots:
|
---|
36 | void slotHelp();
|
---|
37 | void slotAbout();
|
---|
38 | void slotFlowchart();
|
---|
39 | void slotFontSel();
|
---|
40 | void slotSaveOptions();
|
---|
41 | void slotWhatsThis();
|
---|
42 | void slotStart();
|
---|
43 | void slotStop();
|
---|
44 | void slotEphBytes(int nBytes);
|
---|
45 | void slotClkBytes(int nBytes);
|
---|
46 | void slotOutBytes(int nBytes);
|
---|
47 |
|
---|
48 | protected:
|
---|
49 | virtual void closeEvent(QCloseEvent *);
|
---|
50 |
|
---|
51 | private:
|
---|
52 | void CreateMenu();
|
---|
53 | void AddToolbar();
|
---|
54 | void deleteBns();
|
---|
55 | void updateStatus(int ii, int nBytes);
|
---|
56 |
|
---|
57 | QMenu* _menuHlp;
|
---|
58 | QMenu* _menuFile;
|
---|
59 |
|
---|
60 | QAction* _actHelp;
|
---|
61 | QAction* _actAbout;
|
---|
62 | QAction* _actFlowchart;
|
---|
63 | QAction* _actFontSel;
|
---|
64 | QAction* _actSaveOpt;
|
---|
65 | QAction* _actQuit;
|
---|
66 | QAction* _actWhatsThis;
|
---|
67 | QAction* _actStart;
|
---|
68 | QAction* _actStop;
|
---|
69 |
|
---|
70 | QWidget* _canvas;
|
---|
71 |
|
---|
72 | QLineEdit* _proxyHostLineEdit;
|
---|
73 | QLineEdit* _proxyPortLineEdit;
|
---|
74 | QLineEdit* _inpEchoLineEdit;
|
---|
75 | QLineEdit* _ephHostLineEdit;
|
---|
76 | QLineEdit* _ephPortLineEdit;
|
---|
77 | QLineEdit* _ephEchoLineEdit;
|
---|
78 | QLineEdit* _clkPortLineEdit;
|
---|
79 | QLineEdit* _logFileLineEdit;
|
---|
80 | QLineEdit* _outHostLineEdit;
|
---|
81 | QLineEdit* _outPortLineEdit;
|
---|
82 | QLineEdit* _passwordLineEdit;
|
---|
83 | QLineEdit* _mountpoint_1_LineEdit;
|
---|
84 | QLineEdit* _mountpoint_2_LineEdit;
|
---|
85 | QLineEdit* _outFile_1_LineEdit;
|
---|
86 | QLineEdit* _outFile_2_LineEdit;
|
---|
87 | QComboBox* _refSys_1_ComboBox;
|
---|
88 | QComboBox* _refSys_2_ComboBox;
|
---|
89 | QLineEdit* _rnxPathLineEdit;
|
---|
90 | QLineEdit* _sp3PathLineEdit;
|
---|
91 | QComboBox* _rnxIntrComboBox;
|
---|
92 | QComboBox* _sp3IntrComboBox;
|
---|
93 | QSpinBox* _rnxSamplSpinBox;
|
---|
94 | QSpinBox* _sp3SamplSpinBox;
|
---|
95 | QCheckBox* _fileAppendCheckBox;
|
---|
96 |
|
---|
97 | QTextEdit* _log;
|
---|
98 |
|
---|
99 | //QWidget* _status;
|
---|
100 | QGroupBox* _status;
|
---|
101 | QLabel* _statusLbl[6];
|
---|
102 | double _statusCnt[3];
|
---|
103 | QMutex _mutex;
|
---|
104 |
|
---|
105 | t_bns* _bns;
|
---|
106 | };
|
---|
107 | #endif
|
---|