smesh/src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.h

92 lines
2.7 KiB
C
Raw Normal View History

2013-04-01 19:05:47 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
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
//
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.
//
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.
//
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
2009-02-17 10:27:49 +05:00
// SMESH includes
#include "SMESH_StdMeshersGUI.hxx"
2009-02-17 10:27:49 +05:00
// Qt includes
#include <QWidget>
#include <QStringList>
2009-02-17 10:27:49 +05:00
// IDL includes
#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;
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
{
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);
~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);
private:
void init();
2009-02-17 10:27:49 +05:00
void set(SMESH::SMESH_Hypothesis_ptr);
private:
SMESH::SMESH_Hypothesis_var myHyp;
2013-04-01 19:05:47 +06:00
SMESH::SMESH_Hypothesis_var myHolderHyp;
SMESHGUI* mySMESHGUI;
QPushButton* myCreateButton;
QPushButton* myEditButton;
2009-02-17 10:27:49 +05:00
QMenu* myHypTypePopup;
QDialog* myDlg;
QString myName;
QString myParamValue;
QStringList myHypTypes;
};
2009-02-17 10:27:49 +05:00
#endif // STDMESHERSGUI_LAYERDISTRIBUTIONPARAMWGD_H