Added +/- key support for tuning. Added additional compiler flags to

lower executable size.
merge-requests/1/merge
Elliott Liggett 2019-02-03 21:51:30 -08:00
rodzic 5dfeebdbae
commit dce977db76
3 zmienionych plików z 35 dodań i 1 usunięć

Wyświetl plik

@ -91,6 +91,14 @@ wfmain::wfmain(QWidget *parent) :
keySlash->setKey(Qt::Key_Slash);
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
setDefPrefs(); // other default options
@ -594,6 +602,19 @@ void wfmain::shortcutSlash()
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()
{
// Initial list of queries to the radio.

Wyświetl plik

@ -85,6 +85,8 @@ private slots:
void shortcutStar();
void shortcutSlash();
void shortcutMinus();
void shortcutPlus();
void handlePttLimit(); // hit at 3 min transmit length
@ -248,9 +250,10 @@ private:
QShortcut *keyControlI;
QShortcut *keyControlU;
QShortcut *keyStar;
QShortcut *keySlash;
QShortcut *keyMinus;
QShortcut *keyPlus;
rigCommander * rig;

Wyświetl plik

@ -13,6 +13,16 @@ TEMPLATE = app
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
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the