Salome HOME
lot 15:: protection against corrupted polylines/objects
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapDlg.h
index 211740c87474dd45dcb5736b7d74ef7f3685085f..3547feb8da8e3e1fb9baa47452ae57f236d91bb9 100644 (file)
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-// REMOVED FROM THE PROJECT, BUT KEPT AS A REFERENCE FILE. TO BE DELETED LATER.
-
 #ifndef HYDROGUI_LANDCOVERMAPDLG_H
 #define HYDROGUI_LANDCOVERMAPDLG_H
 
-#include "HYDROGUI_InputPanel.h"
-
-#include "HYDROGUI_ObjComboBox.h"
+#include <HYDROGUI_InputPanel.h>
+#include <HYDROGUI_LandCoverArgsFilter.h>
 
 class HYDROGUI_StricklerTypeComboBox;
 
@@ -31,7 +28,7 @@ class QGroupBox;
 class QLineEdit;
 class QLabel;
 
-class HYDROGUI_LandCoverMapDlg : public HYDROGUI_InputPanel, public HYDROGUI_ObjComboBoxFilter
+class HYDROGUI_LandCoverMapDlg : public HYDROGUI_InputPanel
 {
   Q_OBJECT
 
@@ -52,10 +49,15 @@ public:
   void                     setSelectedStricklerTypeName( const QString& theName );
   QString                  getSelectedStricklerTypeName() const;
 
-  virtual bool             isOk( const Handle(HYDROData_Entity)& ) const;
+  void                     updateSelectedLandCoversLabel( int theNbSelected );
+
+signals:
+  void                     landCoverMapChanged( const QString& theName );
+  void                     polylineFaceChanged();
 
 private slots:
-  void                     onPolylineFaceChanged( const QString& );
+  void                     onLandCoverMapChanged();
+  void                     onPolylineFaceChanged();
 
 private:
   void                     updateState( bool theInitialConfigure = false );
@@ -71,6 +73,8 @@ private:
   HYDROGUI_ObjComboBox*           myPolylinesFaces;
   QLabel*                         myStricklerTypesLabel;
   HYDROGUI_StricklerTypeComboBox* myStricklerTypes;
+  QLabel*                         mySelectedLandCoversLabel;
+  HYDROGUI_LandCoverArgsFilter    myFilter;
 };
 
 #endif