]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #585: gui for polyline operations
authorasl <asl@opencascade.com>
Fri, 19 Jun 2015 06:24:44 +0000 (09:24 +0300)
committerasl <asl@opencascade.com>
Fri, 19 Jun 2015 06:24:44 +0000 (09:24 +0300)
src/HYDROGUI/HYDROGUI_SplitPolylinesDlg.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index 5a702d1608ef20750b7c7c6dde91ed697bf301c3..ddc0a44dcb29074d486dbe4f440e9af7b7c04241 100644 (file)
@@ -22,6 +22,7 @@
 #include <HYDROGUI_Tool.h>
 #include <QtxDoubleSpinBox.h>
 #include <QFrame>
+#include <QLabel>
 #include <QGridLayout>
 #include <QTabWidget>
 #include <gp_Pnt2d.hxx>
@@ -40,14 +41,34 @@ HYDROGUI_SplitPolylinesDlg::HYDROGUI_SplitPolylinesDlg( HYDROGUI_Module* theModu
   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" ) );
 }
 
index 88c56649dc78e6229d3094d10d4991f04f204812..ad059868251e1f6749869dd45acd04a3af3c8b9c 100644 (file)
@@ -2784,6 +2784,50 @@ Polyline should consist from one not closed curve.</translation>
       <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>