Add debug output option to settings tab

main
Doug McLain 9 months ago
parent 71eeb94fd0
commit b858d3e207

@ -71,13 +71,14 @@ Item {
property alias modemNXDNTXLevelEdit: _modemNXDNTXLevelEdit
property alias modemBaudEdit: _modemBaudEdit
property alias mmdvmBox: _mmdvmBox
property alias debugBox: _debugBox
Flickable {
id: flickable
anchors.fill: parent
contentWidth: parent.width
contentHeight: _mmdvmBox.y +
_mmdvmBox.height + 10
contentHeight: _debugBox.y +
_debugBox.height + 10
flickableDirection: Flickable.VerticalFlick
clip: true
ScrollBar.vertical: ScrollBar {}
@ -1079,5 +1080,16 @@ Item {
droidstar.set_mmdvm_direct(_mmdvmBox.checked)
}
}
CheckBox {
id: _debugBox
x: 10
y: 1390
width: parent.width
height: 25
text: qsTr("Debug output to stderr")
onClicked:{
droidstar.set_debug(_debugBox.checked)
}
}
}
}

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<manifest package="org.dudetronics.droidstar" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="-- %%INSERT_VERSION_NAME%% --" android:versionCode="76" android:installLocation="auto">
<manifest package="org.dudetronics.droidstar" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="-- %%INSERT_VERSION_NAME%% --" android:versionCode="77" android:installLocation="auto">
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.

@ -375,6 +375,7 @@ void DroidStar::process_connect()
connect(this, SIGNAL(rptr1_changed(QString)), m_mode, SLOT(rptr1_changed(QString)));
connect(this, SIGNAL(rptr2_changed(QString)), m_mode, SLOT(rptr2_changed(QString)));
connect(this, SIGNAL(usrtxt_changed(QString)), m_mode, SLOT(usrtxt_changed(QString)));
connect(this, SIGNAL(debug_changed(bool)), m_mode, SLOT(debug_changed(bool)));
emit module_changed(m_module);
emit mycall_changed(m_mycall);
emit urcall_changed(m_urcall);

@ -61,6 +61,7 @@ signals:
void urcall_changed(QString);
void usrtxt_changed(QString);
void dst_changed(QString);
void debug_changed(bool);
void update_devices();
public slots:
void set_callsign(const QString &callsign) { m_callsign = callsign.simplified(); save_settings(); }
@ -119,6 +120,7 @@ public slots:
void set_mmdvm_direct(bool mmdvm) { m_mdirect = mmdvm; process_mode_change(m_protocol); }
void set_iaxport(const QString &port){ m_iaxport = port.simplified().toUInt(); save_settings(); }
void set_dst(QString dst){emit dst_changed(dst);}
void set_debug(bool debug){emit debug_changed(debug);}
void set_modemRxFreq(QString m) { m_modemRxFreq = m; save_settings(); }
void set_modemTxFreq(QString m) { m_modemTxFreq = m; save_settings(); }

@ -494,9 +494,7 @@ void IAX::send_disconnect()
void IAX::hostname_lookup(QHostInfo i)
{
qDebug() << "IAX::hostname_lookup()";
if (!i.addresses().isEmpty()) {
qDebug() << "IAX::hostname_lookup() 2";
m_address = i.addresses().first();
m_udp = new QUdpSocket(this);
m_regtimer = new QTimer();

@ -129,7 +129,7 @@ void Mode::init(QString callsign, uint32_t dmrid, uint16_t nxdnid, char module,
voice_kal = register_cmu_us_kal16(nullptr);
voice_awb = register_cmu_us_awb(nullptr);
#endif
m_debug = true;
m_debug = false;
}
void Mode::ambe_connect_status(bool s)

@ -159,6 +159,7 @@ protected slots:
void module_changed(char m) { m_module = m; m_modeinfo.streamid = 0; }
void dst_changed(QString dst){ m_refname = dst; }
void host_lookup();
void debug_changed(bool debug){ m_debug = debug; }
protected:
QString m_mode;
QUdpSocket *m_udp = nullptr;

Loading…
Cancel
Save