swift
Signals | Public Member Functions | List of all members
swift::gui::components::CTextMessageComponent Class Reference

Text message widget. More...

Inheritance diagram for swift::gui::components::CTextMessageComponent:
[legend]

Signals

void displayInInfoWindow (const swift::misc::CVariant &message, std::chrono::milliseconds displayDuration)
 Message to be displayed in central info window. More...
 
void commandEntered (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Command line was entered.
 
void textMessageTabSelected ()
 Text message tab selected.
 

Public Member Functions

 CTextMessageComponent (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CTextMessageComponent ()
 Destructor.
 
virtual bool setParentDockWidgetInfoArea (CDockWidgetInfoArea *parentDockableWidget)
 Corresponding dockable widget in info area. More...
 
bool handleGlobalCommandLineText (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Used to allow direct input from global command line when visible. More...
 
void showCorrespondingTab (const swift::misc::aviation::CCallsign &callsign)
 Display the tab for given callsign.
 
void showCorrespondingTabForFrequency (const swift::misc::physical_quantities::CFrequency &frequency)
 Display the tab for given frequency.
 
void setTab (TextMessageTab tab)
 Set tab.
 
bool hasAllMessagesTab () const
 Has an all tab.
 
void showSettings (bool show)
 Show the settings.
 
void showTextMessageEntry (bool show)
 Show an text entry field.
 
void focusTextEntry ()
 Focus the text entry field.
 
void removeAllMessagesTab ()
 Remove the all tab, the operation cannot be undone.
 
bool isShowingRealNames () const
 Showing real names.
 
void setShowingRealNames (bool show)
 Showing real names.
 
void setAsUsedInOverlayMode ()
 Used as overlay and not dock widget.
 
void activate (bool send, bool receive)
 Ignore incoming send/receive signals.
 
bool isActivated () const
 Text activated.
 
void setAtcButtonsRowsColumns (int rows, int cols, bool setMaxElements)
 Rows/columns.
 
void setAtcButtonsBackgroundUpdates (bool backgroundUpdates)
 Background updates or explicitly called.
 
void updateAtcStationsButtons ()
 Update buttons.
 
void fontSizeMinus ()
 Font size.
 
void fontSizePlus ()
 Font size.
 
- Public Member Functions inherited from swift::gui::CEnableForDockWidgetInfoArea
CDockWidgetInfoAreagetDockWidgetInfoArea () const
 Corresponding dockable widget in info area.
 
bool hasDockWidgetArea () const
 Has dock area?
 
CInfoAreagetParentInfoArea () const
 The parent info area.
 
bool isParentDockWidgetFloating () const
 Is the parent dockable widget floating?
 
bool isVisibleWidget () const
 Visible widget. More...
 
CEnableForFramelessWindowmainApplicationWindow () const
 Main application window if any.
 
QWidget * mainApplicationWindowWidget () const
 Main application window widget if any.
 
void displayMyself ()
 Display myself.
 

Additional Inherited Members

- Protected Member Functions inherited from swift::gui::CEnableForDockWidgetInfoArea
 CEnableForDockWidgetInfoArea (CDockWidgetInfoArea *parentInfoArea=nullptr)
 Constructor. More...
 
virtual ~CEnableForDockWidgetInfoArea ()
 Destructor.
 
- Protected Attributes inherited from swift::gui::CEnableForDockWidgetInfoArea
CDockWidgetInfoAream_parentDockableInfoArea = nullptr
 my parent dockable widget
 
swift::misc::CConnectionGuard m_connections
 connections
 

Detailed Description

Text message widget.

Definition at line 37 of file textmessagecomponent.h.

Member Function Documentation

◆ displayInInfoWindow

void swift::gui::components::CTextMessageComponent::displayInInfoWindow ( const swift::misc::CVariant message,
std::chrono::milliseconds  displayDuration 
)
signal

Message to be displayed in central info window.

Remarks
do not emit in overlay messages

◆ handleGlobalCommandLineText()

bool swift::gui::components::CTextMessageComponent::handleGlobalCommandLineText ( const QString &  commandLine,
const swift::misc::CIdentifier originator 
)

Used to allow direct input from global command line when visible.

Remarks
takes the messages, turns it into a ".msg" command, and emits it

Definition at line 813 of file textmessagecomponent.cpp.

◆ setParentDockWidgetInfoArea()

bool swift::gui::components::CTextMessageComponent::setParentDockWidgetInfoArea ( CDockWidgetInfoArea parentDockableWidget)
virtual

Corresponding dockable widget in info area.

Remarks
Usually set from CDockWidgetInfoArea when it is fully initialized

Reimplemented from swift::gui::CEnableForDockWidgetInfoArea.

Definition at line 130 of file textmessagecomponent.cpp.


The documentation for this class was generated from the following files: