API Documentation
|
#include <QCustomMessageBox.h>
Public Member Functions | |
void | clearButtons () |
void | setIcon (const String &image, fltp08 icon_size_mult=1.0) |
void | setText (const TranslatedString &text) |
void | setButtons (QMessageBox::StandardButtons buttons) |
void | setButtons (const Buffer< TranslatedString > &button_labels) |
void | setCallback (std::function< void(QMessageBox::StandardButton, PopupInfo)> callback) |
void | setLabelCallback (std::function< void(TranslatedString, PopupInfo)> callback) |
void | setGenericOptionCallback (std::function< void(GenericOption, PopupInfo)> callback) |
QSize | sizeHint () const override |
virtual bool | processKeyEvent (const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override |
virtual void | resetKeyControllerToDefaults () override |
Public Member Functions inherited from BasicKeyController | |
NDEVR_BASE_API | BasicKeyController (const TranslatedString &key_controller_title) |
NDEVR_BASE_API bool | processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override |
NDEVR_BASE_API const TranslatedString & | keyControllerTitle () const |
NDEVR_BASE_API const Buffer< KeyOption > & | currentKeyMaps () const |
virtual NDEVR_BASE_API void | setKeyOption (const KeyOption &option) |
virtual NDEVR_BASE_API void | getINI (INIFactory &factory) override |
virtual NDEVR_BASE_API void | addKeyOption (const KeyOption &option) |
Public Member Functions inherited from KeyControllerBase | |
Public Member Functions inherited from INIInterface | |
INIInterface (const File &default_ini) | |
virtual | ~INIInterface () |
virtual void | writeToLog (ProgressInfo *log, uint01 log_level=2U) |
virtual void | writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U) |
void | setDefaultINIFile (const File &file) |
virtual bool | readINIOptions () |
virtual bool | readINIOptions (File &ini_file) |
virtual void | finishReadingINI (INIFactory &) |
virtual void | prepareForINI (INIFactory &) |
virtual bool | saveINIOptions (bool multithead=false) |
virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
Static Public Member Functions | |
static QCustomMessageBox * | CreateMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, 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 GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select=nullptr) |
Protected Member Functions | |
QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr) | |
QCustomMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr) | |
QCustomMessageBox (const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select) | |
virtual | ~QCustomMessageBox () |
void | buttonPressed (QMessageBox::StandardButton button, PopupInfo) |
void | buttonPressed (const TranslatedString &button_label, PopupInfo) |
void | addButtonsToLayout () |
Protected Attributes | |
QLabel * | m_text |
Buffer< Button * > | m_buttons |
String | m_pixmap |
QHBoxLayout * | m_top_layout |
ImageView * | m_image_view |
std::function< void(QMessageBox::StandardButton, PopupInfo)> | m_callback |
std::function< void(TranslatedString, PopupInfo)> | m_label_callback |
std::function< void(GenericOption, PopupInfo)> | m_user_entry_callback |
GenericOption | m_generic_option |
Protected Attributes inherited from BasicKeyController | |
bool | m_save_ini_on_change_key_option_change = false |
Buffer< KeyOption > | m_key_options |
TranslatedString | m_key_controller_title |
Protected Attributes inherited from INIInterface | |
File | m_default_ini |
Static Protected Attributes | |
static Dictionary< UUID, QPointer< QCustomMessageBox > > | s_message_boxes |
|
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 |