2004-12-01 15:39:14 +05:00
|
|
|
// GEOM GEOMGUI : GUI for Geometry component
|
|
|
|
//
|
|
|
|
// Copyright (C) 2003 CEA
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//
|
2006-06-01 17:32:40 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2004-12-01 15:39:14 +05:00
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : BlocksGUI_ExplodeDlg.h
|
|
|
|
// Author : Julia DOROVSKIKH
|
|
|
|
// Module : GEOM
|
|
|
|
|
|
|
|
#ifndef DIALOGBOX_BLOCK_EXPLODE_H
|
|
|
|
#define DIALOGBOX_BLOCK_EXPLODE_H
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
#include "GEOM_BlocksGUI.hxx"
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#include "GEOMBase_Skeleton.h"
|
|
|
|
|
|
|
|
class DlgRef_SpinBox;
|
|
|
|
class QTextEdit;
|
|
|
|
class QCheckBox;
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// class : BlocksGUI_ExplodeDlg
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2008-03-07 12:45:34 +05:00
|
|
|
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2006-05-06 14:44:32 +06:00
|
|
|
BlocksGUI_ExplodeDlg (GeometryGUI*, QWidget* parent, bool modal = FALSE);
|
2004-12-01 15:39:14 +05:00
|
|
|
~BlocksGUI_ExplodeDlg();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// redefined from GEOMBase_Helper
|
|
|
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
|
|
|
virtual bool isValid (QString& msg);
|
|
|
|
virtual bool execute (ObjectList& objects);
|
|
|
|
virtual GEOM::GEOM_Object_ptr getFather(GEOM::GEOM_Object_ptr theObj);
|
|
|
|
|
2005-06-10 18:43:15 +06:00
|
|
|
virtual const char* getNewObjectName() const;
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
private:
|
|
|
|
void Init();
|
|
|
|
void enterEvent (QEvent* e);
|
|
|
|
|
|
|
|
void activateSelection();
|
|
|
|
|
|
|
|
void updateButtonState();
|
|
|
|
bool isAllSubShapes() const;
|
|
|
|
int shapeType() const;
|
|
|
|
|
|
|
|
void clearTemporary();
|
|
|
|
|
|
|
|
private:
|
|
|
|
int myConstructorId;
|
|
|
|
|
|
|
|
CORBA::Long myNbBlocks;
|
|
|
|
GEOM::GEOM_Object_var myObject;
|
|
|
|
|
|
|
|
ObjectList myTmpObjs;
|
|
|
|
|
|
|
|
QFrame* myGrp1;
|
|
|
|
|
|
|
|
QPushButton* mySelBtn;
|
|
|
|
QLineEdit* mySelName;
|
|
|
|
|
|
|
|
DlgRef_SpinBox* mySpinBoxMin;
|
|
|
|
DlgRef_SpinBox* mySpinBoxMax;
|
|
|
|
|
|
|
|
QTextEdit* myBlocksNb;
|
|
|
|
|
|
|
|
QCheckBox* myCheckBtn;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void ClickOnOk();
|
|
|
|
bool ClickOnApply();
|
|
|
|
void ActivateThisDialog();
|
|
|
|
void ConstructorsClicked (int constructorId);
|
|
|
|
|
|
|
|
void SelectionIntoArgument();
|
|
|
|
void SetEditCurrentArgument();
|
|
|
|
|
|
|
|
void SubShapeToggled();
|
|
|
|
|
|
|
|
void ValueChangedInSpinBox (double newValue);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIALOGBOX_BLOCK_EXPLODE_H
|