20 #ifndef XGUI_PROPERTYPANEL_H_
21 #define XGUI_PROPERTYPANEL_H_
25 #include <ModuleBase_ModelWidget.h>
26 #include <ModuleBase_IPropertyPanel.h>
39 MAYBE_UNUSED
const static char* PROP_PANEL =
"property_panel_dock";
42 MAYBE_UNUSED
const static char* PROP_PANEL_OK =
"property_panel_ok";
45 MAYBE_UNUSED
const static char* PROP_PANEL_OK_PLUS =
"property_panel_ok_plus";
48 MAYBE_UNUSED
const static char* PROP_PANEL_CANCEL =
"property_panel_cancel";
51 MAYBE_UNUSED
const static char* PROP_PANEL_HELP =
"property_panel_help";
54 MAYBE_UNUSED
const static char* PROP_PANEL_PREVIEW =
"property_panel_preview";
81 void setModelWidgets(
const QList<ModuleBase_ModelWidget*>& theWidgets);
84 virtual const QList<ModuleBase_ModelWidget*>&
modelWidgets()
const;
131 QToolButton* findButton(
const char* theInternalName)
const;
136 bool setFocusNextPrevChild(
bool theIsNext);
147 void updateApplyPlusButton(FeaturePtr theFeature);
152 void updateContentWidget(FeaturePtr theFeature);
157 void createContentPanel(FeaturePtr theFeature);
194 virtual bool focusNextPrevChild(
bool theIsNext);
199 const bool isCheckVisibility);
204 void closeEvent(QCloseEvent* theEvent);
210 QList<ModuleBase_ModelWidget*> myWidgets;
A class for Property panel object definition.
Definition: ModuleBase_IPropertyPanel.h:35
virtual ModuleBase_ModelWidget * preselectionWidget() const =0
Returns widget processed by preselection.
virtual void setPreselectionWidget(ModuleBase_ModelWidget *theWidget)=0
Sets widget processed by preselection.
virtual ModuleBase_ModelWidget * activeWidget(const bool isUseCustomWidget=false) const =0
Returns currently active widget.
virtual void activateWidget(ModuleBase_ModelWidget *theWidget, const bool theEmitSignal=true)=0
Makes the given widget active, highlights it and removes highlighting from the previous active widget...
virtual void cleanContent()=0
Removes all widgets in the widget area of the property panel.
virtual void onAcceptData()=0
The method is called on accepting of operation.
virtual void activateNextWidget()=0
Activate the next from current widget in the property panel.
virtual void setEditingMode(bool isEditing)
Editing mode depends on mode of current operation.
Definition: ModuleBase_IPropertyPanel.h:63
virtual const QList< ModuleBase_ModelWidget * > & modelWidgets() const =0
Returns all property panel's widget created by WidgetFactory.
virtual void setCancelEnabled(bool theEnabled)=0
Set Enable/Disable state of Cancel button.
virtual bool isCancelEnabled() const =0
virtual void setFocusOnOkButton()=0
Set focus on the Ok button.
Definition: ModuleBase_PageBase.h:35
Definition: ModuleBase_PageWidget.h:37
class XGUI_ActionsMgrA class for management of actions (features) activation/deactivation
Definition: XGUI_ActionsMgr.h:45
Operation manager.
Definition: XGUI_OperationMgr.h:49
Realization of Property panel object.
Definition: XGUI_PropertyPanel.h:61
void propertyPanelDeactivated()
Emits on deactivating property panel (e.g. by clearContent)
virtual QWidget * headerWidget() const
Returns header widget.
Definition: XGUI_PropertyPanel.h:73
void propertyPanelActivated()
Emits on widget activating.
void enterClicked(QObject *theObject)
The signal is emitted if the enter is clicked in the control of the widget.
XGUI_OperationMgr * operationMgr() const
Returns operation manager.
Definition: XGUI_PropertyPanel.h:126