Added up/down indicators for VFO
This commit is contained in:
parent
921ab2202d
commit
575f6cc0e8
@ -867,6 +867,9 @@ set (QT_MKSPECS_DIR ${QT_DATA_DIR}/mkspecs)
|
|||||||
set (CMAKE_AUTOMOC ON)
|
set (CMAKE_AUTOMOC ON)
|
||||||
include_directories (${CMAKE_CURRENT_BINARY_DIR})
|
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
|
# don't use Qt "keywords" signal, slot, emit in generated files to
|
||||||
# avoid compatability issue with other libraries
|
# avoid compatability issue with other libraries
|
||||||
# ADD_DEFINITIONS (-DQT_NO_KEYWORDS)
|
# ADD_DEFINITIONS (-DQT_NO_KEYWORDS)
|
||||||
|
BIN
artwork/down.png
BIN
artwork/down.png
Binary file not shown.
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 212 B |
BIN
artwork/up.png
BIN
artwork/up.png
Binary file not shown.
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 209 B |
@ -1,6 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/images">
|
<qresource prefix="/images">
|
||||||
<file alias="up.png">artwork/up.png</file>
|
<file>artwork/up.png</file>
|
||||||
<file alias="down.png">artwork/down.png</file>
|
<file>artwork/down.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <QSound>
|
#include <QSound>
|
||||||
#include <QUdpSocket>
|
#include <QUdpSocket>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
#include <QPixmap>
|
||||||
|
|
||||||
#include "revision_utils.hpp"
|
#include "revision_utils.hpp"
|
||||||
#include "qt_helpers.hpp"
|
#include "qt_helpers.hpp"
|
||||||
@ -1581,6 +1582,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
gridButtonLayout->setColumnStretch(1, 1);
|
gridButtonLayout->setColumnStretch(1, 1);
|
||||||
gridButtonLayout->setColumnStretch(2, 1);
|
gridButtonLayout->setColumnStretch(2, 1);
|
||||||
|
|
||||||
|
// dial up and down buttons sizes
|
||||||
|
ui->dialFreqUpButton->setFixedSize(30, 24);
|
||||||
|
ui->dialFreqDownButton->setFixedSize(30, 24);
|
||||||
|
|
||||||
// Prepare spotting configuration...
|
// Prepare spotting configuration...
|
||||||
prepareSpotting();
|
prepareSpotting();
|
||||||
@ -3620,6 +3624,14 @@ void MainWindow::on_labDialFreq_clicked() //dialFrequency
|
|||||||
ui->bandComboBox->setFocus();
|
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
|
void MainWindow::on_stopButton_clicked() //stopButton
|
||||||
{
|
{
|
||||||
monitor (false);
|
monitor (false);
|
||||||
|
@ -212,6 +212,8 @@ private slots:
|
|||||||
void resetPushButtonToggleText(QPushButton *btn);
|
void resetPushButtonToggleText(QPushButton *btn);
|
||||||
void on_monitorTxButton_clicked();
|
void on_monitorTxButton_clicked();
|
||||||
void on_stopTxButton_clicked();
|
void on_stopTxButton_clicked();
|
||||||
|
void on_dialFreqUpButton_clicked();
|
||||||
|
void on_dialFreqDownButton_clicked();
|
||||||
void on_stopButton_clicked();
|
void on_stopButton_clicked();
|
||||||
void on_actionAdd_Log_Entry_triggered();
|
void on_actionAdd_Log_Entry_triggered();
|
||||||
void on_actionRelease_Notes_triggered ();
|
void on_actionRelease_Notes_triggered ();
|
||||||
|
@ -238,6 +238,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_16">
|
<layout class="QVBoxLayout" name="verticalLayout_16">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -245,57 +248,72 @@
|
|||||||
<widget class="QPushButton" name="dialFreqUpButton">
|
<widget class="QPushButton" name="dialFreqUpButton">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>30</width>
|
||||||
<height>0</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>30</width>
|
<width>30</width>
|
||||||
<height>30</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="autoFillBackground">
|
<property name="autoFillBackground">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {
|
<string notr="true">QPushButton {
|
||||||
background-color:#000;
|
background-color:#000;
|
||||||
background-image:url("/images/up.png");
|
background-image:url(":/images/artwork/up.png");
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeate:no-repeat;
|
background-repeat:no-repeat;
|
||||||
|
border:1px solid;
|
||||||
|
border-radius:2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton:pressed {
|
||||||
|
background-color:#222;
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="flat">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="dialFreqDownButton">
|
<widget class="QPushButton" name="dialFreqDownButton">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>30</width>
|
||||||
|
<height>24</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>30</width>
|
<width>30</width>
|
||||||
<height>30</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {
|
<string notr="true">QPushButton {
|
||||||
background-color:#000;
|
background-color:#000;
|
||||||
background-image:url("/images/down.png");
|
background-image:url(":/images/artwork/down.png");
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeate:no-repeat;
|
background-repeat:no-repeat;
|
||||||
|
border:1px solid;
|
||||||
|
border-radius:2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton:pressed {
|
||||||
|
background-color:#222;
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="flat">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
Reference in New Issue
Block a user