swift
Signals | Public Member Functions | List of all members
swift::gui::views::CAtcStationTreeView Class Reference

ATC stations view. More...

Inheritance diagram for swift::gui::views::CAtcStationTreeView:
[legend]

Signals

void testRequestDummyAtcOnlineStations (int number)
 Request some dummy ATC stations.
 
void requestComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit unit)
 Request COM frequency.
 
void requestTextMessageWidget (const swift::misc::aviation::CCallsign &callsign)
 Request a text message to.
 
void objectSelected (const swift::misc::aviation::CAtcStation &station)
 This object has been selected.
 

Public Member Functions

 CAtcStationTreeView (QWidget *parent=nullptr)
 Constructor.
 
void changedAtcStationConnectionStatus (const swift::misc::aviation::CAtcStation &station, bool added)
 Used to quickly update single station (better response for the user) More...
 
void updateContainer (const swift::misc::aviation::CAtcStationList &stations)
 Update container.
 
void clear ()
 Clear.
 
bool isEmpty () const
 Empty.
 
void setColumns (const models::CColumns &columns)
 Set columns.
 
void fullResizeToContents ()
 Resize all columns.
 
- Public Member Functions inherited from swift::gui::COverlayMessagesTreeView
 COverlayMessagesTreeView (QWidget *parent=nullptr)
 Constructor.
 
- Public Member Functions inherited from swift::gui::COverlayMessagesBase< QTreeView >
virtual ~COverlayMessagesBase ()
 Destructor.
 
void initOverlayMessages (QSize inner={})
 Init, normally we use lazy init, but by calling init explicitly we can force initalization. More...
 
void activateTextMessages (bool activate)
 Active send/receive of text messages. More...
 
void showStatusMessagesFrame ()
 Show the inner frame.
 
void setOverlaySizeFactors (double widthFactor, double heightFactor, double middleFactor=2)
 Set the size factors.
 
void setForceSmall (bool force)
 Force small (smaller layout) More...
 
void setReducedInfo (bool reduced)
 Display reduced information. More...
 
void showOverlayMessagesWithConfirmation (const swift::misc::CStatusMessageList &messages, bool appendOldMessages, const QString &confirmationMessage, std::function< void()> okLambda, QMessageBox::StandardButton defaultButton=QMessageBox::Cancel, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages with confirmation bar. More...
 
void clearOverlayMessages ()
 Clear the overlay messages. More...
 
void closeOverlay ()
 Close button clicked. More...
 
void showOverlayMessages (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages. More...
 
void showOverlayMessagesOrSingleMessage (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages or a single message. More...
 
void showOverlayMessagesOrHTMLMessage (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages or a single message (HTML) More...
 
void sortOverlayMessages (const swift::misc::CPropertyIndex &property, Qt::SortOrder order)
 Sort of overlay messages. More...
 
void setOverlayMessagesSorting (const swift::misc::CPropertyIndex &property, Qt::SortOrder order)
 Set sorting of overlay messages. More...
 
bool showOverlayMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show single message. More...
 
bool showOverlayTextMessage (const swift::misc::network::CTextMessage &textMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Info message, based on text message. More...
 
void showOverlayVariant (const swift::misc::CVariant &variant, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Display one of the supported types. More...
 
void showOverlayImage (const swift::misc::CPixmap &pixmap, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Image. More...
 
bool showOverlayHTMLMessage (const QString &htmlMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 HTML message. More...
 
bool showOverlayHTMLMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 HTML message. More...
 
void showDownloadProgress (int progress, qint64 current, qint64 max, const QUrl &url, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Download progress. More...
 
void showOverlayInlineTextMessage (components::TextMessageTab tab)
 Image. More...
 
void showOverlayInlineTextMessage (const swift::misc::aviation::CCallsign &callsign)
 Image. More...
 

Additional Inherited Members

- Protected Member Functions inherited from swift::gui::COverlayMessagesBase< QTreeView >
 COverlayMessagesBase (QWidget *parent, Qt::WindowFlags f=Qt::WindowFlags())
 Constructor.
 
void initInnerFrame (double widthFactor=-1, double heightFactor=-1)
 Init the inner frame (if not yet initialized)
 
void initMinimalFrame (int lines=4)
 Init a minimal frame (smaller as the normal one)
 
bool hasMinimumSize (int w, int h) const
 Check minimum height/width.
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
- Protected Attributes inherited from swift::gui::COverlayMessagesBase< QTreeView >
COverlayMessagesm_overlayMessages
 embedded QFrame with status messages
 

Detailed Description

ATC stations view.

Definition at line 34 of file atcstationtreeview.h.

Member Function Documentation

◆ changedAtcStationConnectionStatus()

void swift::gui::views::CAtcStationTreeView::changedAtcStationConnectionStatus ( const swift::misc::aviation::CAtcStation station,
bool  added 
)

Used to quickly update single station (better response for the user)

Definition at line 33 of file atcstationtreeview.cpp.


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