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.
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.
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
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef HYDROGUI_StreamDlg_H
20 #define HYDROGUI_StreamDlg_H
22 #include "HYDROGUI_InputPanel.h"
23 #include <HYDROData_Entity.h>
25 class HYDROGUI_OrderedListWidget;
38 class HYDROGUI_StreamDlg : public HYDROGUI_InputPanel
43 HYDROGUI_StreamDlg( HYDROGUI_Module* theModule, const QString& theTitle );
44 virtual ~HYDROGUI_StreamDlg();
48 void setObjectName( const QString& theName );
49 QString getObjectName() const;
51 void setAxisNames( const QStringList& theAxises );
52 void setLeftBankNames( const QStringList& theAxises );
53 void setRightBankNames( const QStringList& theAxises );
55 void setAxisName( const QString& thePolyline );
56 void setLeftBankName( const QString& theName );
57 void setRightBankName( const QString& theName );
59 QString getAxisName() const;
60 QString getLeftBankName() const;
61 QString getRightBankName() const;
63 void setProfiles( const QStringList& theProfiles );
65 void setDDZ( const double );
66 double getDDZ() const;
68 void setSpatialStep( const double );
69 double getSpatialStep() const;
71 void setNbProfilePoints( const int );
72 int getNbProfilePoints() const;
74 void addWarning( const QString& theWarnMess );
77 QList<Handle(HYDROData_Entity)> getProfiles();
79 void setBackgroundColorForProfileList (int theInd, QColor theColor);
80 void setBackgroundColorForProfileList (QString name, QColor theColor);
81 QColor getBackgroundColorForProfileList (int theInd) const;
82 void clearAllBackgroundColorsForProfileList ();
85 void setMode(int mode);
90 void RemoveProfiles( const QStringList& );
91 void AxisChanged( const QString& );
92 void DDZValueChanged (double d);
93 void SSValueChanged (double d);
95 void LeftBankChanged( const QString& ) ;
96 void RightBankChanged( const QString& );
97 void ProfilePointsChanged (int);
98 void ModeChanged(bool);
101 void onRemoveProfiles();
102 void onDDZValueChanged(double d);
103 void onSSValueChanged(double d);
104 void ModeChangedDlg(bool);
109 QGroupBox* myObjectNameGroup;
110 QLineEdit* myObjectName;
111 QDoubleSpinBox* myDDZ;
112 QDoubleSpinBox* mySpatialStep;
113 QSpinBox* myProfilePoints;
117 QComboBox* myLeftBanks;
118 QComboBox* myRightBanks;
120 HYDROGUI_OrderedListWidget* myProfiles;
121 QPushButton* myRemoveButton;
122 QPushButton* myAddButton;
123 QTextEdit* myWarnText;
124 QRadioButton* myModeButton;
125 QRadioButton* myModeButton2;
128 QLabel* myLeftBanksLabel;
129 QLabel* myRightBanksLabel;
130 QLabel* myProfilePointsLabel;