2013-03-29 14:57:56 +06:00
|
|
|
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
|
2008-03-07 12:47:05 +05:00
|
|
|
//
|
2011-06-06 14:15:39 +06:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2008-03-07 12:47:05 +05:00
|
|
|
//
|
2011-06-06 14:15:39 +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.
|
2008-03-07 12:47:05 +05:00
|
|
|
//
|
2011-06-06 14:15:39 +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.
|
2008-03-07 12:47:05 +05:00
|
|
|
//
|
2011-06-06 14:15:39 +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-17 10:27:49 +05:00
|
|
|
//
|
2011-06-06 14:15:39 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-17 10:27:49 +05:00
|
|
|
//
|
2010-05-14 21:32:37 +06:00
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
// File : StdMeshersGUI_LayerDistributionParamWdg.h
|
|
|
|
// Author : Open CASCADE S.A.S.
|
|
|
|
//
|
|
|
|
#ifndef STDMESHERSGUI_LAYERDISTRIBUTIONPARAMWGD_H
|
|
|
|
#define STDMESHERSGUI_LAYERDISTRIBUTIONPARAMWGD_H
|
2008-03-07 12:47:05 +05:00
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
// SMESH includes
|
2008-03-07 12:47:05 +05:00
|
|
|
#include "SMESH_StdMeshersGUI.hxx"
|
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
// Qt includes
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QStringList>
|
2008-03-07 12:47:05 +05:00
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
// IDL includes
|
2008-03-07 12:47:05 +05:00
|
|
|
#include <SALOMEconfig.h>
|
|
|
|
#include CORBA_SERVER_HEADER(SMESH_Hypothesis)
|
|
|
|
|
|
|
|
class SMESHGUI;
|
|
|
|
class QPushButton;
|
2009-02-17 10:27:49 +05:00
|
|
|
class QMenu;
|
|
|
|
class QAction;
|
2008-03-07 12:47:05 +05:00
|
|
|
class QDialog;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Widget controlling hypothesis parameter that is another hypothesis
|
|
|
|
*/
|
2009-02-17 10:27:49 +05:00
|
|
|
class STDMESHERSGUI_EXPORT StdMeshersGUI_LayerDistributionParamWdg : public QWidget
|
2008-03-07 12:47:05 +05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2009-02-17 10:27:49 +05:00
|
|
|
StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr,
|
2009-12-10 19:52:59 +05:00
|
|
|
const QString&,
|
2009-02-17 10:27:49 +05:00
|
|
|
QDialog*);
|
2008-03-07 12:47:05 +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();
|
2009-02-17 10:27:49 +05:00
|
|
|
void onHypTypePopup( QAction* );
|
2009-09-04 14:21:40 +06:00
|
|
|
void onEdited(int);
|
2008-03-07 12:47:05 +05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void init();
|
2009-02-17 10:27:49 +05:00
|
|
|
void set(SMESH::SMESH_Hypothesis_ptr);
|
2008-03-07 12:47:05 +05:00
|
|
|
|
|
|
|
private:
|
|
|
|
SMESH::SMESH_Hypothesis_var myHyp;
|
|
|
|
SMESHGUI* mySMESHGUI;
|
|
|
|
|
|
|
|
QPushButton* myCreateButton;
|
|
|
|
QPushButton* myEditButton;
|
2009-02-17 10:27:49 +05:00
|
|
|
QMenu* myHypTypePopup;
|
2008-03-07 12:47:05 +05:00
|
|
|
QDialog* myDlg;
|
|
|
|
QString myName;
|
|
|
|
QString myParamValue;
|
|
|
|
|
|
|
|
QStringList myHypTypes;
|
|
|
|
};
|
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
#endif // STDMESHERSGUI_LAYERDISTRIBUTIONPARAMWGD_H
|