#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, 0, 0 );
+ aLayout->addWidget( myTab, 1, 0, 1, 2 );
QFrame* aPointPage = new QFrame();
myMainPolyline1 = new HYDROGUI_ObjComboBox( theModule, tr( "POLYLINE" ), KIND_POLYLINEXY, aPointPage );
switch( GetMode() )
{
case ByPoint:
- return Handle( HYDROData_PolylineXY )::DownCast( myMainPolyline1->GetObject() );
+ if( !myMainPolyline1->GetObject().IsNull() )
+ return Handle( HYDROData_PolylineXY )::DownCast( myMainPolyline1->GetObject() );
case ByTool:
- return Handle( HYDROData_PolylineXY )::DownCast( myMainPolyline2->GetObject() );
+ if( !myMainPolyline2->GetObject().IsNull() )
+ return Handle( HYDROData_PolylineXY )::DownCast( myMainPolyline2->GetObject() );
default:
return Handle( HYDROData_PolylineXY )();
}
+ return Handle( HYDROData_PolylineXY )();
}
Handle( HYDROData_PolylineXY ) HYDROGUI_SplitPolylinesDlg::GetToolPolyline() const
return aViewPort;
}
+
+QString HYDROGUI_SplitPolylinesDlg::GetResultName() const
+{
+ return myName->text();
+}