X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_PropertyPanel.h;h=7743a0ffcb1390de50993063a7c86dcdceb05bb3;hb=e3e242c1272da9d39804739ef74a830414ee0ca9;hp=a1ee29db6e288ab15696f24960bc555b48631f13;hpb=ab9d4995b9893f1aa2a48d6189df6477f8f5bb41;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_PropertyPanel.h b/src/XGUI/XGUI_PropertyPanel.h index a1ee29db6..7743a0ffc 100644 --- a/src/XGUI/XGUI_PropertyPanel.h +++ b/src/XGUI/XGUI_PropertyPanel.h @@ -20,6 +20,7 @@ class XGUI_ActionsMgr; class QKeyEvent; class QGridLayout; +class QToolButton; class ModuleBase_PageBase; class ModuleBase_PageWidget; class XGUI_OperationMgr; @@ -36,6 +37,9 @@ const static char* PROP_PANEL_CANCEL = "property_panel_cancel"; /// Internal name of Help button const static char* PROP_PANEL_HELP = "property_panel_help"; +/// Internal name of Preview button +const static char* PROP_PANEL_PREVIEW = "property_panel_preview"; + /** * \ingroup GUI * Realization of Property panel object. @@ -105,6 +109,11 @@ Q_OBJECT /// Returns operation manager XGUI_OperationMgr* operationMgr() const { return myOperationMgr; } + /// Find under the panel a child button with the parameter name + /// \param theInternalName a button object name + /// \return button instance or NULL + QToolButton* findButton(const char* theInternalName) const; + public slots: /// \brief Update all widgets in property panel with values from the given feature /// \param theFeature a Feature to update values in widgets @@ -128,6 +137,9 @@ public slots: /// \param theWidget a widget where focus in event happened void onFocusInWidget(ModuleBase_ModelWidget* theWidget); + + /// Activate next widget + /// \param theWidget the current widget void onActivateNextWidget(ModuleBase_ModelWidget* theWidget); signals: @@ -156,10 +168,9 @@ protected: /// \param theEvent a close event void closeEvent(QCloseEvent* theEvent); - /// A header widget - QWidget* myHeaderWidget; +private: + QWidget* myHeaderWidget; ///< A header widget - private: ModuleBase_PageWidget* myPanelPage; QList myWidgets;