mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Ref T384, ATC button component and integration in text message component
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "blackgui/settings/textmessagesettings.h"
|
||||
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/aviation/atcstation.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/identifier.h"
|
||||
#include "blackmisc/variant.h"
|
||||
@@ -77,9 +78,20 @@ namespace BlackGui
|
||||
//! Remove the all tab, the operation cannot be undone
|
||||
void removeAllMessagesTab();
|
||||
|
||||
// ---------- overlay test messages -------------
|
||||
|
||||
//! Used as overlay and not dock widget
|
||||
void setAsUsedInOverlayMode() { m_usedAsOverlayWidget = true; }
|
||||
|
||||
//! Rows/columns
|
||||
void setAtcButtonsRowsColumns(int rows, int cols, bool setMaxElements);
|
||||
|
||||
//! Background updates or explicitly called
|
||||
void setAtcButtonsBackgroundUpdates(bool backgroundUpdates);
|
||||
|
||||
//! Update buttons
|
||||
void updateAtcButtonStations();
|
||||
|
||||
signals:
|
||||
//! Message to be displayed in info window
|
||||
void displayInInfoWindow(const BlackMisc::CVariant &message, int displayDurationMs) const;
|
||||
@@ -160,6 +172,9 @@ namespace BlackGui
|
||||
//! Style sheet has been changed
|
||||
void onStyleSheetChanged();
|
||||
|
||||
//! ATC Button
|
||||
void onAtcButtonClicked(const BlackMisc::Aviation::CAtcStation &station);
|
||||
|
||||
//! Update settings
|
||||
void updateSettings();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user