geom/src/BlocksGUI/BlocksGUI_ExplodeDlg.h

92 lines
3.1 KiB
C
Raw Normal View History

2012-08-09 13:58:02 +06:00
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2004-12-01 15:39:14 +05:00
//
2012-08-09 13:58:02 +06:00
2009-02-13 17:16:39 +05:00
// GEOM GEOMGUI : GUI for Geometry component
// File : BlocksGUI_ExplodeDlg.h
// Author : Julia DOROVSKIKH, Open CASCADE S.A.S. (julia.dorovskikh@opencascade.com)
2004-12-01 15:39:14 +05:00
//
2009-02-13 17:16:39 +05:00
#ifndef BLOCKSGUI_EXPLODEDLG_H
#define BLOCKSGUI_EXPLODEDLG_H
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
#include <GEOMBase_Skeleton.h>
2009-02-13 17:16:39 +05:00
class DlgRef_1Sel2Spin1View1Check;
2004-12-01 15:39:14 +05:00
//=================================================================================
// class : BlocksGUI_ExplodeDlg
// purpose :
//=================================================================================
2009-02-13 17:16:39 +05:00
class BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
2004-12-01 15:39:14 +05:00
{
Q_OBJECT
public:
2009-02-13 17:16:39 +05:00
BlocksGUI_ExplodeDlg( GeometryGUI*, QWidget* );
2004-12-01 15:39:14 +05:00
~BlocksGUI_ExplodeDlg();
protected:
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
2009-02-13 17:16:39 +05:00
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
2004-12-01 15:39:14 +05:00
2013-02-12 17:35:16 +06:00
virtual QString getNewObjectName (int CurrObj = -1) const;
2005-06-10 18:43:15 +06:00
2004-12-01 15:39:14 +05:00
private:
2009-02-13 17:16:39 +05:00
void Init();
void enterEvent( QEvent* );
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void activateSelection();
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void updateButtonState();
bool isAllSubShapes() const;
int shapeType() const;
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void clearTemporary();
2004-12-01 15:39:14 +05:00
private:
2009-02-13 17:16:39 +05:00
int myConstructorId;
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
CORBA::Long myNbBlocks;
GEOM::GEOM_Object_var myObject;
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
ObjectList myTmpObjs;
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
DlgRef_1Sel2Spin1View1Check* myGrp1;
2004-12-01 15:39:14 +05:00
private slots:
2009-02-13 17:16:39 +05:00
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
void ConstructorsClicked( int );
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void SelectionIntoArgument();
void SetEditCurrentArgument();
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void SubShapeToggled();
2004-12-01 15:39:14 +05:00
2009-02-13 17:16:39 +05:00
void ValueChangedInSpinBox();
2004-12-01 15:39:14 +05:00
};
2009-02-13 17:16:39 +05:00
#endif // BLOCKSGUI_EXPLODEDLG_H