2007-02-07 17:14:23 +05:00
|
|
|
// SMESH StdMeshersGUI
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//
|
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : StdMeshersGUI_LayerDistributionParamWdg.h
|
|
|
|
// Module : SMESH
|
|
|
|
// $Header$
|
|
|
|
|
|
|
|
#ifndef StdMeshersGUI_LayerDistributionParamWdg_Header
|
|
|
|
#define StdMeshersGUI_LayerDistributionParamWdg_Header
|
|
|
|
|
|
|
|
#include "SMESH_StdMeshersGUI.hxx"
|
|
|
|
|
|
|
|
#include <qhgroupbox.h>
|
|
|
|
#include <qstringlist.h>
|
|
|
|
|
|
|
|
#include <SALOMEconfig.h>
|
|
|
|
#include CORBA_SERVER_HEADER(SMESH_Hypothesis)
|
|
|
|
|
|
|
|
class SMESHGUI;
|
|
|
|
class QPushButton;
|
|
|
|
class QPopupMenu;
|
|
|
|
class QDialog;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Widget controlling hypothesis parameter that is another hypothesis
|
|
|
|
*/
|
|
|
|
class STDMESHERSGUI_EXPORT StdMeshersGUI_LayerDistributionParamWdg : public QHGroupBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr hyp,
|
2008-02-11 20:08:07 +05:00
|
|
|
const QString& theName,
|
|
|
|
QDialog* dlg);
|
2007-02-07 17:14:23 +05:00
|
|
|
~StdMeshersGUI_LayerDistributionParamWdg();
|
|
|
|
|
|
|
|
SMESH::SMESH_Hypothesis_var GetHypothesis() { return myHyp; }
|
|
|
|
|
|
|
|
QString GetValue() const { return myParamValue; }
|
|
|
|
|
|
|
|
bool IsOk() const { return !myHyp->_is_nil(); }
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void onCreate();
|
|
|
|
void onEdit();
|
|
|
|
void onHypTypePopup( int );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void init();
|
|
|
|
void set(SMESH::SMESH_Hypothesis_ptr hyp);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SMESH::SMESH_Hypothesis_var myHyp;
|
|
|
|
SMESHGUI* mySMESHGUI;
|
|
|
|
|
|
|
|
QPushButton* myCreateButton;
|
|
|
|
QPushButton* myEditButton;
|
|
|
|
QPopupMenu* myHypTypePopup;
|
|
|
|
QDialog* myDlg;
|
2008-02-11 20:08:07 +05:00
|
|
|
QString myName;
|
2007-02-07 17:14:23 +05:00
|
|
|
QString myParamValue;
|
|
|
|
|
|
|
|
QStringList myHypTypes;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|