Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineDlg.cxx
index 88f11469527d03bfb9120402b60acd66e565c7d8..a643eb3433010a8a48191abd18be994d1a659b5c 100755 (executable)
@@ -37,7 +37,7 @@ HYDROGUI_PolylineDlg::HYDROGUI_PolylineDlg( HYDROGUI_Module* theModule, const QS
 : HYDROGUI_InputPanel( theModule, theTitle ), myName(NULL)
 {
   QHBoxLayout* aNameLayout = new QHBoxLayout();
-  QLabel* aNameLabel = new QLabel(tr("CURVE_NAME_TLT"), this);
+  QLabel* aNameLabel = new QLabel(tr("POLYLINE_NAME_TLT"), this);
   aNameLayout->addWidget(aNameLabel);
   myName = new QLineEdit(this);
   aNameLayout->addWidget(myName);
@@ -120,3 +120,19 @@ QList< QPair< int, int > > HYDROGUI_PolylineDlg::getSelectedPoints()
 {
   return myEditorWidget->getSelectedPoints();
 }
+
+/**
+ * Redirect the delete action to editor widget
+ */
+void HYDROGUI_PolylineDlg::deleteSelected()
+{
+  myEditorWidget->removeSelected();
+}
+
+/**
+ * Checks whether there are some to delete
+ */
+bool HYDROGUI_PolylineDlg::deleteEnabled()
+{
+  return myEditorWidget->removeEnabled();
+}