34#include <NDEVR/QTDesignObject.h>
35#include <NDEVR/ShowPropertiesSettings.h>
36#include <NDEVR/QCustomDockWidget.h>
37#include <NDEVR/Pointer.h>
38#include <NDEVR/UnitManager.h>
45 class ContainerWidgetBase;
48 class QCustomTableWidget;
49 class DesignObjectDialog;
50 class QCustomTabWidget;
59 : generic_creation_callbacks(10)
101 template<
class t_type>
104 for (
uint04 i = 0; i < m_editors.size(); i++)
106 if (
dynamic_cast<t_type*
>(m_editors[i]))
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Allows extended functionality to DesignObjectDialogs by adding callbacks that can be used primarily t...
Definition DesignObjectDialog.h:56
void setupDialog(const String &type_name, const DynamicPointer< QTDesignObject > &object, DesignObjectDialog *dialog)
Dictionary< String, Buffer< std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> > > creation_callbacks
Definition DesignObjectDialog.h:66
void addSetupCallback(const String &type, const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback)
static DesignObjectDialogFactory & DefaultInstance()
Buffer< std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> > generic_creation_callbacks
Definition DesignObjectDialog.h:67
void addSetupCallback(const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback)
DesignObjectDialogFactory()
Definition DesignObjectDialog.h:58
A popup dialog for showing options or information to the user for a particular DesignObject....
Definition DesignObjectDialog.h:75
TranslatedString getTitle() const
DynamicPointer< QTDesignObject > m_design_object
Definition DesignObjectDialog.h:131
void requestDeleteSignal()
const UnitManager & dialogUnits() const
void addTabDialog(QWidget *editor, uint04 index=Constant< uint04 >::Invalid)
Buffer< Editor * > m_editors
Definition DesignObjectDialog.h:128
void addEditor(Editor *editor, uint04 index=Constant< uint04 >::Invalid)
const QTDesignObject & designObject() const
void onDesignObjectUpdate()
void setType(const String &type)
virtual bool fullscreenTouch() const
ShowPropertiesSettings m_settings
Definition DesignObjectDialog.h:133
void requestPrintSignal()
Buffer< QWidget * > m_tabs
Definition DesignObjectDialog.h:129
bool showSubDialog()
Definition DesignObjectDialog.h:102
TranslatedString m_custom_title
Definition DesignObjectDialog.h:127
void setCustomTitle(const TranslatedString &title)
DesignObjectDialog(const DynamicPointer< QTDesignObject > &object, const ShowPropertiesSettings &style)
UnitManager m_dialog_units
Definition DesignObjectDialog.h:140
virtual void enablePrint(bool enable_print)
void setHorizontal(bool horizontal)
void requestConfirmSignal()
SectionWidget * m_target_widget
Definition DesignObjectDialog.h:130
virtual bool allowDocking() const
void showCurrentIndex(uint04 index)
const DynamicPointer< QTDesignObject > & designObjectPtr()
Definition DesignObjectDialog.h:90
virtual Buffer< QWidget * > printableWidgets()
void requestCancelSignal()
TranslatedString title() const
QCustomTabWidget * m_tab_menu
Definition DesignObjectDialog.h:132
void dialogFinishedSignal()
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A base class for displaying options for editing a single DesignObject, typically a Model.
Definition Editor.h:48
A pointer to a DesignObject within a QTModelManager that recieves and emits update signals based on t...
Definition QTDesignObject.h:88
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
Handles a grouping of units that can describe any number of data categories.
Definition UnitManager.h:143
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
Stores settings for setting up and displaying a DesignObjectDialog such as whether the dialog is part...
Definition ShowPropertySettings.h:25