]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Debug of land cover map creation.
authormkr <mkr@opencascade.com>
Fri, 13 Nov 2015 10:45:12 +0000 (13:45 +0300)
committermkr <mkr@opencascade.com>
Fri, 13 Nov 2015 10:45:12 +0000 (13:45 +0300)
src/HYDROGUI/HYDROGUI_LandCoverMapDlg.h
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
src/HYDROGUI/HYDROGUI_LandCoverMapOp.h

index d611b1717daf61afc6fcf05d024f1759771c0b1d..62fd560189cbe13d4ea2ac8008bac54dacd6e649 100644 (file)
@@ -56,7 +56,6 @@ public:
 
 signals:
   void                     landCoverMapChanged( const QString& theName );
-  void                     CreatePreview( const QStringList& thePolylineFaceNames );
 
 private slots:
   void                     onLandCoverMapChanged();
index 2ec102f4eca6d1fed78a5da5a79eb589144f0025..a04f5a1ca1267a996e1a13c46627899fc7415722 100644 (file)
@@ -118,8 +118,8 @@ void HYDROGUI_LandCoverMapOp::startOperation()
   aPanel->setObjectName( anObjectName );
 
   closePreview();
-  QStringList aPolylineFaceNames;
-  onCreatePreview( aPolylineFaceNames );
+  if ( myOperationId != CreateLandCoverMapId )
+    onCreatePreview();
 
   aPanel->blockSignals( false );
 
@@ -149,8 +149,6 @@ HYDROGUI_InputPanel* HYDROGUI_LandCoverMapOp::createInputPanel() const
   HYDROGUI_LandCoverMapDlg* aPanel = new HYDROGUI_LandCoverMapDlg( module(), getName(), myOperationId );
   connect( aPanel, SIGNAL( landCoverMapChanged( const QString& ) ),
            this, SLOT( onLandCoverMapChanged( const QString& ) ) );
-  connect( aPanel, SIGNAL( CreatePreview( const QStringList& ) ),
-           this,   SLOT( onCreatePreview( const QStringList& ) ) );
   return aPanel;
 }
 
@@ -355,13 +353,12 @@ void HYDROGUI_LandCoverMapOp::onLandCoverMapChanged( const QString& theName )
     {
       // Show preview of the newly selected land cover map
       closePreview();
-      QStringList aPolylineFaceNames;
-      onCreatePreview( aPolylineFaceNames );
+      onCreatePreview();
     }
   }
 }
 
-void HYDROGUI_LandCoverMapOp::onCreatePreview( const QStringList& thePolylineFaceNames )
+void HYDROGUI_LandCoverMapOp::onCreatePreview()
 {
   HYDROGUI_LandCoverMapDlg* aPanel = ::qobject_cast<HYDROGUI_LandCoverMapDlg*>( inputPanel() );
   if ( !aPanel )
index 55cc12df0f950cb5b640a33ee13ad0f3a49137b1..1a33bf25a6c2b81388991e1088831bbba576bce9 100644 (file)
@@ -47,7 +47,7 @@ protected:
 
 protected slots:
   void                           onLandCoverMapChanged( const QString& theName );
-  void                           onCreatePreview( const QStringList& thePolylineFaceNames );
+  void                           onCreatePreview();
   void                           onViewerSelectionChanged();
 
 private: