src/GEOMBase/GEOMBase_Skeleton.h

Go to the documentation of this file.
00001 //  GEOM GEOMGUI : GUI for Geometry component
00002 //
00003 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00005 // 
00006 //  This library is free software; you can redistribute it and/or 
00007 //  modify it under the terms of the GNU Lesser General Public 
00008 //  License as published by the Free Software Foundation; either 
00009 //  version 2.1 of the License. 
00010 // 
00011 //  This library is distributed in the hope that it will be useful, 
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00014 //  Lesser General Public License for more details. 
00015 // 
00016 //  You should have received a copy of the GNU Lesser General Public 
00017 //  License along with this library; if not, write to the Free Software 
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00019 // 
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //
00023 //
00024 //  File   : GEOMBase_Skeleton.h
00025 //  Author : Damine COQUERET
00026 //  Module : GEOM
00027 
00028 #ifndef GEOMBASE_SKELETON_H
00029 #define GEOMBASE_SKELETON_H
00030 
00031 #include "DlgRef_Skeleton_QTD.h"
00032 
00033 #include "GEOMBase.h"
00034 #include "GEOMBase_Helper.h"
00035 #include "GeometryGUI.h"
00036 
00037 #include <qwidget.h>
00038 #include <qgroupbox.h>
00039 #include <qlineedit.h>
00040 #include <qlayout.h>
00041 #include <qpushbutton.h>
00042 #include <qradiobutton.h>
00043 #include <qbuttongroup.h>
00044 //#if defined WNT
00045 //#include <SALOME_WNT.hxx>
00046 //#else
00047 //#define SALOME_WNT_EXPORT
00048 //#endif
00049 #if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
00050 #define GEOMBASE_WNT_EXPORT __declspec( dllexport )
00051 #else
00052 #define GEOMBASE_WNT_EXPORT
00053 #endif
00054 
00055 class GEOMBASE_WNT_EXPORT GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
00056 {
00057     Q_OBJECT
00058 
00059 public:
00060     GEOMBase_Skeleton(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
00061                 const char* name = 0, bool modal = FALSE, WFlags fl = 0);
00062     ~GEOMBase_Skeleton();
00063 
00064 private:
00065     void Init();
00066 
00067 protected:
00068     void closeEvent(QCloseEvent* e);
00069     void keyPressEvent(QKeyEvent* e);
00070 
00073     void initName( const char* thePrefix = 0 );
00074 
00077     virtual const char* getNewObjectName() const;
00078 
00081     int getConstructorId() const;
00082 
00083     void setHelpFileName( const QString& );
00084 
00085     QLineEdit* myEditCurrentArgument; 
00086     GeometryGUI* myGeomGUI;           
00087     QString myHelpFileName;
00088 
00089 protected slots:
00090     void ClickOnCancel();
00091     void LineEditReturnPressed();
00092     void DeactivateActiveDialog();
00093     void ActivateThisDialog();
00094     void ClickOnHelp();
00095 };
00096 
00097 #endif // GEOMBASE_SKELETON_H