2012-05-22 13:09:48 -04:00
|
|
|
#ifndef DEVSETUP_H
|
|
|
|
#define DEVSETUP_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2013-03-24 08:55:13 -04:00
|
|
|
#include <QProcess>
|
|
|
|
#include <QMessageBox>
|
2012-05-22 13:09:48 -04:00
|
|
|
#include "ui_devsetup.h"
|
|
|
|
|
|
|
|
class DevSetup : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DevSetup(QWidget *parent=0);
|
|
|
|
~DevSetup();
|
|
|
|
|
|
|
|
void initDlg();
|
|
|
|
qint32 m_idInt;
|
2013-03-24 08:55:13 -04:00
|
|
|
qint32 m_pttMethodIndex;
|
2012-05-22 13:09:48 -04:00
|
|
|
qint32 m_pttPort;
|
|
|
|
qint32 m_nDevIn;
|
|
|
|
qint32 m_nDevOut;
|
|
|
|
qint32 m_inDevList[100];
|
|
|
|
qint32 m_outDevList[100];
|
|
|
|
qint32 m_paInDevice;
|
|
|
|
qint32 m_paOutDevice;
|
2013-03-24 08:55:13 -04:00
|
|
|
qint32 m_catPortIndex;
|
|
|
|
qint32 m_rig;
|
|
|
|
qint32 m_rigIndex;
|
|
|
|
qint32 m_serialRate;
|
|
|
|
qint32 m_serialRateIndex;
|
|
|
|
qint32 m_dataBits;
|
|
|
|
qint32 m_dataBitsIndex;
|
|
|
|
qint32 m_stopBits;
|
|
|
|
qint32 m_stopBitsIndex;
|
|
|
|
qint32 m_handshakeIndex;
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
bool m_restartSoundIn;
|
|
|
|
bool m_restartSoundOut;
|
2013-03-09 21:45:12 -05:00
|
|
|
bool m_pskReporter;
|
2013-03-13 14:47:34 -04:00
|
|
|
bool m_firstCall;
|
2013-03-24 08:55:13 -04:00
|
|
|
bool m_catEnabled;
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
QString m_myCall;
|
|
|
|
QString m_myGrid;
|
|
|
|
QString m_saveDir;
|
|
|
|
QString m_azelDir;
|
2013-03-24 08:55:13 -04:00
|
|
|
QString m_catPort;
|
|
|
|
QString m_handshake;
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2013-03-21 18:58:16 -04:00
|
|
|
QStringList m_macro;
|
|
|
|
|
2013-03-24 08:55:13 -04:00
|
|
|
QProcess p4;
|
|
|
|
QMessageBox msgBox0;
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
public slots:
|
|
|
|
void accept();
|
2013-03-24 08:55:13 -04:00
|
|
|
void p4ReadFromStdout();
|
|
|
|
void p4ReadFromStderr();
|
|
|
|
void p4Error();
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-24 11:30:39 -05:00
|
|
|
private slots:
|
|
|
|
void on_myCallEntry_editingFinished();
|
|
|
|
void on_myGridEntry_editingFinished();
|
2013-03-09 21:45:12 -05:00
|
|
|
void on_cbPSKReporter_clicked(bool checked);
|
2013-03-24 08:55:13 -04:00
|
|
|
void on_pttMethodComboBox_activated(int index);
|
|
|
|
void on_catPortComboBox_activated(int index);
|
|
|
|
void on_cbEnableCAT_toggled(bool checked);
|
|
|
|
void on_serialRateComboBox_activated(int index);
|
|
|
|
|
|
|
|
void on_handshakeComboBox_activated(int index);
|
|
|
|
|
|
|
|
void on_dataBitsComboBox_activated(int index);
|
|
|
|
|
|
|
|
void on_stopBitsComboBox_activated(int index);
|
|
|
|
|
|
|
|
void on_rigComboBox_activated(int index);
|
2012-11-24 11:30:39 -05:00
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
private:
|
2013-03-24 08:55:13 -04:00
|
|
|
void msgBox(QString t);
|
2012-05-22 13:09:48 -04:00
|
|
|
Ui::DialogSndCard ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DEVSETUP_H
|