1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00

Commands: implemented save commands button

This commit is contained in:
f4exb 2018-01-05 11:54:05 +01:00
parent aa8e01f8ce
commit de5cedffea
2 changed files with 12 additions and 0 deletions

View File

@ -594,6 +594,10 @@ void MainWindow::savePresetSettings(Preset* preset, int tabIndex)
preset->setLayout(saveState());
}
void MainWindow::saveCommandSettings()
{
}
void MainWindow::createStatusBar()
{
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
@ -1019,6 +1023,12 @@ void MainWindow::on_commandOutput_clicked()
}
}
void MainWindow::on_commandsSave_clicked()
{
saveCommandSettings();
m_settings.save();
}
void MainWindow::on_commandKeyboardConnect_toggled(bool checked)
{
qDebug("on_commandKeyboardConnect_toggled: %s", checked ? "true" : "false");

View File

@ -317,6 +317,7 @@ private:
void loadSettings();
void loadPresetSettings(const Preset* preset, int tabIndex);
void savePresetSettings(Preset* preset, int tabIndex);
void saveCommandSettings();
void createStatusBar();
void closeEvent(QCloseEvent*);
@ -354,6 +355,7 @@ private slots:
void on_commandDelete_clicked();
void on_commandRun_clicked();
void on_commandOutput_clicked();
void on_commandsSave_clicked();
void on_commandKeyboardConnect_toggled(bool checked);
void on_action_Audio_triggered();
void on_action_Logging_triggered();