|
swift
|
Base class to display overlay messages in different widgets (nested in this widget). More...
#include <overlaymessagesframe.h>
Public Member Functions | |
| ~COverlayMessagesBase ()=default | |
| Destructor. | |
| void | initOverlayMessages (QSize inner={}) |
| Init, normally we use lazy init, but by calling init explicitly we can force initalization. | |
| void | activateTextMessages (bool activate) |
| Active send/receive of text messages. | |
| 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). | |
| void | setReducedInfo (bool reduced) |
| Display reduced information. | |
| 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. | |
| void | clearOverlayMessages () |
| Clear the overlay messages. | |
| void | closeOverlay () |
| Close button clicked. | |
| void | showOverlayMessages (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Show multiple messages. | |
| 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. | |
| 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). | |
| void | sortOverlayMessages (const swift::misc::CPropertyIndex &property, Qt::SortOrder order) |
| Sort of overlay messages. | |
| void | setOverlayMessagesSorting (const swift::misc::CPropertyIndex &property, Qt::SortOrder order) |
| Set sorting of overlay messages. | |
| bool | showOverlayMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Show single message. | |
| bool | showOverlayTextMessage (const swift::misc::network::CTextMessage &textMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Info message, based on text message. | |
| void | showOverlayVariant (const swift::misc::CVariant &variant, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Display one of the supported types. | |
| void | showOverlayImage (const swift::misc::CPixmap &pixmap, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Image. | |
| bool | showOverlayHTMLMessage (const QString &htmlMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| HTML message. | |
| bool | showOverlayHTMLMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| HTML message. | |
| void | showDownloadProgress (int progress, qint64 current, qint64 max, const QUrl &url, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Download progress. | |
| void | showOverlayInlineTextMessage (components::TextMessageTab tab) |
| Image. | |
| void | showOverlayInlineTextMessage (const swift::misc::aviation::CCallsign &callsign) |
| Image. | |
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. | |
| void | keyPressEvent (QKeyEvent *event) |
| 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.
|
inlineprotected |
Constructor.
Definition at line 323 of file overlaymessagesframe.h.
|
inline |
Active send/receive of text messages.
Definition at line 73 of file overlaymessagesframe.h.
|
inline |
Clear the overlay messages.
Definition at line 135 of file overlaymessagesframe.h.
|
inline |
Close button clicked.
Definition at line 145 of file overlaymessagesframe.h.
|
inlineprotected |
Check minimum height/width.
Definition at line 375 of file overlaymessagesframe.h.
|
inlineprotected |
Init the inner frame (if not yet initialized).
Definition at line 331 of file overlaymessagesframe.h.
|
inlineprotected |
Init a minimal frame (smaller as the normal one).
Definition at line 353 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.
|
inlineprotected |
Definition at line 392 of file overlaymessagesframe.h.
|
inlineprotected |
Reimplemented in swift::gui::views::CViewBaseNonTemplate.
Definition at line 406 of file overlaymessagesframe.h.
|
inline |
Force small (smaller layout).
Definition at line 94 of file overlaymessagesframe.h.
|
inline |
Set sorting of overlay messages.
Definition at line 202 of file overlaymessagesframe.h.
|
inline |
Set the size factors.
Definition at line 83 of file overlaymessagesframe.h.
|
inline |
Display reduced information.
Definition at line 104 of file overlaymessagesframe.h.
|
inline |
Download progress.
Definition at line 287 of file overlaymessagesframe.h.
|
inline |
HTML message.
Definition at line 267 of file overlaymessagesframe.h.
|
inline |
HTML message.
Definition at line 277 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 258 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 296 of file overlaymessagesframe.h.
|
inline |
Image.
Definition at line 308 of file overlaymessagesframe.h.
|
inline |
Show single message.
Definition at line 208 of file overlaymessagesframe.h.
|
inline |
Show multiple messages.
Definition at line 155 of file overlaymessagesframe.h.
|
inline |
Show multiple messages or a single message (HTML).
Definition at line 182 of file overlaymessagesframe.h.
|
inline |
Show multiple messages or a single message.
Definition at line 168 of file overlaymessagesframe.h.
|
inline |
Show multiple messages with confirmation bar.
Definition at line 114 of file overlaymessagesframe.h.
|
inline |
Info message, based on text message.
Definition at line 222 of file overlaymessagesframe.h.
|
inline |
Display one of the supported types.
Definition at line 236 of file overlaymessagesframe.h.
|
inline |
Show the inner frame.
Definition at line 80 of file overlaymessagesframe.h.
|
inline |
Sort of overlay messages.
Definition at line 196 of file overlaymessagesframe.h.
|
protected |
embedded QFrame with status messages
Definition at line 320 of file overlaymessagesframe.h.