Merge branch 'translations' into creator-widgets

translations
Roeland Jansen 2024-09-23 11:05:45 +02:00
commit f85318f210
16 zmienionych plików z 7765 dodań i 7690 usunięć

Wyświetl plik

@ -50,6 +50,9 @@ void bandbuttons::receiveCache(cacheItem item)
case funcFreqGet: case funcFreqGet:
// Here we will process incoming frequency. // Here we will process incoming frequency.
{ {
if(!rigCaps) {
return;
}
if (ui->SubBandCheck->isChecked() == sub) { if (ui->SubBandCheck->isChecked() == sub) {
quint64 freq = quint64(item.value.value<freqt>().Hz); quint64 freq = quint64(item.value.value<freqt>().Hz);
for (auto &b: rigCaps->bands) for (auto &b: rigCaps->bands)

Wyświetl plik

@ -709,8 +709,15 @@ void freqCtrl::drawBkGround(QPainter &Painter)
else else
dgsep = gsep; dgsep = gsep;
} }
Painter.drawText(m_SepRect[i], Qt::AlignHCenter | Qt::AlignVCenter, if( (i==m_NumDigits-1) && (m_DigitInfo[i].val==0) ) {
dgsep); Painter.drawText(m_SepRect[i], Qt::AlignHCenter | Qt::AlignVCenter,
" ");
} else {
// Only draw the digit separator if we are within a number.
// This eliminates drawing a comma after the last (MSB) digit.
Painter.drawText(m_SepRect[i], Qt::AlignHCenter | Qt::AlignVCenter,
dgsep);
}
} }
else else
{ {

Wyświetl plik

@ -225,6 +225,11 @@ void loggingWindow::on_debugBtn_clicked(bool checked)
emit setDebugMode(checked); emit setDebugMode(checked);
} }
void loggingWindow::on_commDebugChk_clicked(bool checked)
{
emit setInsaneLoggingMode(checked);
}
void loggingWindow::on_toBottomBtn_clicked() void loggingWindow::on_toBottomBtn_clicked()
{ {
vertLogScroll->setValue(vertLogScroll->maximum()); vertLogScroll->setValue(vertLogScroll->maximum());

Wyświetl plik

@ -56,8 +56,11 @@ private slots:
void on_toBottomBtn_clicked(); void on_toBottomBtn_clicked();
void on_commDebugChk_clicked(bool checked);
signals: signals:
void setDebugMode(bool debugOn); void setDebugMode(bool debugOn);
void setInsaneLoggingMode(bool insaneLoggingOn);
private: private:
Ui::loggingWindow* ui; Ui::loggingWindow* ui;

Wyświetl plik

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>625</width> <width>819</width>
<height>300</height> <height>300</height>
</rect> </rect>
</property> </property>
@ -109,6 +109,16 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="commDebugChk">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This enables the logging of nearly all CI-V traffic. &lt;span style=&quot; font-weight:600;&quot;&gt;Use with caution&lt;/span&gt;. It is a lot of data. Meter levels and scope data are not shown. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>CommDebug</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="toBottomBtn"> <widget class="QPushButton" name="toBottomBtn">
<property name="toolTip"> <property name="toolTip">

Wyświetl plik

@ -24,9 +24,13 @@ repeaterSetup::~repeaterSetup()
{ {
// Trying this for more consistent destruction // Trying this for more consistent destruction
delete ui; delete ui;
if(queue) {
qDebug() << "Deleting the queue from within repeaterSetup.";
queue->deleteLater();
queue=nullptr;
}
} }
void repeaterSetup::populateTones() void repeaterSetup::populateTones()
{ {
ui->rptToneCombo->addItem("67.0", quint16(670)); ui->rptToneCombo->addItem("67.0", quint16(670));
@ -405,25 +409,25 @@ void repeaterSetup::on_splitOffBtn_clicked()
void repeaterSetup::on_rptSimplexBtn_clicked() void repeaterSetup::on_rptSimplexBtn_clicked()
{ {
// Simplex // Simplex
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmSplitOn),false)); //queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmSplitOn),false));
if(rigCaps->commands.contains(funcToneSquelchType)) //if(rigCaps->commands.contains(funcToneSquelchType))
{ //{
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false)); //queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false));
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmSimplex),false)); queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmSimplex),false));
} //}
} }
void repeaterSetup::on_rptDupPlusBtn_clicked() void repeaterSetup::on_rptDupPlusBtn_clicked()
{ {
// DUP+ // DUP+
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false)); //queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false));
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupPlus),false)); queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupPlus),false));
} }
void repeaterSetup::on_rptDupMinusBtn_clicked() void repeaterSetup::on_rptDupMinusBtn_clicked()
{ {
// DUP- // DUP-
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false)); //queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupAutoOff),false));
queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupMinus),false)); queue->add(priorityImmediate,queueItem(funcSplitStatus,QVariant::fromValue<duplexMode_t>(dmDupMinus),false));
} }
@ -796,6 +800,8 @@ void repeaterSetup::on_rptrOffsetSetBtn_clicked()
if(f.Hz != 0) if(f.Hz != 0)
{ {
queue->add(priorityImmediate,queueItem(funcSendFreqOffset,QVariant::fromValue<freqt>(f),false)); queue->add(priorityImmediate,queueItem(funcSendFreqOffset,QVariant::fromValue<freqt>(f),false));
} else {
qWarning() << "Could not convert frequency text of repeater offset to integer.";
} }
ui->rptrOffsetEdit->clearFocus(); ui->rptrOffsetEdit->clearFocus();
} }
@ -821,6 +827,7 @@ void repeaterSetup::on_quickSplitChk_clicked(bool checked)
void repeaterSetup::receiveRigCaps(rigCapabilities* rig) void repeaterSetup::receiveRigCaps(rigCapabilities* rig)
{ {
qInfo() << "Receiving rigcaps into repeater setup.";
this->rigCaps = rig; this->rigCaps = rig;
if (rig != Q_NULLPTR) if (rig != Q_NULLPTR)
{ {

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Plik diff jest za duży Load Diff

Wyświetl plik

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1020</width> <width>1100</width>
<height>606</height> <height>606</height>
</rect> </rect>
</property> </property>
@ -1200,6 +1200,9 @@ ONLY use Manual CI-V when Transceive mode is not supported</string>
<property name="maximum"> <property name="maximum">
<number>250</number> <number>250</number>
</property> </property>
<property name="value">
<number>25</number>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -1377,7 +1380,7 @@ ONLY use Manual CI-V when Transceive mode is not supported</string>
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>804</width> <width>884</width>
<height>320</height> <height>320</height>
</rect> </rect>
</property> </property>

Wyświetl plik

@ -21,6 +21,8 @@ bool debugModeLogging = true;
bool debugModeLogging = false; bool debugModeLogging = false;
#endif #endif
bool insaneDebugLogging = false;
wfmain::wfmain(const QString settingsFile, const QString logFile, bool debugMode, QWidget *parent ) : wfmain::wfmain(const QString settingsFile, const QString logFile, bool debugMode, QWidget *parent ) :
QMainWindow(parent), QMainWindow(parent),
ui(new Ui::wfmain), ui(new Ui::wfmain),
@ -4937,6 +4939,7 @@ void wfmain::initLogging()
qInstallMessageHandler(messageHandler); qInstallMessageHandler(messageHandler);
connect(logWindow, SIGNAL(setDebugMode(bool)), this, SLOT(setDebugLogging(bool))); connect(logWindow, SIGNAL(setDebugMode(bool)), this, SLOT(setDebugLogging(bool)));
connect(logWindow, SIGNAL(setInsaneLoggingMode(bool)), this, SLOT(setInsaneDebugLogging(bool)));
// Interval timer for log window updates: // Interval timer for log window updates:
logCheckingTimer.setInterval(100); logCheckingTimer.setInterval(100);
@ -4969,10 +4972,15 @@ void wfmain::setDebugLogging(bool debugModeOn)
debugModeLogging = debugModeOn; debugModeLogging = debugModeOn;
} }
void wfmain::setInsaneDebugLogging(bool insaneLoggingOn)
{
insaneDebugLogging = insaneLoggingOn;
}
void wfmain::messageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg) void wfmain::messageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg)
{ {
// Open stream file writes // Open stream file writes
bool insaneDebugLogging = false; // bool insaneDebugLogging = true;// global
if (type == QtDebugMsg && !debugModeLogging) if (type == QtDebugMsg && !debugModeLogging)
{ {
return; return;

Wyświetl plik

@ -425,6 +425,7 @@ private slots:
void setRadioTimeDateSend(); void setRadioTimeDateSend();
void logCheck(); void logCheck();
void setDebugLogging(bool debugModeOn); void setDebugLogging(bool debugModeOn);
void setInsaneDebugLogging(bool insaneLoggingOn);
void buttonControl(const COMMAND* cmd); void buttonControl(const COMMAND* cmd);

Wyświetl plik

@ -21,7 +21,7 @@ contains(DEFINES,USB_CONTROLLER){
TARGET = wfview TARGET = wfview
TEMPLATE = app TEMPLATE = app
DEFINES += WFVIEW_VERSION=\\\"1.91\\\" DEFINES += WFVIEW_VERSION=\\\"1.94\\\"
DEFINES += BUILD_WFVIEW DEFINES += BUILD_WFVIEW