mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
Add Add Channels dialog, to easily add Channel Powe channels.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "sid.h"
|
||||
#include "sidgui.h"
|
||||
#include "sidsettingsdialog.h"
|
||||
#include "sidaddchannelsdialog.h"
|
||||
|
||||
#include "SWGMapItem.h"
|
||||
|
||||
@@ -1482,6 +1483,16 @@ void SIDGUI::on_deleteAll_clicked()
|
||||
getData();
|
||||
}
|
||||
|
||||
void SIDGUI::on_addChannels_clicked()
|
||||
{
|
||||
SIDAddChannelsDialog dialog(&m_settings);
|
||||
|
||||
new DialogPositioner(&dialog, true);
|
||||
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
|
||||
void SIDGUI::on_settings_clicked()
|
||||
{
|
||||
SIDSettingsDialog dialog(&m_settings);
|
||||
@@ -1493,6 +1504,8 @@ void SIDGUI::on_settings_clicked()
|
||||
&SIDGUI::removeChannels
|
||||
);
|
||||
|
||||
new DialogPositioner(&dialog, true);
|
||||
|
||||
if (dialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
setAutosaveTimer();
|
||||
@@ -1587,6 +1600,7 @@ void SIDGUI::makeUIConnections()
|
||||
QObject::connect(ui->saveData, &QToolButton::clicked, this, &SIDGUI::on_saveData_clicked);
|
||||
QObject::connect(ui->loadData, &QToolButton::clicked, this, &SIDGUI::on_loadData_clicked);
|
||||
QObject::connect(ui->saveChartImage, &QToolButton::clicked, this, &SIDGUI::on_saveChartImage_clicked);
|
||||
QObject::connect(ui->addChannels, &QToolButton::clicked, this, &SIDGUI::on_addChannels_clicked);
|
||||
QObject::connect(ui->settings, &QToolButton::clicked, this, &SIDGUI::on_settings_clicked);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user