Salome HOME
Merge branch 'BR_H2018_2' of https://codev-tuleap.cea.fr/plugins/git/salome/hydro...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_MergePolylinesDlg.h
1 // Copyright (C) 2014-2015  EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
6 //
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10 // Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
15 //
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 //
18
19 #ifndef HYDROGUI_MergePolylinesDlg_H
20 #define HYDROGUI_MergePolylinesDlg_H
21
22 #include <HYDROGUI_InputPanel.h>
23 #include <HYDROData_Entity.h>
24
25 class QLineEdit;
26 class QCheckBox;
27 class HYDROGUI_ObjListBox;
28
29 class HYDROGUI_MergePolylinesDlg : public HYDROGUI_InputPanel
30 {
31   Q_OBJECT
32
33 public:
34   HYDROGUI_MergePolylinesDlg( HYDROGUI_Module* theModule, const QString& theTitle );
35   virtual ~HYDROGUI_MergePolylinesDlg();
36
37   QString                     GetResultName() const;
38   HYDROData_SequenceOfObjects selectedPolylines() const;
39   void                        setSelectedPolylines( const HYDROData_SequenceOfObjects& );
40   void                        setPolylinesFromSelection();
41
42   bool                        IsConnectByNewSegment() const;
43
44 private:
45   QLineEdit*           myName;
46   QCheckBox*           myIsConnect;
47   HYDROGUI_ObjListBox* myList;
48 };
49
50 #endif