#include <QGridLayout>
#include <QTabWidget>
#include <QMouseEvent>
-#include <QLineEdit>
#include <gp_Pnt2d.hxx>
const double MIN_COORD = -1000000;
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 );
return aViewPort;
}
-
-QString HYDROGUI_SplitPolylinesDlg::GetResultName() const
-{
- return myName->text();
-}
class OCCViewer_Viewer;
class SUIT_ViewWindow;
class OCCViewer_ViewPort3d;
-class QLineEdit;
class HYDROGUI_SplitPolylinesDlg : public HYDROGUI_InputPanel
{
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;
OCCViewer_ViewPort3d* getViewPort() const;
private:
- QLineEdit* myName;
QTabWidget* myTab;
QtxDoubleSpinBox* myX;
QtxDoubleSpinBox* myY;
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() )