X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_Dialog.h;h=6112c407a84d88ef6ff5612fc6a332208380f0e4;hb=5982960d3b8b17e5ab2f795e49f9daa00383e49c;hp=6b3074de5605d9fffa23d70461731ceafda3efab;hpb=78ec6f117638de12099c5675e9ace258c63de47a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Dialog.h b/src/ModuleBase/ModuleBase_Dialog.h index 6b3074de5..6112c407a 100644 --- a/src/ModuleBase/ModuleBase_Dialog.h +++ b/src/ModuleBase/ModuleBase_Dialog.h @@ -12,6 +12,8 @@ class ModuleBase_IWorkshop; class ModuleBase_ModelWidget; +class QDialogButtonBox; + /** * \ingroup GUI @@ -21,24 +23,44 @@ class ModuleBase_Dialog : public QDialog { 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); + /// Redefinition of virtual method virtual void accept(); protected: + /// Redefinition of virtual method virtual void showEvent(QShowEvent* theEvent); - private: + /// Initialising of the widget void initializeWidget(ModuleBase_ModelWidget* theWidget); + /// Id of the feature QString myId; + + /// XML description of the feature std::string myDescription; + + /// An instance of workshop object ModuleBase_IWorkshop* myWorkshop; + + /// The feature instance FeaturePtr myFeature; + + /// List of created widgets QList myWidgets; + + /// Pointer on active widget ModuleBase_ModelWidget* myActiveWidget; + + /// Buttons of the dialog + QDialogButtonBox* myButtonsBox; }; #endif