34#include <NDEVR/KeyController.h>
35#include <NDEVR/Buffer.h>
36#include <NDEVR/String.h>
37#include <NDEVR/Dictionary.h>
38#include <NDEVR/UUID.h>
39#include <NDEVR/GenericOption.h>
74 void setCallback(std::function<
void(QMessageBox::StandardButton,
PopupInfo)> callback) { m_callback = callback; };
The core class for assigning actions to key-presses and registering them as a program-wide service.
Definition KeyController.h:68
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
A core class where all Design Objects including models, materials, and geometries are stored.
Definition DesignObjectLookup.h:65
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:59
A widget that shows a raster image or icon.
Definition ImageView.h:43
A class which describes a user key press.
Definition Event.h:47
A message box displays a primary text to alert the user to a situation, an informative text to furthe...
Definition QCustomMessageBox.h:61
ImageView * m_image_view
Definition QCustomMessageBox.h:92
GenericOption m_generic_option
Definition QCustomMessageBox.h:97
void setButtons(const Buffer< TranslatedString > &button_labels)
static QCustomMessageBox * CreateMessageBox(const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString > &button_labels, std::function< void(TranslatedString, PopupInfo)> on_select=nullptr)
String m_pixmap
Definition QCustomMessageBox.h:90
QCustomMessageBox(const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select)
QSize sizeHint() const override
void buttonPressed(QMessageBox::StandardButton button, PopupInfo)
void addButtonsToLayout()
QCustomMessageBox(const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons, std::function< void(QMessageBox::StandardButton, PopupInfo)> on_select=nullptr)
static Dictionary< UUID, QPointer< QCustomMessageBox > > s_message_boxes
Definition QCustomMessageBox.h:93
void setButtons(QMessageBox::StandardButtons buttons)
void setText(const TranslatedString &text)
std::function< void(QMessageBox::StandardButton, PopupInfo)> m_callback
Definition QCustomMessageBox.h:94
QLabel * m_text
Definition QCustomMessageBox.h:88
static QCustomMessageBox * CreateMessageBox(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)
QHBoxLayout * m_top_layout
Definition QCustomMessageBox.h:91
void buttonPressed(const TranslatedString &button_label, PopupInfo)
virtual void resetKeyControllerToDefaults() override
static QCustomMessageBox * CreateMessageBox(const GenericOption &entry_type, std::function< void(GenericOption, PopupInfo)> on_select=nullptr)
std::function< void(GenericOption, PopupInfo)> m_user_entry_callback
Definition QCustomMessageBox.h:96
void setIcon(const String &image, fltp08 icon_size_mult=1.0)
virtual ~QCustomMessageBox()
void setLabelCallback(std::function< void(TranslatedString, PopupInfo)> callback)
Definition QCustomMessageBox.h:75
void setCallback(std::function< void(QMessageBox::StandardButton, PopupInfo)> callback)
Definition QCustomMessageBox.h:74
Buffer< Button * > m_buttons
Definition QCustomMessageBox.h:89
std::function< void(TranslatedString, PopupInfo)> m_label_callback
Definition QCustomMessageBox.h:95
void setGenericOptionCallback(std::function< void(GenericOption, PopupInfo)> callback)
Definition QCustomMessageBox.h:76
virtual bool processKeyEvent(const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override
The core String class for the software.
Definition String.h:47
Any text displayed to the user should be defined as a TranslatedString which allows the.
Definition TranslatedString.h:13
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:146
Stores a generic option of any type as well as some information about how the user.
Definition GenericOptions.h:57