//
#include "HYDROGUI_PolylineDlg.h"
+
+#include "HYDROGUI_Module.h"
#include <CurveCreator_Widget.h>
#include <CurveCreator_Curve.hxx>
addLayout(aNameLayout);
myEditorWidget =
- new CurveCreator_Widget( this, NULL);
+ new CurveCreator_Widget( this, NULL );
addWidget( myEditorWidget );
+
+ connect( myEditorWidget, SIGNAL( selectionChanged() ), this, SIGNAL( selectionChanged() ) );
+ connect( myEditorWidget, SIGNAL( subOperationStarted(QWidget*) ), this, SLOT( processStartedSubOperation(QWidget*) ) );
+ connect( myEditorWidget, SIGNAL( subOperationFinished(QWidget*) ), this, SLOT( processFinishedSubOperation(QWidget*) ) );
}
HYDROGUI_PolylineDlg::~HYDROGUI_PolylineDlg()
{
}
+void HYDROGUI_PolylineDlg::processStartedSubOperation( QWidget* theWidget )
+{
+ myEditorWidget->setEnabled( false );
+ activateWidget( theWidget );
+}
+
+void HYDROGUI_PolylineDlg::processFinishedSubOperation( QWidget* theWidget )
+{
+ myEditorWidget->setEnabled( true );
+ activateWidget( 0 );
+}
+
void HYDROGUI_PolylineDlg::reset()
{
}
{
myEditorWidget->setCurve( theCurve );
}
+
+QList<int> HYDROGUI_PolylineDlg::getSelectedSections()
+{
+ return myEditorWidget->getSelectedSections();
+}
+
+QList< QPair< int, int > > HYDROGUI_PolylineDlg::getSelectedPoints()
+{
+ return myEditorWidget->getSelectedPoints();
+}