swift
Signals | Public Member Functions | Protected Member Functions | List of all members
swift::gui::editors::CAirlineIcaoForm Class Reference

Airline ICAO code form. More...

Inheritance diagram for swift::gui::editors::CAirlineIcaoForm:
[legend]

Signals

void airlineChanged (const swift::misc::aviation::CAirlineIcaoCode &airlineIcao)
 Airline has been changed.
 
void airlineChangedDigest (const swift::misc::aviation::CAirlineIcaoCode &airlineIcao)
 Airline has been changed.
 
- Signals inherited from swift::gui::COverlayMessagesFrame
void requestTextMessageEntryTab (components::TextMessageTab tab)
 Request an text message entry.
 
void requestTextMessageEntryCallsign (const swift::misc::aviation::CCallsign &callsign)
 Request an text message entry.
 
void requestTextMessageWidget (const swift::misc::aviation::CCallsign &callsign)
 Request a text message widget.
 

Public Member Functions

 CAirlineIcaoForm (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CAirlineIcaoForm ()
 Destructor.
 
void setValue (const swift::misc::aviation::CAirlineIcaoCode &icao=swift::misc::aviation::CAirlineIcaoCode())
 Set value.
 
swift::misc::aviation::CAirlineIcaoCode getValue () const
 Get value.
 
void allowDrop (bool allowDrop)
 Allow to drop.
 
bool isDropAllowed () const
 Is drop allowed?
 
void clear ()
 Clear.
 
void resetValue ()
 Reset value to current value.
 
Form class implementations
virtual void setReadOnly (bool readonly)
 Set editable.
 
virtual void setSelectOnly ()
 Read only, but entity can be selected (normally used in mapping). Use setReadOnly to reset this very state.
 
virtual swift::misc::CStatusMessageList validate (bool nested=false) const
 Validate, empty list means OK.
 
- Public Member Functions inherited from swift::gui::editors::CForm
 CForm (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CForm ()
 Destructor.
 
swift::misc::CStatusMessageList validateAsOverlayMessage (bool withNestedObjects=true, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Validate as overlay message. More...
 
bool isReadOnly () const
 Is read only?
 
- Public Member Functions inherited from swift::gui::COverlayMessagesFrame
 COverlayMessagesFrame (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 Constructor.
 
- Public Member Functions inherited from swift::gui::COverlayMessagesBase< QFrame >
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

virtual void jsonPasted (const QString &json)
 JSON string has been pasted. More...
 
void onDroppedCode (const swift::misc::CVariant &variantDropped)
 Variant has been dropped.
 
void onIdEntered ()
 Id entered.
 
void emitAirlineChangedDigest ()
 Emit the digest signal.
 
- Protected Member Functions inherited from swift::gui::editors::CForm
void pasted ()
 Pasted from clipboard.
 
void forceStyleSheetUpdate ()
 Forces a stylesheet update. More...
 
- Protected Member Functions inherited from swift::gui::COverlayMessagesBase< QFrame >
 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)
 

Additional Inherited Members

- Protected Attributes inherited from swift::gui::editors::CForm
bool m_readOnly = false
 read only
 
- Protected Attributes inherited from swift::gui::COverlayMessagesBase< QFrame >
COverlayMessagesm_overlayMessages
 embedded QFrame with status messages
 

Detailed Description

Airline ICAO code form.

Definition at line 28 of file airlineicaoform.h.

Member Function Documentation

◆ jsonPasted()

void swift::gui::editors::CAirlineIcaoForm::jsonPasted ( const QString &  json)
protectedvirtual

JSON string has been pasted.

Remarks
The JSON string has been pre-checked

Reimplemented from swift::gui::editors::CForm.

Definition at line 156 of file airlineicaoform.cpp.


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