1 #ifndef MAINWINDOW_H 2 #define MAINWINDOW_H 3 4 #include <QMainWindow> 5 #include <QComboBox> 6 #include <QPushButton> 7 #include <QLabel> 8 9 class configDialog; 10 class spectrumWidget; 11 class ftpThread; 12 13 namespace Ui { 14 class MainWindow; 15 } 16 17 class mainWindow : public QMainWindow 18 { 19 Q_OBJECT 20 21 public: 22 explicit mainWindow(QWidget *parent = 0); 23 ~mainWindow(); 24 void init(); 25 void startRunning(); 26 void setNewFont(); 27 void setPTT(bool p); 28 void setSSTVDRMPushButton(bool inDRM); 29 spectrumWidget *spectrumFramePtr; 30 31 private slots: 32 void slotConfigure(); 33 void slotSaveWaterfallImage(); 34 void slotExit(); 35 void slotResetLog(); 36 void slotLogSettings(); 37 void slotAboutQt(); 38 void slotAboutQSSTV(); 39 void slotFullScreen(); 40 void slotDocumentation(); 41 void slotCalibrate(); 42 void slotModeChange(int); 43 void slotSendWFID(); 44 void slotSendCWID(); 45 void slotSendBSR(); 46 void slotSendWfText(); 47 void slotSetFrequency(int freqIndex); 48 49 50 51 #ifndef QT_NO_DEBUG 52 void slotShowDataScope(); 53 void slotShowSyncScopeNarrow(); 54 void slotShowSyncScopeWide(); 55 void slotScopeOffset(); 56 void slotClearScope(); 57 void slotDumpSamplesPerLine(); 58 void slotTxTestPattern(); 59 #endif 60 61 private: 62 Ui::MainWindow *ui; 63 void closeEvent ( QCloseEvent *e ); 64 void readSettings(); 65 void writeSettings(); 66 void restartSound(bool inStartUp); 67 void cleanUpCache(QString dirPath); 68 // void setupFtp(ftpThread *&ptr, QString idName); 69 QComboBox *transmissionModeComboBox; 70 QPushButton *wfTextPushButton; 71 QPushButton *fixPushButton; 72 QPushButton *bsrPushButton; 73 QPushButton *idPushButton; 74 QPushButton *cwPushButton; 75 QComboBox *freqComboBox; 76 QLabel pttText; 77 QLabel *pttIcon; 78 QLabel *freqDisplay; 79 void timerEvent(QTimerEvent *); 80 QStringList modModeList; 81 QStringList modPassBandList; 82 }; 83 84 #endif // MAINWINDOW_H 85