kopia lustrzana https://gitlab.com/eliggett/wfview
Added +/- key support for tuning. Added additional compiler flags to
lower executable size.merge-requests/1/merge
rodzic
5dfeebdbae
commit
dce977db76
21
wfmain.cpp
21
wfmain.cpp
|
@ -91,6 +91,14 @@ wfmain::wfmain(QWidget *parent) :
|
||||||
keySlash->setKey(Qt::Key_Slash);
|
keySlash->setKey(Qt::Key_Slash);
|
||||||
connect(keySlash, SIGNAL(activated()), this, SLOT(shortcutSlash()));
|
connect(keySlash, SIGNAL(activated()), this, SLOT(shortcutSlash()));
|
||||||
|
|
||||||
|
keyMinus = new QShortcut(this);
|
||||||
|
keyMinus->setKey(Qt::Key_Minus);
|
||||||
|
connect(keyMinus, SIGNAL(activated()), this, SLOT(shortcutMinus()));
|
||||||
|
|
||||||
|
keyPlus = new QShortcut(this);
|
||||||
|
keyPlus->setKey(Qt::Key_Plus);
|
||||||
|
connect(keyPlus, SIGNAL(activated()), this, SLOT(shortcutPlus()));
|
||||||
|
|
||||||
|
|
||||||
setDefaultColors(); // set of UI colors with defaults populated
|
setDefaultColors(); // set of UI colors with defaults populated
|
||||||
setDefPrefs(); // other default options
|
setDefPrefs(); // other default options
|
||||||
|
@ -594,6 +602,19 @@ void wfmain::shortcutSlash()
|
||||||
on_modeSelectCombo_activated( ui->modeSelectCombo->currentIndex() );
|
on_modeSelectCombo_activated( ui->modeSelectCombo->currentIndex() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wfmain::shortcutMinus()
|
||||||
|
{
|
||||||
|
ui->freqDial->setValue( ui->freqDial->value() - ui->freqDial->singleStep() );
|
||||||
|
// pageStep is the larger step size
|
||||||
|
}
|
||||||
|
|
||||||
|
void wfmain::shortcutPlus()
|
||||||
|
{
|
||||||
|
ui->freqDial->setValue( ui->freqDial->value() + ui->freqDial->singleStep() );
|
||||||
|
// pageStep is the larger step size
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void wfmain::getInitialRigState()
|
void wfmain::getInitialRigState()
|
||||||
{
|
{
|
||||||
// Initial list of queries to the radio.
|
// Initial list of queries to the radio.
|
||||||
|
|
5
wfmain.h
5
wfmain.h
|
@ -85,6 +85,8 @@ private slots:
|
||||||
|
|
||||||
void shortcutStar();
|
void shortcutStar();
|
||||||
void shortcutSlash();
|
void shortcutSlash();
|
||||||
|
void shortcutMinus();
|
||||||
|
void shortcutPlus();
|
||||||
|
|
||||||
void handlePttLimit(); // hit at 3 min transmit length
|
void handlePttLimit(); // hit at 3 min transmit length
|
||||||
|
|
||||||
|
@ -248,9 +250,10 @@ private:
|
||||||
QShortcut *keyControlI;
|
QShortcut *keyControlI;
|
||||||
QShortcut *keyControlU;
|
QShortcut *keyControlU;
|
||||||
|
|
||||||
|
|
||||||
QShortcut *keyStar;
|
QShortcut *keyStar;
|
||||||
QShortcut *keySlash;
|
QShortcut *keySlash;
|
||||||
|
QShortcut *keyMinus;
|
||||||
|
QShortcut *keyPlus;
|
||||||
|
|
||||||
|
|
||||||
rigCommander * rig;
|
rigCommander * rig;
|
||||||
|
|
10
wfview.pro
10
wfview.pro
|
@ -13,6 +13,16 @@ TEMPLATE = app
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += -march=native
|
QMAKE_CXXFLAGS += -march=native
|
||||||
|
|
||||||
|
CONFIG(debug, release|debug) {
|
||||||
|
# For Debug builds only:
|
||||||
|
|
||||||
|
} else {
|
||||||
|
# For Release builds only:
|
||||||
|
QMAKE_CXXFLAGS += -s
|
||||||
|
QMAKE_CXXFLAGS += -fvisibility=hidden
|
||||||
|
QMAKE_CXXFLAGS += -fvisibility-inlines-hidden
|
||||||
|
}
|
||||||
|
|
||||||
# The following define makes your compiler emit warnings if you use
|
# The following define makes your compiler emit warnings if you use
|
||||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||||
# depend on your compiler). Please consult the documentation of the
|
# depend on your compiler). Please consult the documentation of the
|
||||||
|
|
Ładowanie…
Reference in New Issue