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