![]() |
API Documentation
|
A message box displays a primary text to alert the user to a situation, an informative text to further explain the situation, and an optional detailed text to provide even more data if the user requests it. The interface for this object allows from either a set of predifined user options (OK, Load, Cancel, etc) or a set of program defined responses that the user can choose from. More...
#include <QCustomMessageBox.h>
Public Member Functions | |
| void | clearButtons () |
| virtual bool | processKeyEvent (const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override |
| virtual void | resetKeyControllerToDefaults () override |
| void | setButtons (const Buffer< TranslatedString > &button_labels) |
| void | setButtons (QMessageBox::StandardButtons buttons) |
| void | setCallback (std::function< void(QMessageBox::StandardButton, PopupInfo)> callback) |
| void | setGenericOptionCallback (std::function< void(GenericOption, PopupInfo)> callback) |
| void | setIcon (const String &image, fltp08 icon_size_mult=1.0) |
| void | setLabelCallback (std::function< void(TranslatedString, PopupInfo)> callback) |
| void | setText (const TranslatedString &text) |
| QSize | sizeHint () const override |
Public Member Functions inherited from BasicKeyController | |
| virtual void | addKeyOption (const KeyOption &option) |
| BasicKeyController (const TranslatedString &key_controller_title) | |
| const Buffer< KeyOption > & | currentKeyMaps () const |
| virtual void | getINI (INIFactory &factory) override |
| const TranslatedString & | keyControllerTitle () const |
| bool | processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override |
| virtual void | setKeyOption (const KeyOption &option) |
Public Member Functions inherited from KeyControllerBase | |
Public Member Functions inherited from INIInterface | |
| virtual void | finishReadingINI (INIFactory &) |
| INIInterface (const File &default_ini) | |
| virtual void | prepareForINI (INIFactory &) |
| virtual bool | readINIOptions () |
| virtual bool | readINIOptions (File &ini_file) |
| virtual bool | saveINIOptions (bool multithead=false) |
| virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
| void | setDefaultINIFile (const File &file) |
| virtual void | writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U) |
| virtual void | writeToLog (ProgressInfo *log, uint01 log_level=2U) |
| virtual | ~INIInterface () |
Static Public Member Functions | |
| static QCustomMessageBox * | CreateMessageBox (const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select=nullptr) |
| static QCustomMessageBox * | CreateMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr) |
| static QCustomMessageBox * | CreateMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr) |
Protected Member Functions | |
| void | addButtonsToLayout () |
| void | buttonPressed (const TranslatedString &button_label, PopupInfo) |
| void | buttonPressed (QMessageBox::StandardButton button, PopupInfo) |
| QCustomMessageBox (const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select) | |
| QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr) | |
| QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr) | |
| virtual | ~QCustomMessageBox () |
Protected Attributes | |
| Buffer< Button * > | m_buttons |
| std::function< void(QMessageBox::StandardButton, PopupInfo)> | m_callback |
| GenericOption | m_generic_option |
| ImageView * | m_image_view |
| std::function< void(TranslatedString, PopupInfo)> | m_label_callback |
| String | m_pixmap |
| QLabel * | m_text |
| QHBoxLayout * | m_top_layout |
| std::function< void(GenericOption, PopupInfo)> | m_user_entry_callback |
Protected Attributes inherited from BasicKeyController | |
| TranslatedString | m_key_controller_title |
| Buffer< KeyOption > | m_key_options |
| bool | m_save_ini_on_change_key_option_change = false |
Protected Attributes inherited from INIInterface | |
| File | m_default_ini |
Static Protected Attributes | |
| static Dictionary< UUID, QPointer< QCustomMessageBox > > | s_message_boxes |
A message box displays a primary text to alert the user to a situation, an informative text to further explain the situation, and an optional detailed text to provide even more data if the user requests it. The interface for this object allows from either a set of predifined user options (OK, Load, Cancel, etc) or a set of program defined responses that the user can choose from.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
| void clearButtons | ( | ) |
|
static |
|
static |
|
static |
|
overridevirtual |
Implements BasicKeyController.
|
overridevirtual |
Implements BasicKeyController.
| void setButtons | ( | const Buffer< TranslatedString > & | button_labels | ) |
| void setButtons | ( | QMessageBox::StandardButtons | buttons | ) |
|
inline |
|
inline |
|
inline |
| void setText | ( | const TranslatedString & | text | ) |
|
override |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |