src/BlocksGUI/BlocksGUI_BlockDlg.h

Go to the documentation of this file.
00001 //  GEOM GEOMGUI : GUI for Geometry component
00002 //
00003 //  Copyright (C) 2003  CEA
00004 //
00005 //  This library is free software; you can redistribute it and/or
00006 //  modify it under the terms of the GNU Lesser General Public
00007 //  License as published by the Free Software Foundation; either
00008 //  version 2.1 of the License.
00009 //
00010 //  This library is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 //  Lesser General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU Lesser General Public
00016 //  License along with this library; if not, write to the Free Software
00017 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00018 //
00019 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00020 //
00021 //
00022 //
00023 //  File   : BlocksGUI_BlockDlg.h
00024 //  Author : Julia DOROVSKIKH
00025 //  Module : GEOM
00026 
00027 #ifndef DIALOGBOX_BLOCK_H
00028 #define DIALOGBOX_BLOCK_H
00029 
00030 #include "GEOMBase_Skeleton.h"
00031 #include "DlgRef_2Sel_QTD.h"
00032 #include "DlgRef_6Sel_QTD.h"
00033 
00034 
00035 //=================================================================================
00036 // class    : BlocksGUI_BlockDlg
00037 // purpose  :
00038 //=================================================================================
00039 class BlocksGUI_BlockDlg : public GEOMBase_Skeleton
00040 {
00041   Q_OBJECT
00042 
00043 public:
00044   BlocksGUI_BlockDlg (GeometryGUI* theGeometryGUI, QWidget* parent,
00045                 bool modal = FALSE);
00046   ~BlocksGUI_BlockDlg();
00047 
00048 protected:
00049   // redefined from GEOMBase_Helper
00050   virtual GEOM::GEOM_IOperations_ptr createOperation();
00051   virtual bool                       isValid (QString&);
00052   virtual bool                       execute (ObjectList& objects);
00053 
00054 private:
00055   void Init();
00056   void enterEvent (QEvent* e);
00057 
00058 private:
00059   int                   myConstructorId;
00060 
00061   GEOM::GEOM_Object_var myFace1, myFace2;
00062   GEOM::GEOM_Object_var myFace3, myFace4, myFace5, myFace6;
00063 
00064   DlgRef_2Sel_QTD*      Group2F;
00065   DlgRef_6Sel_QTD*      Group6F;
00066 
00067 private slots:
00068   void ClickOnOk();
00069   bool ClickOnApply();
00070   void ActivateThisDialog();
00071   void ConstructorsClicked (int constructorId);
00072 
00073   void SelectionIntoArgument();
00074   void SetEditCurrentArgument();
00075 };
00076 
00077 #endif // DIALOGBOX_BLOCK_H