Salome HOME
Profile object creation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ProfileDlg.cxx
index d732b05e25e959dee59fd2fb80f3cfb533a2d185..e6e24a486302691f93e9e895cabd9dc51d060ebe 100644 (file)
@@ -73,15 +73,12 @@ HYDROGUI_ProfileDlg::HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QStr
   connect( myEditorWidget, SIGNAL( subOperationFinished(QWidget*) ), this, SLOT( processFinishedSubOperation(QWidget*) ) );
 
   //myAddElementBox->hide();
-}
 
-HYDROGUI_ProfileDlg::~HYDROGUI_ProfileDlg()
-{
+  myEditorWidget->setOCCViewWidget( myViewWidget );
 }
 
-void HYDROGUI_ProfileDlg::setOCCViewer( OCCViewer_Viewer* theViewer )
+HYDROGUI_ProfileDlg::~HYDROGUI_ProfileDlg()
 {
-  myEditorWidget->setOCCViewer( theViewer );
 }
 
 void HYDROGUI_ProfileDlg::processStartedSubOperation( QWidget* theWidget )
@@ -108,6 +105,12 @@ void HYDROGUI_ProfileDlg::processFinishedSubOperation( QWidget* theWidget )
 
 void HYDROGUI_ProfileDlg::reset()
 {
+  myEditorWidget->reset();
+}
+
+Handle(AIS_InteractiveContext) HYDROGUI_ProfileDlg::getAISContext()
+{
+  return myViewWidget->getAISContext();
 }
 
 void HYDROGUI_ProfileDlg::setProfileName( const QString& theName )
@@ -120,9 +123,9 @@ QString HYDROGUI_ProfileDlg::getProfileName() const
   return myName->text();
 }
 
-void HYDROGUI_ProfileDlg::setCurve( CurveCreator_ICurve* theCurve )
+void HYDROGUI_ProfileDlg::setProfile( CurveCreator_ICurve* theProfile )
 {
-  myEditorWidget->setCurve( theCurve );
+  myEditorWidget->setCurve( theProfile );
 }
 
 QList<int> HYDROGUI_ProfileDlg::getSelectedSections()