25 I_ASSIGN(m_initialDialogSizeAttrPtr,
"DialogSize",
"Initial size of the dialog. The value is proportion of dialog size to desktop size",
false, 0.5);
26 I_ASSIGN(m_initialDialogSizeXAttrPtr,
"DialogSizeX",
"Initial size of the dialog. The value is proportion of dialog size to desktop width",
false, 0.5);
27 I_ASSIGN(m_initialDialogSizeYAttrPtr,
"DialogSizeY",
"Initial size of the dialog. The value is proportion of dialog size to desktop height",
false, 0.5);
31 I_ATTR(
double, m_initialDialogSizeAttrPtr);
32 I_ATTR(
double, m_initialDialogSizeXAttrPtr);
33 I_ATTR(
double, m_initialDialogSizeYAttrPtr);
44 ibase::TLocalizableWrap<CDialogGuiCompAttr>>,
54 I_REGISTER_SUBELEMENT(Command);
56 I_REGISTER_SUBELEMENT_INTERFACE(Command,
imod::IModel, GetCommandsProvider);
58 I_ASSIGN(m_guiCompPtr,
"Gui",
"UI to show in the dialog",
true,
"Gui");
59 I_ASSIGN(m_dialogTitleAttrPtr,
"DialogTitle",
"Title for the dialog",
false,
"DialogTitle");
60 I_ASSIGN(m_dialogIconPathAttrPtr,
"DialogIconPath",
"Icon path for the dialog",
false,
"IconPath");
61 I_ASSIGN(m_menuNameAttrPtr,
"MenuName",
"Name of the menu for the action group",
true,
"MenuName");
62 I_ASSIGN(m_menuDescriptionAttrPtr,
"MenuDescription",
"Description for the action group",
true,
"");
63 I_ASSIGN(m_rootMenuNameAttrPtr,
"RootMenu",
"Name of the root command",
true,
"");
64 I_ASSIGN(m_isModalAttrPtr,
"IsModal",
"Modality of the dialog",
true,
true);
65 I_ASSIGN(m_dialogButtonsAttrPtr,
"DialogButtons",
"Dialog buttons. See QDialogButtonBox::StandardButton for details",
true, QDialogButtonBox::Ok);
66 I_ASSIGN(m_defaultButtonAttrPtr,
"DefaultDialogButton",
"Default dialog button.See Qt::StandardButton for details",
true, 0);
67 I_ASSIGN(m_defaultButtonPropertyAttrPtr,
"DefaultDialogButtonProperty",
"Key of the boolean property that will be set to TRUE in context of the default button. Can be used for defining custom style of the primary action of the dialog",
true,
"DefaultButton");
68 I_ASSIGN(m_windowFlagsAttrPtr,
"WindowFlags",
"Window flags is used to specify various window-system properties for the widget. See Qt::WindowFlags for details",
true, 134295555);
69 I_ASSIGN(m_commandIdAttrPtr,
"CommandId",
"Dialog activation command ID",
true,
"");
93 virtual bool eventFilter(QObject* sourcePtr, QEvent* eventPtr)
override;
114 template <
class InterfaceType>
117 return &parent.m_commandsProvider;
123 I_ATTR(QString, m_dialogIconPathAttrPtr);
127 I_ATTR(
bool, m_isModalAttrPtr);
128 I_ATTR(
int, m_dialogButtonsAttrPtr);
129 I_ATTR(
int, m_defaultButtonAttrPtr);
130 I_ATTR(QByteArray, m_defaultButtonPropertyAttrPtr);
131 I_ATTR(
int, m_windowFlagsAttrPtr);
132 I_ATTR(QByteArray, m_commandIdAttrPtr);
140 QDialog* m_dialogPtr;