diff --git a/src/blackgui/components/atcstationcomponent.cpp b/src/blackgui/components/atcstationcomponent.cpp
index 222bfb399..e7e55a9fb 100644
--- a/src/blackgui/components/atcstationcomponent.cpp
+++ b/src/blackgui/components/atcstationcomponent.cpp
@@ -72,6 +72,8 @@ namespace BlackGui
ui->tb_AtcStationsAtisReload->setText("");
ui->tb_AtcStationsLoadMetar->setIcon(CIcons::metar());
ui->tb_AtcStationsLoadMetar->setText("");
+ ui->tb_Audio->setIcon(CIcons::appAudio16());
+ ui->tb_Audio->setText("");
// set station mode
ui->tvp_AtcStationsOnline->setStationMode(CAtcStationListModel::StationsOnline);
@@ -83,7 +85,7 @@ namespace BlackGui
// Signal / Slots
connect(ui->le_AtcStationsOnlineMetar, &QLineEdit::returnPressed, this, &CAtcStationComponent::getMetarAsEntered);
connect(ui->tb_AtcStationsLoadMetar, &QPushButton::clicked, this, &CAtcStationComponent::getMetarAsEntered);
- connect(ui->pb_Audio, &QPushButton::clicked, this, &CAtcStationComponent::requestAudioWidget);
+ connect(ui->tb_Audio, &QPushButton::clicked, this, &CAtcStationComponent::requestAudioWidget);
connect(this, &QTabWidget::currentChanged, this, &CAtcStationComponent::atcStationsTabChanged); // "local" tab changed (booked, online)
connect(ui->tvp_AtcStationsOnline, &QTableView::clicked, this, &CAtcStationComponent::onlineAtcStationSelected);
connect(ui->tvp_AtcStationsOnline, &CAtcStationView::testRequestDummyAtcOnlineStations, this, &CAtcStationComponent::testCreateDummyOnlineAtcStations);
diff --git a/src/blackgui/components/atcstationcomponent.ui b/src/blackgui/components/atcstationcomponent.ui
index 44249b3c1..bfe5a4d1e 100644
--- a/src/blackgui/components/atcstationcomponent.ui
+++ b/src/blackgui/components/atcstationcomponent.ui
@@ -154,7 +154,10 @@
-
-
+
+
+ goto audio panel
+
audio
@@ -297,7 +300,7 @@
le_AtcStationsOnlineMetar
tb_AtcStationsLoadMetar
tb_AtcStationsAtisReload
- pb_Audio
+ tb_Audio
comp_AtcStationsSettings
te_AtcStationsOnlineInfo
tvp_AtcStationsOnlineTree
diff --git a/src/blackgui/components/audiosetupcomponent.cpp b/src/blackgui/components/audiosetupcomponent.cpp
index 307bceae4..2413c59b3 100644
--- a/src/blackgui/components/audiosetupcomponent.cpp
+++ b/src/blackgui/components/audiosetupcomponent.cpp
@@ -45,11 +45,9 @@ namespace BlackGui
// audio is optional
const bool audio = this->hasAudio();
this->setEnabled(audio);
- ui->lbl_ExtraInfo->setText(audio ? sGui->getIContextAudio()->audioRunsWhereInfo() : "No audio, cannot change.");
+ ui->le_ExtraInfo->setText(audio ? sGui->getIContextAudio()->audioRunsWhereInfo() : "No audio, cannot change.");
- bool c = connect(ui->tb_ExpandNotificationSounds, &QToolButton::toggled, this, &CAudioSetupComponent::onToggleNotificationSoundsVisibility);
- Q_ASSERT(c);
- c = connect(ui->cb_SetupAudioLoopback, &QCheckBox::toggled, this, &CAudioSetupComponent::onLoopbackToggled);
+ bool c = connect(ui->cb_SetupAudioLoopback, &QCheckBox::toggled, this, &CAudioSetupComponent::onLoopbackToggled);
Q_ASSERT(c);
if (audio)
@@ -72,7 +70,6 @@ namespace BlackGui
Q_ASSERT(c);
}
this->reloadSettings();
- ui->tb_ExpandNotificationSounds->setChecked(false); // collapse
Q_UNUSED(c);
}
@@ -87,11 +84,6 @@ namespace BlackGui
ui->cb_SetupAudioNotificationVoiceRoom->setChecked(as.getNotificationFlag(CNotificationSounds::NotificationVoiceRoomJoined));
}
- void CAudioSetupComponent::onToggleNotificationSoundsVisibility(bool checked)
- {
- ui->fr_NotificationSoundsInner->setVisible(checked);
- }
-
void CAudioSetupComponent::initAudioDeviceLists()
{
if (!this->hasAudio()) { return; }
diff --git a/src/blackgui/components/audiosetupcomponent.h b/src/blackgui/components/audiosetupcomponent.h
index f4b99b432..4a1b349dc 100644
--- a/src/blackgui/components/audiosetupcomponent.h
+++ b/src/blackgui/components/audiosetupcomponent.h
@@ -60,9 +60,6 @@ namespace BlackGui
//! Loopback toggled
void onLoopbackToggled(bool loopback);
- //! Visibilty (show/hide buttons)
- void onToggleNotificationSoundsVisibility(bool checked);
-
//! Audio device lists from settings
void initAudioDeviceLists();
diff --git a/src/blackgui/components/audiosetupcomponent.ui b/src/blackgui/components/audiosetupcomponent.ui
index 4424b8cfc..7fdb4ad2e 100644
--- a/src/blackgui/components/audiosetupcomponent.ui
+++ b/src/blackgui/components/audiosetupcomponent.ui
@@ -6,8 +6,8 @@
0
0
- 264
- 359
+ 200
+ 322
@@ -55,6 +55,23 @@
2
+
-
+
+
+ Info
+
+
+
+ -
+
+
+ true
+
+
+ extra info goes here
+
+
+
-
@@ -100,100 +117,38 @@
- -
-
-
- Extra info goes here
-
-
- true
-
-
-
-
-
- -
-
-
- 3
-
-
- 3
-
-
- 3
-
-
- 3
-
-
-
-
-
- Notification sounds
-
-
-
- -
-
-
-
- 18
- 18
-
-
+
-
+
- Toggle visibility
+ Notifications
- ...
+ Not.:
-
-
- :/diagona/icons/diagona/icons/toggle-expand.png
- :/diagona/icons/diagona/icons/toggle.png:/diagona/icons/diagona/icons/toggle-expand.png
-
-
- true
+
+
+ -
+
+
+ play notification sounds
- true
+ false
- -
-
-
- QFrame::StyledPanel
+
-
+
+
+ notification for text messages
-
- QFrame::Raised
+
+
+ -
+
+
+ notification for join/leave voice room
-
-
-
-
-
- notification for join/leave voice room
-
-
-
- -
-
-
- play notification sounds
-
-
- false
-
-
-
- -
-
-
- notification for text messages
-
-
-
-
@@ -213,8 +168,6 @@
-
-
-
+
diff --git a/src/blackgui/components/audiovolumecomponent.ui b/src/blackgui/components/audiovolumecomponent.ui
index c8d35067d..1d8c6e9e7 100644
--- a/src/blackgui/components/audiovolumecomponent.ui
+++ b/src/blackgui/components/audiovolumecomponent.ui
@@ -2,6 +2,14 @@
CAudioVolumeComponent
+
+
+ 0
+ 0
+ 193
+ 50
+
+
Frame
@@ -106,12 +114,6 @@
-
-
-
- 0
- 0
-
-
Windows sound mixer
@@ -126,12 +128,6 @@
-
-
-
- 0
- 0
-
-
Toggle mute
@@ -153,12 +149,6 @@
-
-
-
- 0
- 0
-
-
40