#ifndef BNSWINDOW_H #define BNSWINDOW_H #include #include #include "bns.h" class bnsAboutDlg : public QDialog { Q_OBJECT public: bnsAboutDlg(QWidget* parent); ~bnsAboutDlg(); }; class bnsFlowchartDlg : public QDialog { Q_OBJECT public: bnsFlowchartDlg(QWidget* parent); ~bnsFlowchartDlg(); }; class bnsWindow : public QMainWindow { Q_OBJECT public: bnsWindow(); ~bnsWindow(); public slots: void slotMessage(const QByteArray msg); void slotError(const QByteArray msg); private slots: void slotHelp(); void slotAbout(); void slotFlowchart(); void slotFontSel(); void slotSaveOptions(); void slotWhatsThis(); void slotStart(); void slotStop(); void slotEphBytes(int nBytes); void slotClkBytes(int nBytes); void slotOutBytes(int nBytes); protected: virtual void closeEvent(QCloseEvent *); private: void CreateMenu(); void AddToolbar(); void deleteBns(); void updateStatus(int ii, int nBytes); QMenu* _menuHlp; QMenu* _menuFile; QAction* _actHelp; QAction* _actAbout; QAction* _actFlowchart; QAction* _actFontSel; QAction* _actSaveOpt; QAction* _actQuit; QAction* _actWhatsThis; QAction* _actStart; QAction* _actStop; QWidget* _canvas; QLineEdit* _proxyHostLineEdit; QLineEdit* _proxyPortLineEdit; QLineEdit* _ephHostLineEdit; QLineEdit* _ephPortLineEdit; QLineEdit* _clkPortLineEdit; QLineEdit* _logFileLineEdit; QLineEdit* _outHostLineEdit; QLineEdit* _outPortLineEdit; QLineEdit* _mountpointLineEdit; QLineEdit* _passwordLineEdit; QLineEdit* _outFileLineEdit; QLineEdit* _rnxPathLineEdit; QLineEdit* _sp3PathLineEdit; QComboBox* _rnxIntrComboBox; QComboBox* _sp3IntrComboBox; QComboBox* _refSysComboBox; QSpinBox* _rnxSamplSpinBox; QSpinBox* _sp3SamplSpinBox; QCheckBox* _fileAppendCheckBox; QTextEdit* _log; QWidget* _status; QLabel* _statusLbl[6]; double _statusCnt[3]; QMutex _mutex; t_bns* _bns; }; #endif