Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support of nested option buttons
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_PropertyPanel.h
diff --git
a/src/XGUI/XGUI_PropertyPanel.h
b/src/XGUI/XGUI_PropertyPanel.h
index a1ee29db6e288ab15696f24960bc555b48631f13..7743a0ffcb1390de50993063a7c86dcdceb05bb3 100644
(file)
--- a/
src/XGUI/XGUI_PropertyPanel.h
+++ b/
src/XGUI/XGUI_PropertyPanel.h
@@
-20,6
+20,7
@@
class XGUI_ActionsMgr;
class QKeyEvent;
class QGridLayout;
class XGUI_ActionsMgr;
class QKeyEvent;
class QGridLayout;
+class QToolButton;
class ModuleBase_PageBase;
class ModuleBase_PageWidget;
class XGUI_OperationMgr;
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 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.
/**
* \ingroup GUI
* Realization of Property panel object.
@@
-105,6
+109,11
@@
Q_OBJECT
/// Returns operation manager
XGUI_OperationMgr* operationMgr() const { return myOperationMgr; }
/// 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
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);
/// \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:
void onActivateNextWidget(ModuleBase_ModelWidget* theWidget);
signals:
@@
-156,10
+168,9
@@
protected:
/// \param theEvent a close event
void closeEvent(QCloseEvent* theEvent);
/// \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;
ModuleBase_PageWidget* myPanelPage;
QList<ModuleBase_ModelWidget*> myWidgets;