Added up/down indicators for VFO

This commit is contained in:
Jordan Sherer 2019-12-27 19:46:36 -05:00
parent 921ab2202d
commit 575f6cc0e8
7 changed files with 57 additions and 22 deletions

View File

@ -867,6 +867,9 @@ set (QT_MKSPECS_DIR ${QT_DATA_DIR}/mkspecs)
set (CMAKE_AUTOMOC ON)
include_directories (${CMAKE_CURRENT_BINARY_DIR})
# Tell CMake to run rcc when necessary
set (CMAKE_AUTORCC ON)
# don't use Qt "keywords" signal, slot, emit in generated files to
# avoid compatability issue with other libraries
# ADD_DEFINITIONS (-DQT_NO_KEYWORDS)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 209 B

View File

@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/images">
<file alias="up.png">artwork/up.png</file>
<file alias="down.png">artwork/down.png</file>
<file>artwork/up.png</file>
<file>artwork/down.png</file>
</qresource>
</RCC>

View File

@ -31,6 +31,7 @@
#include <QSound>
#include <QUdpSocket>
#include <QVariant>
#include <QPixmap>
#include "revision_utils.hpp"
#include "qt_helpers.hpp"
@ -1581,6 +1582,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
gridButtonLayout->setColumnStretch(1, 1);
gridButtonLayout->setColumnStretch(2, 1);
// dial up and down buttons sizes
ui->dialFreqUpButton->setFixedSize(30, 24);
ui->dialFreqDownButton->setFixedSize(30, 24);
// Prepare spotting configuration...
prepareSpotting();
@ -3620,6 +3624,14 @@ void MainWindow::on_labDialFreq_clicked() //dialFrequency
ui->bandComboBox->setFocus();
}
void MainWindow::on_dialFreqUpButton_clicked(){
setRig(m_freqNominal + 250);
}
void MainWindow::on_dialFreqDownButton_clicked(){
setRig(m_freqNominal - 250);
}
void MainWindow::on_stopButton_clicked() //stopButton
{
monitor (false);

View File

@ -212,6 +212,8 @@ private slots:
void resetPushButtonToggleText(QPushButton *btn);
void on_monitorTxButton_clicked();
void on_stopTxButton_clicked();
void on_dialFreqUpButton_clicked();
void on_dialFreqDownButton_clicked();
void on_stopButton_clicked();
void on_actionAdd_Log_Entry_triggered();
void on_actionRelease_Notes_triggered ();

View File

@ -238,6 +238,9 @@
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_16">
<property name="spacing">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
@ -245,57 +248,72 @@
<widget class="QPushButton" name="dialFreqUpButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
<width>30</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>30</height>
<height>24</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color:#000;
background-image:url(&quot;/images/up.png&quot;);
background-image:url(&quot;:/images/artwork/up.png&quot;);
background-position: center center;
background-repeate:no-repeat;
background-repeat:no-repeat;
border:1px solid;
border-radius:2px;
}
QPushButton:pressed {
background-color:#222;
}</string>
</property>
<property name="text">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="dialFreqDownButton">
<property name="minimumSize">
<size>
<width>30</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>30</height>
<height>24</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color:#000;
background-image:url(&quot;/images/down.png&quot;);
background-image:url(&quot;:/images/artwork/down.png&quot;);
background-position: center center;
background-repeate:no-repeat;
background-repeat:no-repeat;
border:1px solid;
border-radius:2px;
}
QPushButton:pressed {
background-color:#222;
}</string>
</property>
<property name="text">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
</layout>