[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);
|
---|
[2332] | 52 | void slotOutBytes4(int nBytes);
|
---|
| 53 | void slotOutBytes5(int nBytes);
|
---|
| 54 | void slotOutBytes6(int nBytes);
|
---|
[1803] | 55 | void slotOutEphBytes(int nBytes);
|
---|
[748] | 56 |
|
---|
| 57 | protected:
|
---|
[749] | 58 | virtual void closeEvent(QCloseEvent *);
|
---|
[748] | 59 |
|
---|
| 60 | private:
|
---|
[749] | 61 | void CreateMenu();
|
---|
| 62 | void AddToolbar();
|
---|
[760] | 63 | void deleteBns();
|
---|
[1058] | 64 | void updateStatus(int ii, int nBytes);
|
---|
[748] | 65 |
|
---|
[749] | 66 | QMenu* _menuHlp;
|
---|
| 67 | QMenu* _menuFile;
|
---|
| 68 |
|
---|
| 69 | QAction* _actHelp;
|
---|
| 70 | QAction* _actAbout;
|
---|
[998] | 71 | QAction* _actFlowchart;
|
---|
[749] | 72 | QAction* _actFontSel;
|
---|
| 73 | QAction* _actSaveOpt;
|
---|
| 74 | QAction* _actQuit;
|
---|
[754] | 75 | QAction* _actWhatsThis;
|
---|
| 76 | QAction* _actStart;
|
---|
| 77 | QAction* _actStop;
|
---|
[749] | 78 |
|
---|
| 79 | QWidget* _canvas;
|
---|
[750] | 80 |
|
---|
[958] | 81 | QLineEdit* _proxyHostLineEdit;
|
---|
| 82 | QLineEdit* _proxyPortLineEdit;
|
---|
[1728] | 83 |
|
---|
| 84 | QLineEdit* _logFileLineEdit;
|
---|
| 85 | QCheckBox* _fileAppendCheckBox;
|
---|
| 86 | QCheckBox* _autoStartCheckBox;
|
---|
| 87 |
|
---|
[958] | 88 | QLineEdit* _ephHostLineEdit;
|
---|
[752] | 89 | QLineEdit* _ephPortLineEdit;
|
---|
[1089] | 90 | QLineEdit* _ephEchoLineEdit;
|
---|
[1728] | 91 |
|
---|
[787] | 92 | QLineEdit* _clkPortLineEdit;
|
---|
[1728] | 93 | QLineEdit* _inpEchoLineEdit;
|
---|
| 94 |
|
---|
[1249] | 95 | QLineEdit* _outHost_1_LineEdit;
|
---|
| 96 | QLineEdit* _outPort_1_LineEdit;
|
---|
[1728] | 97 | QLineEdit* _mountpoint_1_LineEdit;
|
---|
[1249] | 98 | QLineEdit* _password_1_LineEdit;
|
---|
[1728] | 99 | QComboBox* _refSys_1_ComboBox;
|
---|
| 100 | QLineEdit* _outFile_1_LineEdit;
|
---|
[2046] | 101 | QCheckBox* _CoM_1_CheckBox;
|
---|
[1728] | 102 |
|
---|
[1249] | 103 | QLineEdit* _outHost_2_LineEdit;
|
---|
| 104 | QLineEdit* _outPort_2_LineEdit;
|
---|
[1728] | 105 | QLineEdit* _mountpoint_2_LineEdit;
|
---|
[1249] | 106 | QLineEdit* _password_2_LineEdit;
|
---|
[1728] | 107 | QComboBox* _refSys_2_ComboBox;
|
---|
[1068] | 108 | QLineEdit* _outFile_2_LineEdit;
|
---|
[2046] | 109 | QCheckBox* _CoM_2_CheckBox;
|
---|
[1728] | 110 |
|
---|
| 111 | QLineEdit* _outHost_3_LineEdit;
|
---|
| 112 | QLineEdit* _outPort_3_LineEdit;
|
---|
| 113 | QLineEdit* _mountpoint_3_LineEdit;
|
---|
| 114 | QLineEdit* _password_3_LineEdit;
|
---|
| 115 | QComboBox* _refSys_3_ComboBox;
|
---|
| 116 | QLineEdit* _outFile_3_LineEdit;
|
---|
[2046] | 117 | QCheckBox* _CoM_3_CheckBox;
|
---|
[1728] | 118 |
|
---|
[2327] | 119 | QLineEdit* _outHost_4_LineEdit;
|
---|
| 120 | QLineEdit* _outPort_4_LineEdit;
|
---|
| 121 | QLineEdit* _mountpoint_4_LineEdit;
|
---|
| 122 | QLineEdit* _password_4_LineEdit;
|
---|
| 123 | QComboBox* _refSys_4_ComboBox;
|
---|
| 124 | QLineEdit* _outFile_4_LineEdit;
|
---|
| 125 | QCheckBox* _CoM_4_CheckBox;
|
---|
| 126 |
|
---|
| 127 | QLineEdit* _outHost_5_LineEdit;
|
---|
| 128 | QLineEdit* _outPort_5_LineEdit;
|
---|
| 129 | QLineEdit* _mountpoint_5_LineEdit;
|
---|
| 130 | QLineEdit* _password_5_LineEdit;
|
---|
| 131 | QComboBox* _refSys_5_ComboBox;
|
---|
| 132 | QLineEdit* _outFile_5_LineEdit;
|
---|
| 133 | QCheckBox* _CoM_5_CheckBox;
|
---|
| 134 |
|
---|
| 135 | QLineEdit* _outHost_6_LineEdit;
|
---|
| 136 | QLineEdit* _outPort_6_LineEdit;
|
---|
| 137 | QLineEdit* _mountpoint_6_LineEdit;
|
---|
| 138 | QLineEdit* _password_6_LineEdit;
|
---|
| 139 | QComboBox* _refSys_6_ComboBox;
|
---|
| 140 | QLineEdit* _outFile_6_LineEdit;
|
---|
| 141 | QCheckBox* _CoM_6_CheckBox;
|
---|
| 142 |
|
---|
[1795] | 143 | QLineEdit* _outHost_Eph_LineEdit;
|
---|
| 144 | QLineEdit* _outPort_Eph_LineEdit;
|
---|
| 145 | QLineEdit* _mountpoint_Eph_LineEdit;
|
---|
| 146 | QLineEdit* _password_Eph_LineEdit;
|
---|
[1805] | 147 | QSpinBox* _samplEphSpinBox;
|
---|
[1795] | 148 |
|
---|
[845] | 149 | QLineEdit* _rnxPathLineEdit;
|
---|
[1728] | 150 | QComboBox* _rnxIntrComboBox;
|
---|
| 151 | QSpinBox* _rnxSamplSpinBox;
|
---|
| 152 |
|
---|
[845] | 153 | QLineEdit* _sp3PathLineEdit;
|
---|
| 154 | QComboBox* _sp3IntrComboBox;
|
---|
| 155 | QSpinBox* _sp3SamplSpinBox;
|
---|
[750] | 156 |
|
---|
| 157 | QTextEdit* _log;
|
---|
[757] | 158 |
|
---|
[1668] | 159 | QTabWidget* tabs;
|
---|
[1083] | 160 | //QWidget* _status;
|
---|
| 161 | QGroupBox* _status;
|
---|
[2327] | 162 | QLabel* _statusLbl[18];
|
---|
| 163 | double _statusCnt[9];
|
---|
[1058] | 164 | QMutex _mutex;
|
---|
| 165 |
|
---|
[757] | 166 | t_bns* _bns;
|
---|
[748] | 167 | };
|
---|
| 168 | #endif
|
---|