From: asl Date: Tue, 30 Jun 2015 13:32:53 +0000 (+0300) Subject: refs #585: name is not necessary in GUI X-Git-Tag: v1.4.2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e9d24392dac9bf3f091a9ebe45defae1befb358;p=modules%2Fhydro.git refs #585: name is not necessary in GUI --- diff --git a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx index 58699e13..eec48af7 100644 --- a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx @@ -31,7 +31,6 @@ #include #include #include -#include #include const double MIN_COORD = -1000000; @@ -48,10 +47,6 @@ HYDROGUI_SplitPolylinesDlg::HYDROGUI_SplitPolylinesDlg( HYDROGUI_Module* theModu aLayout->setMargin( 5 ); aLayout->setSpacing( 5 ); - myName = new QLineEdit( mainFrame() ); - aLayout->addWidget( new QLabel( tr( "RESULT_NAME" ) ), 0, 0 ); - aLayout->addWidget( myName, 0, 1 ); - myTab = new QTabWidget( aFrame ); aLayout->addWidget( myTab, 1, 0, 1, 2 ); @@ -190,8 +185,3 @@ OCCViewer_ViewPort3d* HYDROGUI_SplitPolylinesDlg::getViewPort() const return aViewPort; } - -QString HYDROGUI_SplitPolylinesDlg::GetResultName() const -{ - return myName->text(); -} diff --git a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h index dedda929..bd42a882 100644 --- a/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h +++ b/src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h @@ -30,7 +30,6 @@ class gp_Pnt2d; class OCCViewer_Viewer; class SUIT_ViewWindow; class OCCViewer_ViewPort3d; -class QLineEdit; class HYDROGUI_SplitPolylinesDlg : public HYDROGUI_InputPanel { @@ -43,7 +42,6 @@ public: HYDROGUI_SplitPolylinesDlg( HYDROGUI_Module* theModule, const QString& theTitle ); virtual ~HYDROGUI_SplitPolylinesDlg(); - QString GetResultName() const; Mode GetMode() const; Handle( HYDROData_PolylineXY ) GetMainPolyline() const; Handle( HYDROData_PolylineXY ) GetToolPolyline() const; @@ -65,7 +63,6 @@ private: OCCViewer_ViewPort3d* getViewPort() const; private: - QLineEdit* myName; QTabWidget* myTab; QtxDoubleSpinBox* myX; QtxDoubleSpinBox* myY; diff --git a/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx b/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx index bab464a8..c81b1c6b 100644 --- a/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx +++ b/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx @@ -84,7 +84,7 @@ bool HYDROGUI_SplitPolylinesOp::processApply( int& theUpdateFlags, Handle( HYDROData_PolylineXY ) aToolPolyline = aPanel->GetToolPolyline(); HYDROData_SequenceOfObjects aPolylinesList = aPanel->GetPolylines(); gp_Pnt2d aPoint = aPanel->GetPoint(); - double aTolerance = 1E-7; //TODO + double aTolerance = 1E-2; //TODO HYDROData_PolylineOperator anOp; switch( aPanel->GetMode() )