#include <HYDROGUI_MergePolylinesDlg.h>
#include <HYDROGUI_ObjListBox.h>
#include <QFrame>
+#include <QLabel>
#include <QGridLayout>
+#include <QLineEdit>
+#include <QCheckBox>
HYDROGUI_MergePolylinesDlg::HYDROGUI_MergePolylinesDlg( HYDROGUI_Module* theModule, const QString& theTitle )
: HYDROGUI_InputPanel( theModule, theTitle )
aLayout->setMargin( 5 );
aLayout->setSpacing( 5 );
+ myName = new QLineEdit( mainFrame() );
+ aLayout->addWidget( new QLabel( tr( "RESULT_NAME" ) ), 0, 0 );
+ aLayout->addWidget( myName, 0, 1 );
+
+ myIsConnect = new QCheckBox( tr( "IS_CONNECT" ), mainFrame() );
+ aLayout->addWidget( myIsConnect, 1, 0, 1, 2 );
+
myList = new HYDROGUI_ObjListBox( theModule, tr( "POLYLINES" ), KIND_POLYLINEXY, mainFrame() );
- aLayout->addWidget( myList, 0, 0 );
+ aLayout->addWidget( myList, 2, 0, 1, 2 );
}
HYDROGUI_MergePolylinesDlg::~HYDROGUI_MergePolylinesDlg()
{
return myList->setObjectsFromSelection();
}
+
+QString HYDROGUI_MergePolylinesDlg::GetResultName() const
+{
+ return myName->text();
+}
+
+bool HYDROGUI_MergePolylinesDlg::IsConnectByNewSegment() const
+{
+ return myIsConnect->isChecked();
+}