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
#1658 New widget supporting nested option buttons
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_Dialog.h
diff --git
a/src/ModuleBase/ModuleBase_Dialog.h
b/src/ModuleBase/ModuleBase_Dialog.h
index 6b3074de5605d9fffa23d70461731ceafda3efab..6112c407a84d88ef6ff5612fc6a332208380f0e4 100644
(file)
--- a/
src/ModuleBase/ModuleBase_Dialog.h
+++ b/
src/ModuleBase/ModuleBase_Dialog.h
@@
-12,6
+12,8
@@
class ModuleBase_IWorkshop;
class ModuleBase_ModelWidget;
class ModuleBase_IWorkshop;
class ModuleBase_ModelWidget;
+class QDialogButtonBox;
+
/**
* \ingroup GUI
/**
* \ingroup GUI
@@
-21,24
+23,44
@@
class ModuleBase_Dialog : public QDialog
{
Q_OBJECT
public:
{
Q_OBJECT
public:
+ /// Constructor
+ /// \param theParent a workshop object instance
+ /// \param theId an Id of a feature
+ /// \param theDescription an XML description of the feature
ModuleBase_Dialog(ModuleBase_IWorkshop* theParent, const QString& theId,
const std::string& theDescription);
ModuleBase_Dialog(ModuleBase_IWorkshop* theParent, const QString& theId,
const std::string& theDescription);
+ /// Redefinition of virtual method
virtual void accept();
protected:
virtual void accept();
protected:
+ /// Redefinition of virtual method
virtual void showEvent(QShowEvent* theEvent);
virtual void showEvent(QShowEvent* theEvent);
-
private:
private:
+ /// Initialising of the widget
void initializeWidget(ModuleBase_ModelWidget* theWidget);
void initializeWidget(ModuleBase_ModelWidget* theWidget);
+ /// Id of the feature
QString myId;
QString myId;
+
+ /// XML description of the feature
std::string myDescription;
std::string myDescription;
+
+ /// An instance of workshop object
ModuleBase_IWorkshop* myWorkshop;
ModuleBase_IWorkshop* myWorkshop;
+
+ /// The feature instance
FeaturePtr myFeature;
FeaturePtr myFeature;
+
+ /// List of created widgets
QList<ModuleBase_ModelWidget*> myWidgets;
QList<ModuleBase_ModelWidget*> myWidgets;
+
+ /// Pointer on active widget
ModuleBase_ModelWidget* myActiveWidget;
ModuleBase_ModelWidget* myActiveWidget;
+
+ /// Buttons of the dialog
+ QDialogButtonBox* myButtonsBox;
};
#endif
};
#endif