Ref T384, ATC button component and integration in text message component

This commit is contained in:
Klaus Basan
2018-10-05 02:01:17 +02:00
parent df08923455
commit 228e686b77
8 changed files with 319 additions and 25 deletions

View File

@@ -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();