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.
More...
|
|
void | clearButtons () |
| | Removes all buttons from the message box.
|
| virtual bool | processKeyEvent (const StringView &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override |
| | Processes a key event for keyboard interaction with the message box.
|
|
virtual void | resetKeyControllerToDefaults () override |
| | Resets the key controller bindings to their default values.
|
| void | setButtons (const Buffer< TranslatedString > &button_labels) |
| | Replaces the current buttons with custom labeled buttons.
|
| void | setButtons (QMessageBox::StandardButtons buttons) |
| | Replaces the current buttons with a set of standard Qt buttons.
|
| void | setCallback (std::function< void(QMessageBox::StandardButton, PopupInfo)> callback) |
| | Sets the callback invoked when a standard button is pressed.
|
| void | setGenericOptionCallback (std::function< void(GenericOption, PopupInfo)> callback) |
| | Sets the callback invoked when a generic option entry is submitted.
|
| void | setIcon (const StringView &image, fltp08 icon_size_mult=1.0) |
| | Sets the icon displayed in the message box.
|
| void | setLabelCallback (std::function< void(TranslatedString, PopupInfo)> callback) |
| | Sets the callback invoked when a custom labeled button is pressed.
|
| void | setText (const TranslatedString &text) |
| | Sets the main informational text displayed in the message box.
|
| QSize | sizeHint () const override |
| | Returns the recommended size for the message box.
|
| | BasicKeyController (const TranslatedString &key_controller_title) |
| | Constructs a BasicKeyController with the given title.
|
| virtual void | addKeyOption (const KeyOption &option) |
| | Adds a new key option mapping to this controller.
|
| const Buffer< KeyOption > & | currentKeyMaps () const |
| | Returns the current set of key option mappings.
|
| virtual void | getINI (INIFactory &factory) override |
| | Serializes or deserializes key controller settings to/from an INI file.
|
| const TranslatedString & | keyControllerTitle () const |
| | Returns the display title of this key controller.
|
| bool | processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override |
| | Processes a key event by matching it against registered key options.
|
| virtual void | setKeyOption (const KeyOption &option) |
| | Sets or updates an existing key option mapping.
|
|
| INIInterface () |
| | Constructs an INIInterface with no default INI file.
|
| | INIInterface (const File &default_ini) |
| | Constructs an INIInterface with the specified default INI file.
|
|
virtual | ~INIInterface () |
| | Virtual destructor for safe polymorphic cleanup.
|
| virtual void | finishReadingINI (INIFactory &) |
| | Called after reading an INI file.
|
| virtual void | prepareForINI (INIFactory &) |
| | Called before reading or writing an INI file.
|
| virtual bool | readINIOptions () |
| | Reads INI options from the default INI file.
|
| virtual bool | readINIOptions (File &ini_file) |
| | Reads INI options from the specified INI file.
|
| virtual bool | saveINIOptions (bool multithead=false) |
| | Saves INI options to the default INI file.
|
| virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
| | Saves INI options to the specified INI file.
|
| void | setDefaultINIFile (const File &file) |
| | Sets the default INI file path used for reading and writing options.
|
| virtual void | writeToLog (const StringView &title, LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log with a title.
|
| virtual void | writeToLog (LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log.
|
|
| static QCustomMessageBox * | CreateMessageBox (const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select=nullptr) |
| | Creates a message box with a generic option entry and displays it as a popup.
|
| static QCustomMessageBox * | CreateMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr) |
| | Creates a message box with custom labeled buttons and displays it as a popup.
|
| static QCustomMessageBox * | CreateMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr) |
| | Creates a message box with standard Qt buttons and displays it as a popup.
|
|
| | QCustomMessageBox (const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select) |
| | Constructs a message box with a generic option entry for user input.
|
| | QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr) |
| | Constructs a message box with custom labeled buttons.
|
| | QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr) |
| | Constructs a message box with standard Qt buttons.
|
|
void | addButtonsToLayout () |
| | Adds the current set of buttons to the message box layout.
|
| void | buttonPressed (const TranslatedString &button_label, PopupInfo) |
| | Handles the event when a custom labeled button is pressed.
|
| void | buttonPressed (QMessageBox::StandardButton button, PopupInfo) |
| | Handles the event when a standard button is pressed.
|
|
|
Buffer< Button * > | m_buttons |
| | The collection of buttons displayed in the message box.
|
|
std::function< void(QMessageBox::StandardButton, PopupInfo)> | m_callback |
| | Callback for standard button selection.
|
|
GenericOption | m_generic_option |
| | The generic option used for user input collection.
|
|
ImageView * | m_image_view |
| | The image view widget displaying the icon.
|
|
std::function< void(TranslatedString, PopupInfo)> | m_label_callback |
| | Callback for custom labeled button selection.
|
|
String | m_pixmap |
| | The icon resource name for the message box icon.
|
|
QLabel * | m_text |
| | The label displaying the main message text.
|
|
QHBoxLayout * | m_top_layout |
| | The top horizontal layout containing the icon and text.
|
|
std::function< void(GenericOption, PopupInfo)> | m_user_entry_callback |
| | Callback for generic option entry submission.
|
|
TranslatedString | m_key_controller_title |
| | The display title for this key controller.
|
|
Buffer< KeyOption > | m_key_options |
| | The collection of registered key option mappings.
|
|
bool | m_save_ini_on_change_key_option_change = false |
| | Whether to automatically save INI settings when a key option changes.
|
|
File | m_default_ini |
| | The default file path used for reading and writing INI options.
|
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 predefined user options (OK, Load, Cancel, etc) or a set of program defined responses that the user can choose from.
Definition at line 61 of file QCustomMessageBox.h.