mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Added a save settings button to the main window
This commit is contained in:
parent
662b575fa1
commit
cf9263f1ff
@ -126,6 +126,7 @@ private slots:
|
||||
void on_action_View_Fullscreen_toggled(bool checked);
|
||||
void on_presetSave_clicked();
|
||||
void on_presetUpdate_clicked();
|
||||
void on_settingsSave_clicked();
|
||||
void on_presetLoad_clicked();
|
||||
void on_presetDelete_clicked();
|
||||
void on_presetTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
||||
|
@ -497,8 +497,6 @@ DSPEngine::State DSPEngine::gotoError(const QString& errorMessage)
|
||||
|
||||
void DSPEngine::handleSetSource(SampleSource* source)
|
||||
{
|
||||
qDebug() << "DSPEngine::handleSetSource";
|
||||
|
||||
gotoIdle();
|
||||
|
||||
if(m_sampleSource != 0)
|
||||
@ -510,12 +508,12 @@ void DSPEngine::handleSetSource(SampleSource* source)
|
||||
|
||||
if(m_sampleSource != 0)
|
||||
{
|
||||
qDebug() << " - set " << source->getDeviceDescription().toStdString().c_str();
|
||||
qDebug() << "DSPEngine::handleSetSource: set " << source->getDeviceDescription().toStdString().c_str();
|
||||
connect(m_sampleSource->getSampleFifo(), SIGNAL(dataReady()), this, SLOT(handleData()), Qt::QueuedConnection);
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << " - set none";
|
||||
qDebug() << "DSPEngine::handleSetSource: set none";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -488,6 +488,11 @@ void MainWindow::on_presetUpdate_clicked()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_settingsSave_clicked()
|
||||
{
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
void MainWindow::on_presetLoad_clicked()
|
||||
{
|
||||
qDebug() << "MainWindow::on_presetLoad_clicked";
|
||||
|
@ -163,7 +163,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="7">
|
||||
<item row="5" column="9">
|
||||
<widget class="QToolButton" name="presetLoad">
|
||||
<property name="toolTip">
|
||||
<string>Load selected preset</string>
|
||||
@ -183,7 +183,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="5" colspan="2">
|
||||
<item row="5" column="7" colspan="2">
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -196,7 +196,7 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="3">
|
||||
<item row="5" column="5">
|
||||
<widget class="QToolButton" name="presetDelete">
|
||||
<property name="toolTip">
|
||||
<string>Delete selected preset</string>
|
||||
@ -216,7 +216,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" rowspan="4" colspan="7">
|
||||
<item row="1" column="1" rowspan="4" colspan="9">
|
||||
<widget class="QTreeWidget" name="presetTree">
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
@ -253,6 +253,39 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="4">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="3">
|
||||
<widget class="QToolButton" name="settingsSave">
|
||||
<property name="toolTip">
|
||||
<string>Save the current settings (inc. presets)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources/res.qrc">
|
||||
<normaloff>:/preset-last.png</normaloff>:/preset-last.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
@ -359,6 +392,17 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<action name="action_Exit">
|
||||
<property name="text">
|
||||
<string>E&xit</string>
|
||||
|
Loading…
Reference in New Issue
Block a user