Salome HOME
Initial merge of branch 'BR_HYDRO_IMPS_2016' into BR_PORTING_OCCT_7
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_StreamDlg.h
index b78dc7190c35afb983856a5157313ccbef3b06e9..3d49be1befa6c561d42b612297ed7c5551285c06 100644 (file)
@@ -1,12 +1,8 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015  EDF-R&D
 // 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.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #include "HYDROGUI_InputPanel.h"
 
+class HYDROGUI_OrderedListWidget;
+
 class QComboBox;
 class QGroupBox;
 class QLineEdit;
 class QListWidget;
 class QPushButton;
+class QDoubleSpinBox;
+class QTextEdit;
 
 class HYDROGUI_StreamDlg : public HYDROGUI_InputPanel
 {
@@ -45,31 +45,49 @@ public:
   QString                    getObjectName() const;
 
   void                       setAxisNames( const QStringList& theAxises );
+
   void                       setAxisName( const QString& thePolyline );
   QString                    getAxisName() const;
 
-  void                       setSelectedProfiles( const QStringList& theProfiles );
-  QStringList                getSelectedProfiles() const;
+  void                       setProfiles( const QStringList& theProfiles );
+
+  void                       setDDZ( const double );
+  double                     getDDZ() const;
+
+  void                       setSpatialStep( const double );
+  double                     getSpatialStep() const;
+
+  void                       addWarning( const QString& theWarnMess );
+  void                       clearWarnings();
+
+  void setBackgroundColorForProfileList (int theInd, QColor theColor);
+  QColor getBackgroundColorForProfileList (int theInd) const;
+  void clearAllBackgroundColorsForProfileList ();
 
 signals:
-  void                       CreatePreview();
   void                       AddProfiles();
   void                       RemoveProfiles( const QStringList& );
   void                       AxisChanged( const QString& );
+  void                       DDZValueChanged (double d);
+  void                       SSValueChanged (double d);
 
 private slots:
-  void                       onStreamDefChanged();
   void                       onRemoveProfiles();
+  void                       onDDZValueChanged(double d);
+  void                       onSSValueChanged(double d);
 
 private:
+  QGroupBox*                  myObjectNameGroup;
+  QLineEdit*                  myObjectName;
+  QDoubleSpinBox*             myDDZ;
+  QDoubleSpinBox*             mySpatialStep;
 
-  QGroupBox*                 myObjectNameGroup;
-  QLineEdit*                 myObjectName;
+  QComboBox*                  myAxes;
+  HYDROGUI_OrderedListWidget* myProfiles;
+  QPushButton*                myRemoveButton;
+  QPushButton*                myAddButton;
+  QTextEdit*                  myWarnText;
 
-  QComboBox*                 myAxises;
-  QListWidget*               myProfiles;
-  QPushButton*               myRemoveButton;
-  QPushButton*               myAddButton;
 };
 
 #endif