#include "HYDROGUI_Module.h"
#include <CurveCreator_Widget.h>
-#include <CurveCreator_Curve.hxx>
+#include <CurveCreator_ICurve.hxx>
+
+#include <OCCViewer_ViewModel.h>
#include <QGroupBox>
#include <QHBoxLayout>
: 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);
{
}
+void HYDROGUI_PolylineDlg::setOCCViewer( OCCViewer_Viewer* theViewer )
+{
+ myEditorWidget->setOCCViewer( theViewer );
+}
+
void HYDROGUI_PolylineDlg::processStartedSubOperation( QWidget* theWidget )
{
myEditorWidget->setEnabled( false );
return myName->text();
}
-void HYDROGUI_PolylineDlg::setCurve( CurveCreator_Curve* theCurve )
+void HYDROGUI_PolylineDlg::setCurve( CurveCreator_ICurve* theCurve )
{
myEditorWidget->setCurve( theCurve );
}
{
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();
+}