geom/src/MeasureGUI/MeasureGUI_Skeleton.h

90 lines
3.2 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-01-07 20:46:21 +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-01-07 20:46:21 +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-01-07 20:46:21 +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.
2009-02-13 17:16:39 +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
2009-02-13 17:16:39 +05:00
//
2012-08-09 13:58:02 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2009-02-13 17:16:39 +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 : MeasureGUI_Skeleton.h
// Author : Damine COQUERET, Open CASCADE S.A.S.
2004-01-07 20:46:21 +05:00
//
#ifndef MEASUREGUI_SKELETON_H
#define MEASUREGUI_SKELETON_H
2009-02-13 17:16:39 +05:00
#include <QDialog>
#include <GEOMBase_Helper.h>
2004-01-07 20:46:21 +05:00
2004-12-01 15:39:14 +05:00
class GeometryGUI;
2009-02-13 17:16:39 +05:00
class MeasureGUI_SkeletonBox;
2004-12-01 15:39:14 +05:00
class QLineEdit;
class QPushButton;
class GEOM_Displayer;
2004-01-07 20:46:21 +05:00
2009-02-13 17:16:39 +05:00
class MeasureGUI_Skeleton : public QDialog, public GEOMBase_Helper
2004-01-07 20:46:21 +05:00
{
2009-02-13 17:16:39 +05:00
Q_OBJECT
2004-01-07 20:46:21 +05:00
public:
2009-02-13 17:16:39 +05:00
MeasureGUI_Skeleton( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
~MeasureGUI_Skeleton();
2004-12-01 15:39:14 +05:00
protected slots:
2009-02-13 17:16:39 +05:00
virtual void ClickOnCancel();
virtual void ClickOnHelp();
virtual void DeactivateActiveDialog();
virtual void ActivateThisDialog();
virtual void SelectionIntoArgument();
virtual void LineEditReturnPressed();
virtual void SetEditCurrentArgument();
2004-01-07 20:46:21 +05:00
protected:
2009-02-13 17:16:39 +05:00
void Init();
void enterEvent( QEvent* );
void closeEvent( QCloseEvent* );
void keyPressEvent( QKeyEvent* );
void redisplayPreview();
GEOM_Displayer* getDisplayer();
virtual bool isValid( QString& );
virtual SALOME_Prs* buildPrs();
virtual void processObject();
virtual void activateSelection();
virtual GEOM::GEOM_IOperations_ptr createOperation();
MeasureGUI_SkeletonBox* mainFrame() const;
QWidget* centralWidget() const;
QPushButton* buttonClose() const;
QPushButton* buttonHelp() const;
2004-12-01 15:39:14 +05:00
protected:
2009-02-13 17:16:39 +05:00
QPushButton* mySelBtn;
QLineEdit* mySelEdit;
GEOM::GEOM_Object_var myObj;
GeometryGUI* myGeomGUI;
GEOM_Displayer* myDisplayer;
QString myHelpFileName;
MeasureGUI_SkeletonBox* myMainFrame;
2004-01-07 20:46:21 +05:00
};
2009-02-13 17:16:39 +05:00
2004-01-07 20:46:21 +05:00
#endif // MEASUREGUI_SKELETON_H