mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
[PTT] Make sure the "other" PTT keys light the LEDs and play notification
Remark: Eventually it would be best to really hook up with audio to display the PTT key really consumed (instead directly consuming the action)
This commit is contained in:
committed by
Mat Sutcliffe
parent
516a7063e5
commit
076813e866
@@ -13,6 +13,8 @@
|
||||
|
||||
#include "blackcore/actionbind.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
#include "blackmisc/audio/ptt.h"
|
||||
#include "blackmisc/input/actionhotkeydefs.h"
|
||||
#include "blackmisc/network/connectionstatus.h"
|
||||
|
||||
@@ -59,7 +61,10 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CInfoBarStatusComponent> ui;
|
||||
BlackCore::CActionBind m_actionPtt { BlackMisc::Input::pttHotkeyAction(), BlackMisc::Input::pttHotkeyIcon(), this, &CInfoBarStatusComponent::onPttChanged };
|
||||
BlackCore::CActionBind m_actionPtt { BlackMisc::Input::pttHotkeyAction(), BlackMisc::Input::pttHotkeyIcon(), this, &CInfoBarStatusComponent::onPttChanged };
|
||||
BlackCore::CActionBind m_actionPtt1 { BlackMisc::Input::pttCom1HotkeyAction(), BlackMisc::Input::pttHotkeyIcon(), this, &CInfoBarStatusComponent::onPttChanged };
|
||||
BlackCore::CActionBind m_actionPtt2 { BlackMisc::Input::pttCom2HotkeyAction(), BlackMisc::Input::pttHotkeyIcon(), this, &CInfoBarStatusComponent::onPttChanged };
|
||||
|
||||
BlackMisc::CDigestSignal m_dsResize { this, &CInfoBarStatusComponent::adjustTextSize, 1000, 50 };
|
||||
|
||||
//! Init the LEDs
|
||||
@@ -83,9 +88,12 @@ namespace BlackGui
|
||||
//! Mapper is ready
|
||||
void onMapperReady();
|
||||
|
||||
//! Ptt button changed
|
||||
//! PTT button changed
|
||||
void onPttChanged(bool enabled);
|
||||
|
||||
//! PTT, as received in in audio
|
||||
void onAudioPtt(bool active, BlackMisc::Audio::PTTCOM pttcom, const BlackMisc::CIdentifier &identifier);
|
||||
|
||||
//! Internet accessible?
|
||||
void onInternetAccessibleChanged(bool access);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user