2013-04-01 19:05:47 +06:00
|
|
|
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
|
2008-03-07 12:47:05 +05:00
|
|
|
//
|
2012-08-09 16:03:55 +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
|
|
|
//
|
2012-08-09 16:03:55 +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
|
|
|
//
|
2012-08-09 16:03:55 +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
|
|
|
//
|
2012-08-09 16:03:55 +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
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-17 10:27:49 +05:00
|
|
|
//
|
2012-08-09 16:03:55 +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:
|
2013-04-01 19:05:47 +06:00
|
|
|
StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr holderHyp,
|
|
|
|
SMESH::SMESH_Hypothesis_ptr distribHyp,
|
|
|
|
const QString& name,
|
|
|
|
QDialog* dlg);
|
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* );
|
2012-08-09 16:03:55 +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;
|
2013-04-01 19:05:47 +06:00
|
|
|
SMESH::SMESH_Hypothesis_var myHolderHyp;
|
2008-03-07 12:47:05 +05:00
|
|
|
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
|