[748] | 1 | #ifndef BNSWINDOW_H
|
---|
| 2 | #define BNSWINDOW_H
|
---|
| 3 |
|
---|
| 4 | #include <QtGui>
|
---|
[749] | 5 | #include <QWhatsThis>
|
---|
[1771] | 6 | #include <QMessageBox>
|
---|
[748] | 7 |
|
---|
[757] | 8 | #include "bns.h"
|
---|
| 9 |
|
---|
[749] | 10 | class bnsAboutDlg : public QDialog {
|
---|
| 11 | Q_OBJECT
|
---|
| 12 | public:
|
---|
| 13 | bnsAboutDlg(QWidget* parent);
|
---|
| 14 | ~bnsAboutDlg();
|
---|
| 15 | };
|
---|
| 16 |
|
---|
[998] | 17 | class bnsFlowchartDlg : public QDialog {
|
---|
| 18 | Q_OBJECT
|
---|
| 19 |
|
---|
| 20 | public:
|
---|
| 21 | bnsFlowchartDlg(QWidget* parent);
|
---|
| 22 | ~bnsFlowchartDlg();
|
---|
| 23 | };
|
---|
| 24 |
|
---|
[748] | 25 | class bnsWindow : public QMainWindow {
|
---|
| 26 | Q_OBJECT
|
---|
| 27 |
|
---|
| 28 | public:
|
---|
[758] | 29 | bnsWindow();
|
---|
[748] | 30 | ~bnsWindow();
|
---|
| 31 |
|
---|
| 32 | public slots:
|
---|
[750] | 33 | void slotMessage(const QByteArray msg);
|
---|
[760] | 34 | void slotError(const QByteArray msg);
|
---|
[2138] | 35 | void slotBnsTextChanged();
|
---|
[1771] | 36 | void customTrafo(const QString &text);
|
---|
[748] | 37 |
|
---|
| 38 | private slots:
|
---|
[749] | 39 | void slotHelp();
|
---|
| 40 | void slotAbout();
|
---|
[998] | 41 | void slotFlowchart();
|
---|
[749] | 42 | void slotFontSel();
|
---|
| 43 | void slotSaveOptions();
|
---|
| 44 | void slotWhatsThis();
|
---|
[754] | 45 | void slotStart();
|
---|
| 46 | void slotStop();
|
---|
[1058] | 47 | void slotEphBytes(int nBytes);
|
---|
| 48 | void slotClkBytes(int nBytes);
|
---|
[1258] | 49 | void slotOutBytes1(int nBytes);
|
---|
| 50 | void slotOutBytes2(int nBytes);
|
---|
[1728] | 51 | void slotOutBytes3(int nBytes);
|
---|
[1803] | 52 | void slotOutEphBytes(int nBytes);
|
---|
[748] | 53 |
|
---|
| 54 | protected:
|
---|
[749] | 55 | virtual void closeEvent(QCloseEvent *);
|
---|
[748] | 56 |
|
---|
| 57 | private:
|
---|
[749] | 58 | void CreateMenu();
|
---|
| 59 | void AddToolbar();
|
---|
[760] | 60 | void deleteBns();
|
---|
[1058] | 61 | void updateStatus(int ii, int nBytes);
|
---|
[748] | 62 |
|
---|
[749] | 63 | QMenu* _menuHlp;
|
---|
| 64 | QMenu* _menuFile;
|
---|
| 65 |
|
---|
| 66 | QAction* _actHelp;
|
---|
| 67 | QAction* _actAbout;
|
---|
[998] | 68 | QAction* _actFlowchart;
|
---|
[749] | 69 | QAction* _actFontSel;
|
---|
| 70 | QAction* _actSaveOpt;
|
---|
| 71 | QAction* _actQuit;
|
---|
[754] | 72 | QAction* _actWhatsThis;
|
---|
| 73 | QAction* _actStart;
|
---|
| 74 | QAction* _actStop;
|
---|
[749] | 75 |
|
---|
| 76 | QWidget* _canvas;
|
---|
[750] | 77 |
|
---|
[958] | 78 | QLineEdit* _proxyHostLineEdit;
|
---|
| 79 | QLineEdit* _proxyPortLineEdit;
|
---|
[1728] | 80 |
|
---|
| 81 | QLineEdit* _logFileLineEdit;
|
---|
| 82 | QCheckBox* _fileAppendCheckBox;
|
---|
| 83 | QCheckBox* _autoStartCheckBox;
|
---|
| 84 |
|
---|
[958] | 85 | QLineEdit* _ephHostLineEdit;
|
---|
[752] | 86 | QLineEdit* _ephPortLineEdit;
|
---|
[1089] | 87 | QLineEdit* _ephEchoLineEdit;
|
---|
[1728] | 88 |
|
---|
[787] | 89 | QLineEdit* _clkPortLineEdit;
|
---|
[1728] | 90 | QLineEdit* _inpEchoLineEdit;
|
---|
| 91 |
|
---|
[1249] | 92 | QLineEdit* _outHost_1_LineEdit;
|
---|
| 93 | QLineEdit* _outPort_1_LineEdit;
|
---|
[1728] | 94 | QLineEdit* _mountpoint_1_LineEdit;
|
---|
[1249] | 95 | QLineEdit* _password_1_LineEdit;
|
---|
[1728] | 96 | QComboBox* _refSys_1_ComboBox;
|
---|
| 97 | QLineEdit* _outFile_1_LineEdit;
|
---|
[2046] | 98 | QCheckBox* _CoM_1_CheckBox;
|
---|
[1728] | 99 |
|
---|
[1249] | 100 | QLineEdit* _outHost_2_LineEdit;
|
---|
| 101 | QLineEdit* _outPort_2_LineEdit;
|
---|
[1728] | 102 | QLineEdit* _mountpoint_2_LineEdit;
|
---|
[1249] | 103 | QLineEdit* _password_2_LineEdit;
|
---|
[1728] | 104 | QComboBox* _refSys_2_ComboBox;
|
---|
[1068] | 105 | QLineEdit* _outFile_2_LineEdit;
|
---|
[2046] | 106 | QCheckBox* _CoM_2_CheckBox;
|
---|
[1728] | 107 |
|
---|
| 108 | QLineEdit* _outHost_3_LineEdit;
|
---|
| 109 | QLineEdit* _outPort_3_LineEdit;
|
---|
| 110 | QLineEdit* _mountpoint_3_LineEdit;
|
---|
| 111 | QLineEdit* _password_3_LineEdit;
|
---|
| 112 | QComboBox* _refSys_3_ComboBox;
|
---|
| 113 | QLineEdit* _outFile_3_LineEdit;
|
---|
[2046] | 114 | QCheckBox* _CoM_3_CheckBox;
|
---|
[1728] | 115 |
|
---|
[2327] | 116 | QLineEdit* _outHost_4_LineEdit;
|
---|
| 117 | QLineEdit* _outPort_4_LineEdit;
|
---|
| 118 | QLineEdit* _mountpoint_4_LineEdit;
|
---|
| 119 | QLineEdit* _password_4_LineEdit;
|
---|
| 120 | QComboBox* _refSys_4_ComboBox;
|
---|
| 121 | QLineEdit* _outFile_4_LineEdit;
|
---|
| 122 | QCheckBox* _CoM_4_CheckBox;
|
---|
| 123 |
|
---|
| 124 | QLineEdit* _outHost_5_LineEdit;
|
---|
| 125 | QLineEdit* _outPort_5_LineEdit;
|
---|
| 126 | QLineEdit* _mountpoint_5_LineEdit;
|
---|
| 127 | QLineEdit* _password_5_LineEdit;
|
---|
| 128 | QComboBox* _refSys_5_ComboBox;
|
---|
| 129 | QLineEdit* _outFile_5_LineEdit;
|
---|
| 130 | QCheckBox* _CoM_5_CheckBox;
|
---|
| 131 |
|
---|
| 132 | QLineEdit* _outHost_6_LineEdit;
|
---|
| 133 | QLineEdit* _outPort_6_LineEdit;
|
---|
| 134 | QLineEdit* _mountpoint_6_LineEdit;
|
---|
| 135 | QLineEdit* _password_6_LineEdit;
|
---|
| 136 | QComboBox* _refSys_6_ComboBox;
|
---|
| 137 | QLineEdit* _outFile_6_LineEdit;
|
---|
| 138 | QCheckBox* _CoM_6_CheckBox;
|
---|
| 139 |
|
---|
[1795] | 140 | QLineEdit* _outHost_Eph_LineEdit;
|
---|
| 141 | QLineEdit* _outPort_Eph_LineEdit;
|
---|
| 142 | QLineEdit* _mountpoint_Eph_LineEdit;
|
---|
| 143 | QLineEdit* _password_Eph_LineEdit;
|
---|
[1805] | 144 | QSpinBox* _samplEphSpinBox;
|
---|
[1795] | 145 |
|
---|
[845] | 146 | QLineEdit* _rnxPathLineEdit;
|
---|
[1728] | 147 | QComboBox* _rnxIntrComboBox;
|
---|
| 148 | QSpinBox* _rnxSamplSpinBox;
|
---|
| 149 |
|
---|
[845] | 150 | QLineEdit* _sp3PathLineEdit;
|
---|
| 151 | QComboBox* _sp3IntrComboBox;
|
---|
| 152 | QSpinBox* _sp3SamplSpinBox;
|
---|
[750] | 153 |
|
---|
| 154 | QTextEdit* _log;
|
---|
[757] | 155 |
|
---|
[1668] | 156 | QTabWidget* tabs;
|
---|
[1083] | 157 | //QWidget* _status;
|
---|
| 158 | QGroupBox* _status;
|
---|
[2327] | 159 | QLabel* _statusLbl[18];
|
---|
| 160 | double _statusCnt[9];
|
---|
[1058] | 161 | QMutex _mutex;
|
---|
| 162 |
|
---|
[757] | 163 | t_bns* _bns;
|
---|
[748] | 164 | };
|
---|
| 165 | #endif
|
---|