2004-01-07 20:46:21 +05:00
|
|
|
// GEOM GEOMGUI : GUI for Geometry component
|
|
|
|
//
|
|
|
|
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
|
|
//
|
|
|
|
// 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-01-07 20:46:21 +05:00
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : GEOMBase_Skeleton.h
|
|
|
|
// Author : Damine COQUERET
|
|
|
|
// Module : GEOM
|
|
|
|
|
|
|
|
#ifndef GEOMBASE_SKELETON_H
|
|
|
|
#define GEOMBASE_SKELETON_H
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
#include "GEOM_GEOMBase.hxx"
|
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
#include "DlgRef_Skeleton_QTD.h"
|
|
|
|
|
|
|
|
#include "GEOMBase.h"
|
2004-12-01 15:39:14 +05:00
|
|
|
#include "GEOMBase_Helper.h"
|
|
|
|
#include "GeometryGUI.h"
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
#include <qwidget.h>
|
|
|
|
#include <qgroupbox.h>
|
|
|
|
#include <qlineedit.h>
|
|
|
|
#include <qlayout.h>
|
2004-12-01 15:39:14 +05:00
|
|
|
#include <qpushbutton.h>
|
2004-01-07 20:46:21 +05:00
|
|
|
#include <qradiobutton.h>
|
|
|
|
#include <qbuttongroup.h>
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
class GEOMBASE_EXPORT GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
2004-01-07 20:46:21 +05:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2006-05-06 14:44:32 +06:00
|
|
|
GEOMBase_Skeleton(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
|
|
|
|
const char* name = 0, bool modal = FALSE, WFlags fl = 0);
|
2004-01-07 20:46:21 +05:00
|
|
|
~GEOMBase_Skeleton();
|
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
private:
|
2005-06-02 13:17:09 +06:00
|
|
|
void Init();
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent* e);
|
2008-03-07 12:45:34 +05:00
|
|
|
void keyPressEvent(QKeyEvent* e);
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
/*! initialize "Name" field with a string "thePrefix_X" (Vertex_3)
|
|
|
|
*/
|
|
|
|
void initName( const char* thePrefix = 0 );
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
/*! returns contents of "Name" field
|
|
|
|
*/
|
|
|
|
virtual const char* getNewObjectName() const;
|
|
|
|
|
|
|
|
/*! returns id of a selected "constructor" radio button or '-1' in case of error
|
|
|
|
*/
|
|
|
|
int getConstructorId() const;
|
|
|
|
|
|
|
|
void setHelpFileName( const QString& );
|
|
|
|
|
|
|
|
QLineEdit* myEditCurrentArgument; //!< Current LineEdit
|
|
|
|
GeometryGUI* myGeomGUI; //!< reference GEOM GUI
|
|
|
|
QString myHelpFileName;
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
protected slots:
|
2008-03-07 12:45:34 +05:00
|
|
|
virtual void ClickOnCancel();
|
2004-01-07 20:46:21 +05:00
|
|
|
void LineEditReturnPressed();
|
|
|
|
void DeactivateActiveDialog();
|
|
|
|
void ActivateThisDialog();
|
2006-05-06 14:44:32 +06:00
|
|
|
void ClickOnHelp();
|
2004-01-07 20:46:21 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GEOMBASE_SKELETON_H
|