// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// File : GEOMBase_Skeleton.h
// Author : Damine COQUERET
// Module : GEOM
-// $Header$
#ifndef GEOMBASE_SKELETON_H
#define GEOMBASE_SKELETON_H
+#include "GEOM_GEOMBase.hxx"
+
#include "DlgRef_Skeleton_QTD.h"
#include "GEOMBase.h"
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qbuttongroup.h>
-//#if defined WNT
-//#include <SALOME_WNT.hxx>
-//#else
-//#define SALOME_WNT_EXPORT
-//#endif
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define GEOMBASE_WNT_EXPORT __declspec( dllexport )
-#else
-#define GEOMBASE_WNT_EXPORT
-#endif
-
-class GEOMBASE_WNT_EXPORT GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
-{
+
+class GEOMBASE_EXPORT GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
+{
Q_OBJECT
public:
- GEOMBase_Skeleton(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ GEOMBase_Skeleton(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
+ const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GEOMBase_Skeleton();
-// int getConstructorId() const; // returns id of a selected "constructor" radio button or '-1' in case of error
-private :
+private:
void Init();
protected:
void closeEvent(QCloseEvent* e);
+ void keyPressEvent(QKeyEvent* e);
+
+ /*! initialize "Name" field with a string "thePrefix_X" (Vertex_3)
+ */
+ void initName( const char* thePrefix = 0 );
- void initName( const char* thePrefix = 0 ); // initialize "Name" field with a string "thePrefix_X" (Vertex_3)
- virtual const char* getNewObjectName() const; // returns contents of "Name" field
- int getConstructorId() const; // returns id of a selected "constructor" radio button or '-1' in case of error
+ /*! returns contents of "Name" field
+ */
+ virtual const char* getNewObjectName() const;
- QLineEdit* myEditCurrentArgument; /* Current LineEdit */
- GEOMBase* myGeomBase; // SAN -- TO BE REMOVED !!!
- GeometryGUI* myGeomGUI; /* reference GEOM GUI */
+ /*! returns id of a selected "constructor" radio button or '-1' in case of error
+ */
+ int getConstructorId() const;
+
+ void setHelpFileName( const QString& );
+
+ QLineEdit* myEditCurrentArgument; //!< Current LineEdit
+ GeometryGUI* myGeomGUI; //!< reference GEOM GUI
+ QString myHelpFileName;
protected slots:
- void ClickOnCancel();
+ virtual void ClickOnCancel();
void LineEditReturnPressed();
void DeactivateActiveDialog();
void ActivateThisDialog();
-
+ void ClickOnHelp();
};
#endif // GEOMBASE_SKELETON_H