swift
|
Base class to display overlay messages in different widgets (nested in this widget). More...
Public Member Functions | |
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... | |
Protected Member Functions | |
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 | |
COverlayMessages * | m_overlayMessages = nullptr |
embedded QFrame with status messages | |
Base class to display overlay messages in different widgets (nested in this widget).
Definition at line 47 of file overlaymessagesframe.h.
|
inline |
Active send/receive of text messages.
Definition at line 67 of file overlaymessagesframe.h.
|
inline |
Clear the overlay messages.
Definition at line 114 of file overlaymessagesframe.h.
|
inline |
Close button clicked.
Definition at line 121 of file overlaymessagesframe.h.
|
inline |
Init, normally we use lazy init, but by calling init explicitly we can force initalization.
Definition at line 55 of file overlaymessagesframe.h.
|
inlineprotectedvirtual |
Reimplemented in swift::gui::CDockWidget.
Definition at line 335 of file overlaymessagesframe.h.
|
inlineprotectedvirtual |
Reimplemented in swift::gui::views::CViewBaseNonTemplate.
Definition at line 346 of file overlaymessagesframe.h.
|
inline |
Force small (smaller layout)
Definition at line 85 of file overlaymessagesframe.h.
|
inline |
Set sorting of overlay messages.
Definition at line 166 of file overlaymessagesframe.h.
|
inline |
Display reduced information.
Definition at line 92 of file overlaymessagesframe.h.
|
inline |
Download progress.
Definition at line 239 of file overlaymessagesframe.h.
|
inline |
HTML message.
Definition at line 219 of file overlaymessagesframe.h.
|
inline |
HTML message.
Definition at line 229 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 210 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 248 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 257 of file overlaymessagesframe.h.
|
inline |
Show single message.
Definition at line 172 of file overlaymessagesframe.h.
|
inline |
Show multiple messages.
Definition at line 128 of file overlaymessagesframe.h.
|
inline |
Show multiple messages or a single message (HTML)
Definition at line 149 of file overlaymessagesframe.h.
|
inline |
Show multiple messages or a single message.
Definition at line 138 of file overlaymessagesframe.h.
|
inline |
Show multiple messages with confirmation bar.
Definition at line 99 of file overlaymessagesframe.h.
|
inline |
Info message, based on text message.
Definition at line 183 of file overlaymessagesframe.h.
|
inline |
Display one of the supported types.
Definition at line 194 of file overlaymessagesframe.h.
|
inline |
Sort of overlay messages.
Definition at line 160 of file overlaymessagesframe.h.