Salome HOME
refs #585: name is not necessary in GUI
authorasl <asl@opencascade.com>
Tue, 30 Jun 2015 13:32:53 +0000 (16:32 +0300)
committerasl <asl@opencascade.com>
Tue, 30 Jun 2015 13:32:53 +0000 (16:32 +0300)
src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx
src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.h
src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx

index 58699e13bb53f902b7d5d6d24a066c6f022e22c7..eec48af774ffc9e2e1105be0bdfdc1075ae7f454 100644 (file)
@@ -31,7 +31,6 @@
 #include <QGridLayout>
 #include <QTabWidget>
 #include <QMouseEvent>
-#include <QLineEdit>
 #include <gp_Pnt2d.hxx>
 
 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();
-}
index dedda92985f4eb284e996dbc8f719f07b2a4a4cf..bd42a88265f3b8eab5537eb9e49282449884f1bc 100644 (file)
@@ -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;
index bab464a82a4bd0a52192f7620a5fbbcf6daa91e4..c81b1c6b76375ecf06be8d8869a19bb0b30f84b0 100644 (file)
@@ -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() )