Salome HOME
refs #1327: implementation of the scaling operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Operations.cxx
index 75ca6f832714174cb3a11b9d1b622a7eed06100a..cb4ad5206aa6e97c5b283a71cd056a69152bcabe 100644 (file)
@@ -801,5 +801,13 @@ void HYDROGUI_Module::onBathymetrySelection()
 
 void HYDROGUI_Module::onBathymetryText()
 {
-  //TODO
+  QAction* a = qobject_cast<QAction*>( sender() );
+  if( !a )
+    return;
+
+  bool isChecked = a->isChecked();
+  if( isChecked )
+    startOperation( BathymetryTextId );
+  else
+    operation( BathymetryTextId )->abort();
 }