1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : StdMeshersGUI_FixedPointsParamWdg.h
21 // Author : Open CASCADE S.A.S. (dmv)
23 #ifndef STDMESHERSGUI_FIXEDPOINTSPARAMWGD_H
24 #define STDMESHERSGUI_FIXEDPOINTSPARAMWGD_H
28 #include "SMESH_StdMeshersGUI.hxx"
32 #include <QStringList>
35 class SMESHGUI_SpinBox;
40 class QListWidgetItem;
42 class QTreeWidgetItem;
44 class STDMESHERSGUI_EXPORT StdMeshersGUI_FixedPointsParamWdg : public QWidget
51 StdMeshersGUI_FixedPointsParamWdg( QWidget* parent = 0 );
52 ~StdMeshersGUI_FixedPointsParamWdg();
54 bool eventFilter( QObject*, QEvent* );
56 SMESH::double_array_var GetListOfPoints();
57 void SetListOfPoints( SMESH::double_array_var );
59 SMESH::long_array_var GetListOfSegments();
60 void SetListOfSegments( SMESH::long_array_var );
62 QString GetValue() const { return myParamValue; }
67 void onCheckBoxChanged();
72 void addPoint( double );
74 double point( int ) const;
75 void setNbSegments( int, int );
76 int nbSegments( int ) const;
78 static QTreeWidgetItem* newTreeItem( double v1, double v2 );
79 static QListWidgetItem* newListItem( double v1 );
80 static QString treeItemText( double v1, double v2 );
83 QListWidget* myListWidget;
84 QTreeWidget* myTreeWidget;
85 SMESHGUI_SpinBox* mySpinBox;
86 QPushButton* myAddButton;
87 QPushButton* myRemoveButton;
88 QCheckBox* mySameValues;
92 #endif // STDMESHERSGUI_FIXEDPOINTSPARAMWGD_H