#include <HYDROGUI_Tool.h>
#include <QtxDoubleSpinBox.h>
#include <QFrame>
+#include <QLabel>
#include <QGridLayout>
#include <QTabWidget>
#include <gp_Pnt2d.hxx>
aLayout->addWidget( myTab, 0, 0 );
QFrame* aPointPage = new QFrame();
+ myMainPolyline1 = new HYDROGUI_ObjComboBox( theModule, tr( "POLYLINE" ), KIND_POLYLINEXY, aPointPage );
+ myX = new QtxDoubleSpinBox( aPointPage );
+ myY = new QtxDoubleSpinBox( aPointPage );
+
QGridLayout* aPointPageLayout = new QGridLayout( aPointPage );
-
+ aPointPageLayout->addWidget( myMainPolyline1, 0, 0, 1, 3 );
+ aPointPageLayout->addWidget( new QLabel( tr( "POINT" ) ), 1, 0 );
+ aPointPageLayout->addWidget( myX, 1, 1 );
+ aPointPageLayout->addWidget( myY, 1, 2 );
+ aPointPageLayout->setColumnStretch( 1, 1 );
+ aPointPageLayout->setColumnStretch( 2, 1 );
+ aPointPageLayout->setRowStretch( 2, 1 );
myTab->addTab( aPointPage, tr( "BY_POINT" ) );
QFrame* aToolPage = new QFrame();
+ myMainPolyline2 = new HYDROGUI_ObjComboBox( theModule, tr( "POLYLINE" ), KIND_POLYLINEXY, aToolPage );
+ myToolPolyline = new HYDROGUI_ObjComboBox( theModule, tr( "TOOL_POLYLINE" ), KIND_POLYLINEXY, aToolPage );
+
+ QGridLayout* aToolPageLayout = new QGridLayout( aToolPage );
+ aToolPageLayout->addWidget( myMainPolyline2, 0, 0 );
+ aToolPageLayout->addWidget( myToolPolyline, 1, 0 );
+ aToolPageLayout->setRowStretch( 2, 1 );
myTab->addTab( aToolPage, tr( "BY_TOOL" ) );
QFrame* aSplitPage = new QFrame();
+ myPolylines = new HYDROGUI_ObjListBox( theModule, tr( "POLYLINES" ), KIND_POLYLINEXY, aSplitPage );
+ QGridLayout* aSplitPageLayout = new QGridLayout( aSplitPage );
+ aSplitPageLayout->addWidget( myPolylines, 0, 0 );
myTab->addTab( aSplitPage, tr( "COMPLETE_SPLIT" ) );
}
<source>POLYLINES</source>
<translation>Polylines</translation>
</message>
+ <message>
+ <source>POINT</source>
+ <translation>Point</translation>
+ </message>
+ <message>
+ <source>POLYLINE</source>
+ <translation>Polyline</translation>
+ </message>
+ <message>
+ <source>TOOL_POLYLINE</source>
+ <translation>Tool polyline</translation>
+ </message>
+ <message>
+ <source>SPLIT_POLYLINES</source>
+ <translation>Split polylines</translation>
+ </message>
+ <message>
+ <source>BY_POINT</source>
+ <translation>By point</translation>
+ </message>
+ <message>
+ <source>BY_TOOL</source>
+ <translation>By tool</translation>
+ </message>
+ <message>
+ <source>COMPLETE_SPLIT</source>
+ <translation>Complete split</translation>
+ </message>
+ </context>
+
+ <context>
+ <name>HYDROGUI_MergePolylinesDlg</name>
+ <message>
+ <source>POLYLINES</source>
+ <translation>Polylines</translation>
+ </message>
+ <message>
+ <source>MERGE_POLYLINES</source>
+ <translation>Merge polylines</translation>
+ </message>
+ </context>
+
+ <context>
+ <name>HYDROGUI_ObjListBox</name>
<message>
<source>INCLUDE</source>
<translation>Include</translation>