class XGUI_ActionsMgr;
class QKeyEvent;
class QGridLayout;
+class QToolButton;
class ModuleBase_PageBase;
class ModuleBase_PageWidget;
class XGUI_OperationMgr;
/// 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.
/// 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
/// \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:
/// \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<ModuleBase_ModelWidget*> myWidgets;