diff --git a/src/blackgui/components/logcomponent.ui b/src/blackgui/components/logcomponent.ui
index 3ae1f1d70..562058a54 100644
--- a/src/blackgui/components/logcomponent.ui
+++ b/src/blackgui/components/logcomponent.ui
@@ -42,24 +42,13 @@
0
-
-
+
0
-
- 3
-
-
-
-
- 0
- 0
- 398
- 250
-
-
-
- Messages
+
+
+ Log
@@ -92,16 +81,8 @@
-
-
-
- 0
- 0
- 398
- 250
-
-
-
+
+
Console
diff --git a/src/blackgui/components/mainkeypadareacomponent.cpp b/src/blackgui/components/mainkeypadareacomponent.cpp
index 9266f6ed0..b59fa32ed 100644
--- a/src/blackgui/components/mainkeypadareacomponent.cpp
+++ b/src/blackgui/components/mainkeypadareacomponent.cpp
@@ -42,11 +42,11 @@ namespace BlackGui
// non info areas
connect(this->ui->pb_Connect, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
- connect(this->ui->pb_CockpitIdent, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
+ connect(this->ui->pb_CockpitIdent, &QPushButton::released, this, &CMainKeypadAreaComponent::ps_buttonSelected);
connect(this->ui->pb_Opacity050, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
connect(this->ui->pb_Opacity100, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
connect(this->ui->pb_SoundMaxVolume, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
- connect(this->ui->pb_SoundMute, &QPushButton::pressed, this, &CMainKeypadAreaComponent::ps_buttonSelected);
+ connect(this->ui->pb_SoundMute, &QPushButton::released, this, &CMainKeypadAreaComponent::ps_buttonSelected);
// command line
this->connect(this->ui->le_CommandLineInput, &QLineEdit::returnPressed, this, &CMainKeypadAreaComponent::ps_commandEntered);
@@ -85,6 +85,7 @@ namespace BlackGui
connect(this->getIContextNetwork(), &IContextNetwork::connectionStatusChanged, this, &CMainKeypadAreaComponent::ps_connectionStatusChanged);
connect(this->getIContextOwnAircraft(), &IContextOwnAircraft::changedAircraftCockpit, this, &CMainKeypadAreaComponent::ps_ownAircraftCockpitChanged);
+ connect(this->getIContextAudio(), &IContextAudio::changedMute, this, &CMainKeypadAreaComponent::ps_muteChanged);
connect(this, &CMainKeypadAreaComponent::commandEntered, this->getIContextOwnAircraft(), &IContextOwnAircraft::parseCommandLine);
connect(this, &CMainKeypadAreaComponent::commandEntered, this->getIContextNetwork(), &IContextNetwork::parseCommandLine);
@@ -163,13 +164,21 @@ namespace BlackGui
void CMainKeypadAreaComponent::ps_ownAircraftCockpitChanged(const CAircraft &aircraft, const QString &originator)
{
Q_UNUSED(originator);
- if (aircraft.getTransponder().getTransponderMode() == CTransponder::StateIdent)
+ bool ident = aircraft.getTransponder().getTransponderMode() == CTransponder::StateIdent;
+
+ //check state to avoid undelibarate signals
+ if (ident != this->ui->pb_CockpitIdent->isChecked())
{
- this->ui->pb_CockpitIdent->setStyleSheet("background-color: yellow");
+ this->ui->pb_CockpitIdent->setChecked(ident);
}
- else
+ }
+
+ void CMainKeypadAreaComponent::ps_muteChanged(bool muted)
+ {
+ //check state to avoid undelibarate signals
+ if (muted != this->ui->pb_SoundMute->isChecked())
{
- this->ui->pb_CockpitIdent->setStyleSheet("");
+ this->ui->pb_SoundMute->setChecked(muted);
}
}
@@ -209,7 +218,6 @@ namespace BlackGui
return nullptr;
}
-
Aviation::CAircraft CMainKeypadAreaComponent::getOwnAircraft() const
{
if (!this->getIContextOwnAircraft()) { return CAircraft(); }
diff --git a/src/blackgui/components/mainkeypadareacomponent.h b/src/blackgui/components/mainkeypadareacomponent.h
index 9d6f1b43f..f12e78c9c 100644
--- a/src/blackgui/components/mainkeypadareacomponent.h
+++ b/src/blackgui/components/mainkeypadareacomponent.h
@@ -80,6 +80,9 @@ namespace BlackGui
//! \copydoc BlackCore::IContextOwnAircraft::changedAircraftCockpit
void ps_ownAircraftCockpitChanged(const BlackMisc::Aviation::CAircraft &aircraft, const QString &originator);
+ //! \copydoc BlackCore::IContextAudio::changedMute
+ void ps_muteChanged(bool muted);
+
private:
//! If button is info area, identify it
CMainInfoAreaComponent::InfoArea buttonToMainInfoArea(const QObject *button) const;
diff --git a/src/blackgui/components/mainkeypadareacomponent.ui b/src/blackgui/components/mainkeypadareacomponent.ui
index 7840210e1..5ce080f00 100644
--- a/src/blackgui/components/mainkeypadareacomponent.ui
+++ b/src/blackgui/components/mainkeypadareacomponent.ui
@@ -86,6 +86,9 @@
Mute
+
+ true
+
-
@@ -269,6 +272,9 @@
Ident
+
+ true
+
-