geom/src/RepairGUI/RepairGUI_GlueDlg.h

108 lines
3.0 KiB
C
Raw Normal View History

2003-07-09 20:33:44 +06:00
// GEOM GEOMGUI : GUI for Geometry component
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2004-12-01 15:39:14 +05:00
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2003-07-09 20:33:44 +06:00
//
2004-12-01 15:39:14 +05: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.
2003-07-09 20:33:44 +06:00
//
2004-12-01 15:39:14 +05: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.
2003-07-09 20:33:44 +06:00
//
2004-12-01 15:39:14 +05: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
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2004-12-01 15:39:14 +05:00
//
//
//
// File : RepairGUI_GlueDlg.h
2003-07-09 20:33:44 +06:00
// Author : Lucien PIGNOLONI
// Module : GEOM
2003-05-12 21:24:23 +06:00
2004-12-01 15:39:14 +05:00
#ifndef DIALOGBOX_Glue_H
#define DIALOGBOX_Glue_H
2003-05-12 21:24:23 +06:00
2004-01-07 20:46:21 +05:00
#include "GEOMBase_Skeleton.h"
2003-05-12 21:24:23 +06:00
class QtxDblSpinBox;
2004-12-01 15:39:14 +05:00
class DlgRef_1Sel_Ext;
class QCheckBox;
2003-05-12 21:24:23 +06:00
//=================================================================================
2004-12-01 15:39:14 +05:00
// class : RepairGUI_GlueDlg
2003-05-12 21:24:23 +06:00
// purpose :
//=================================================================================
2004-12-01 15:39:14 +05:00
class RepairGUI_GlueDlg : public GEOMBase_Skeleton
{
2003-05-12 21:24:23 +06:00
Q_OBJECT
public:
RepairGUI_GlueDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
2004-12-01 15:39:14 +05:00
~RepairGUI_GlueDlg();
protected:
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& objects );
2003-05-12 21:24:23 +06:00
private:
2004-01-07 20:46:21 +05:00
void Init();
void enterEvent(QEvent* e);
2004-12-01 15:39:14 +05:00
void closeEvent(QCloseEvent* e);
void initSelection();
void clearTemporary();
2003-05-12 21:24:23 +06:00
bool onAcceptLocal();
2005-01-20 11:24:17 +05:00
void clearShapeBufferLocal( GEOM::GEOM_Object_ptr );
// Reimplementation of onAccept for local case of this class.
void activateSelection();
void updateButtonState();
void selectTmpInViewer();
private:
2004-12-01 15:39:14 +05:00
GEOM::GEOM_Object_var myObject;
ObjectList myTmpObjs;
2004-12-01 15:39:14 +05:00
DlgRef_1Sel_Ext* GroupPoints;
DlgRef_1Sel_Ext* GroupPoints2;
QtxDblSpinBox* myTolEdt;
QtxDblSpinBox* myTolEdt2;
QPushButton* myDetectBtn;
QCheckBox* mySubShapesChk;
2004-01-07 20:46:21 +05:00
int myCurrConstrId;
protected slots:
virtual void ClickOnCancel();
2004-01-07 20:46:21 +05:00
private slots:
void ClickOnOk();
2004-12-01 15:39:14 +05:00
bool ClickOnApply();
2004-01-07 20:46:21 +05:00
void ActivateThisDialog();
2003-05-12 21:24:23 +06:00
2004-12-01 15:39:14 +05:00
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void ConstructorsClicked(int);
//void ValueChangedInSpinBox();
void onDetect();
void onTolerChanged( double );
void onSubShapesChk();
2003-05-12 21:24:23 +06:00
};
2004-12-01 15:39:14 +05:00
#endif // DIALOGBOX_Glue_H