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"
|
2013-04-24 15:41:58 -04:00
|
|
|
#include <hamlib/rigclass.h>
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
class DevSetup : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DevSetup(QWidget *parent=0);
|
|
|
|
~DevSetup();
|
|
|
|
|
|
|
|
void initDlg();
|
2013-03-25 15:13:49 -04:00
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
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;
|
2013-04-23 16:46:04 -04:00
|
|
|
qint32 m_iptt;
|
2013-04-24 13:55:33 -04:00
|
|
|
qint32 m_test;
|
2013-04-23 16:46:04 -04:00
|
|
|
qint32 m_COMportOpen;
|
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;
|
2013-03-24 21:24:47 -04:00
|
|
|
bool m_After73;
|
2013-04-23 16:46:04 -04:00
|
|
|
bool m_bRigOpen;
|
2013-04-24 15:41:58 -04:00
|
|
|
bool m_bDTRoff;
|
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-25 15:13:49 -04:00
|
|
|
QStringList m_dFreq;
|
2013-03-21 18:58:16 -04:00
|
|
|
|
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);
|
2013-03-24 21:24:47 -04:00
|
|
|
void on_cbID73_toggled(bool checked);
|
2013-04-23 16:46:04 -04:00
|
|
|
void on_testCATButton_clicked();
|
|
|
|
|
|
|
|
void on_testPTTButton_clicked();
|
2012-11-24 11:30:39 -05:00
|
|
|
|
2013-04-24 15:41:58 -04:00
|
|
|
void on_cbDTRoff_toggled(bool checked);
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
private:
|
2013-04-24 15:41:58 -04:00
|
|
|
Rig* rig;
|
2013-03-24 08:55:13 -04:00
|
|
|
void msgBox(QString t);
|
2012-05-22 13:09:48 -04:00
|
|
|
Ui::DialogSndCard ui;
|
|
|
|
};
|
|
|
|
|
2013-04-24 15:41:58 -04:00
|
|
|
extern int ptt(int nport, int ntx, int* iptt, int* nopen);
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
#endif // DEVSETUP_H
|