]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc: slight GUI and translation modifications
authorgdd <gdd>
Wed, 20 Apr 2011 09:43:47 +0000 (09:43 +0000)
committergdd <gdd>
Wed, 20 Apr 2011 09:43:47 +0000 (09:43 +0000)
src/EntityGUI/EntityGUI_1Sel1Spin1Check_QTD.ui
src/EntityGUI/EntityGUI_2Sel1Check_QTD.ui
src/EntityGUI/EntityGUI_3Spin1Check_QTD.ui
src/EntityGUI/EntityGUI_4Spin1Check_QTD.ui
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/GEOMGUI/GEOM_msg_en.ts
src/GEOMGUI/GEOM_msg_fr.ts

index 2cfcd29cfcd194602f78a919b2aa3aa17ee08a69..df1b6889447159c1e26e808c585bf698c34be84b 100644 (file)
         </item>\r
        </layout>\r
       </item>\r
-      <item row="2" column="0">\r
+      <item row="2" column="0" colspan="2">\r
        <widget class="QCheckBox" name="checkBox">\r
         <property name="text">\r
          <string>CheckBox</string>\r
index 656442d1bab1a241e99eec4646acdb21e265bd8f..4d0f6d907a5fc38cbb9b5df7a1a17835e66ccfc3 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>438</width>
-    <height>121</height>
+    <width>366</width>
+    <height>119</height>
    </rect>
   </property>
   <property name="windowTitle">
      <property name="title">
       <string>Values</string>
      </property>
-     <layout class="QGridLayout" columnstretch="0,0,1,0">
-      <property name="margin">
-       <number>9</number>
-      </property>
-      <property name="spacing">
-       <number>6</number>
-      </property>
-      <item row="1" column="3">
-       <layout class="QHBoxLayout">
-        <property name="spacing">
-         <number>6</number>
-        </property>
-        <property name="margin">
-         <number>0</number>
-        </property>
-        <item>
-         <widget class="QPushButton" name="buttonUndo">
-          <property name="text">
-           <string>Undo</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="buttonRedo">
-          <property name="text">
-           <string>Redo</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
-      <item row="0" column="2">
-       <widget class="QLineEdit" name="LineEdit1">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-       </widget>
-      </item>
+     <layout class="QGridLayout" name="gridLayout" columnstretch="0,0,1,0">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
         </property>
        </widget>
       </item>
-      <item row="0" column="3">
-       <widget class="QPushButton" name="buttonApply">
-        <property name="text">
-         <string>Create</string>
+      <item row="0" column="2">
+       <widget class="QLineEdit" name="LineEdit1">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
         </property>
        </widget>
       </item>
-      <item row="1" column="2">
-       <widget class="QLineEdit" name="LineEdit2"/>
-      </item>
-      <item row="1" column="1">
-       <widget class="QPushButton" name="PushButton2">
+      <item row="0" column="3">
+       <widget class="QPushButton" name="buttonApply">
         <property name="text">
-         <string/>
+         <string>Create</string>
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
-      <item row="2" column="0">
-       <widget class="QCheckBox" name="checkBox">
+      <item row="1" column="1">
+       <widget class="QPushButton" name="PushButton2">
         <property name="text">
-         <string>CheckBox</string>
+         <string/>
         </property>
        </widget>
       </item>
-      <item row="2" column="2" colspan="2">
-       <widget class="QLabel" name="label">
-        <property name="text">
-         <string>TextLabel</string>
+      <item row="1" column="2">
+       <widget class="QLineEdit" name="LineEdit2"/>
+      </item>
+      <item row="1" column="3">
+       <layout class="QHBoxLayout">
+        <property name="spacing">
+         <number>6</number>
         </property>
-       </widget>
+        <property name="margin">
+         <number>0</number>
+        </property>
+        <item>
+         <widget class="QPushButton" name="buttonUndo">
+          <property name="text">
+           <string>Undo</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="buttonRedo">
+          <property name="text">
+           <string>Redo</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </item>
+      <item row="2" column="0" colspan="4">
+       <layout class="QHBoxLayout" name="horizontalLayout">
+        <item>
+         <widget class="QCheckBox" name="checkBox">
+          <property name="text">
+           <string>CheckBox</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QLabel" name="label">
+          <property name="text">
+           <string>TextLabel</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
       </item>
      </layout>
     </widget>
index 8383c1f9643346d6ae9e8b8673b361c4b018ab54..9dc92e22266c11abd2220df3ecd64b168de7c05f 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>496</width>
-    <height>148</height>
+    <width>270</width>
+    <height>149</height>
    </rect>
   </property>
   <property name="windowTitle">
         </property>
        </widget>
       </item>
-      <item row="3" column="0">
+      <item row="3" column="0" colspan="2">
        <widget class="QCheckBox" name="checkBox">
         <property name="text">
          <string>CheckBox</string>
index 0607678689b6ef5c6d1b734d0ac73c6699ad88a3..fa876ac60118c2a5422072cba1e6bbf016b8bcdc 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>456</width>
-    <height>181</height>
+    <width>384</width>
+    <height>189</height>
    </rect>
   </property>
   <property name="windowTitle">
      <property name="title">
       <string>Values</string>
      </property>
-     <layout class="QGridLayout" columnstretch="0,1,0">
-      <property name="margin">
-       <number>9</number>
-      </property>
-      <property name="spacing">
-       <number>6</number>
-      </property>
-      <item row="2" column="1">
-       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DZ"/>
+     <layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0">
+      <item row="0" column="0">
+       <widget class="QLabel" name="TextLabel1">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>TL1</string>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+       </widget>
       </item>
-      <item row="3" column="1">
-       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DS"/>
+      <item row="0" column="1">
+       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DX"/>
+      </item>
+      <item row="0" column="2">
+       <widget class="QPushButton" name="buttonApply">
+        <property name="text">
+         <string>Create</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QLabel" name="TextLabel2">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>TL2</string>
+        </property>
+        <property name="wordWrap">
+         <bool>false</bool>
+        </property>
+       </widget>
       </item>
       <item row="1" column="1">
        <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DY"/>
       </item>
-      <item row="0" column="1">
-       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DX"/>
-      </item>
       <item row="1" column="2">
        <layout class="QGridLayout">
         <property name="margin">
         </item>
        </layout>
       </item>
-      <item row="0" column="2">
-       <widget class="QPushButton" name="buttonApply">
-        <property name="text">
-         <string>Create</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="0">
-       <widget class="QLabel" name="TextLabel1">
+      <item row="2" column="0">
+       <widget class="QLabel" name="TextLabel3">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
           <horstretch>0</horstretch>
          </sizepolicy>
         </property>
         <property name="text">
-         <string>TL1</string>
+         <string>TL3</string>
         </property>
         <property name="wordWrap">
          <bool>false</bool>
         </property>
        </widget>
       </item>
+      <item row="2" column="1">
+       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DZ"/>
+      </item>
       <item row="3" column="0">
        <widget class="QLabel" name="TextLabel4">
         <property name="sizePolicy">
         </property>
        </widget>
       </item>
-      <item row="1" column="0">
-       <widget class="QLabel" name="TextLabel2">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="text">
-         <string>TL2</string>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="0">
-       <widget class="QLabel" name="TextLabel3">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="text">
-         <string>TL3</string>
-        </property>
-        <property name="wordWrap">
-         <bool>false</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="5" column="0">
-       <widget class="QCheckBox" name="checkBox">
-        <property name="text">
-         <string>CheckBox</string>
-        </property>
-       </widget>
+      <item row="3" column="1">
+       <widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DS"/>
       </item>
-      <item row="5" column="1" colspan="2">
-       <widget class="QLabel" name="label">
-        <property name="text">
-         <string>TextLabel</string>
-        </property>
-       </widget>
+      <item row="4" column="0" colspan="3">
+       <layout class="QHBoxLayout" name="horizontalLayout">
+        <item>
+         <widget class="QCheckBox" name="checkBox">
+          <property name="text">
+           <string>CheckBox</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QLabel" name="label">
+          <property name="text">
+           <string>TextLabel</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
       </item>
      </layout>
     </widget>
index 90b0eac234d2c9ef205b48a16a19c903b66b9bda..f01a072d42d024e3933f0d6ba7afa037ba1934b8 100644 (file)
@@ -462,6 +462,7 @@ void EntityGUI_SketcherDlg::TypeClicked( int constructorId )
 {
   myConstructorId = constructorId;
   if ( myConstructorId == 0 ) {    // SEGMENT
+    GroupPt2->RB_Point1->setChecked( true );
     GroupPt2->setEnabled( false );
     GroupD2->setEnabled( true );
     MainWidget->RB_Dest1->setEnabled( true );
@@ -470,6 +471,7 @@ void EntityGUI_SketcherDlg::TypeClicked( int constructorId )
   }
   else if (  myConstructorId == 1 ) { // ARC
     GroupPt2->setEnabled( true );
+    GroupD2->RB_Dir21->setChecked( true );
     GroupD2->setEnabled( false );
     MainWidget->RB_Dest1->setEnabled( true ); 
     MainWidget->RB_Dest1->setChecked( true );
@@ -518,9 +520,16 @@ void EntityGUI_SketcherDlg::PointClicked( int constructorId )
 {
   MESSAGE("PointClicked")
   myConstructorPntId = constructorId;  
-  GroupPt2->RB_Point1->setChecked( true );
-  GroupPt->RB_Point3->setEnabled( true ); 
-  Point2Clicked( 1 ); 
+  GroupPt->RB_Point3->setEnabled( true );
+  int buttonId = GroupPt2->ButtonGroup->checkedId();
+  MESSAGE("checkedId ="<< buttonId)
+  if (buttonId >= 0){           // = If a button is checked
+    Point2Clicked(buttonId);
+  }
+  else{ 
+    GroupPt2->RB_Point1->setChecked( true );
+    Point2Clicked( 1 ); 
+  }
 }
 
 //=================================================================================
@@ -706,8 +715,15 @@ void EntityGUI_SketcherDlg::Point2Clicked( int constructorId )
 void EntityGUI_SketcherDlg::Dir1Clicked( int constructorId )
 {
   myConstructorDirId = constructorId;
-  GroupD2->RB_Dir21->setChecked( true );
-  Dir2Clicked( 2 );
+  int dirButtonId = GroupD2->ButtonGroup->checkedId();
+  MESSAGE("checkedId ="<< dirButtonId)
+  if (dirButtonId >= 0){           // = If a button is checked
+    Dir2Clicked(dirButtonId);
+  }
+  else{ 
+    GroupD2->RB_Dir21->setChecked( true );
+    Dir2Clicked( 2 ); 
+  }
 }
 
 
index ce17adc226347ac4f2c733fa7d8191ea2c311787..8080afbbde9db22d19906d135c91afe5cde709ef 100644 (file)
@@ -1547,19 +1547,19 @@ Please, select face, shell or solid and try again</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_X</source>
-        <translation>Center X coord. :</translation>
+        <translation>X Center :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_Y</source>
-        <translation>Center Y coord. :</translation>
+        <translation>Y Center :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_DX</source>
-        <translation>Center DX coord. :</translation>
+        <translation>DX Center :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_DY</source>
-        <translation>Center DY coord. :</translation>
+        <translation>DY Center :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_DEST</source>
index fc5c6d797d21ddbd9716245a2d22a72f9c382d39..6645b3d5aeec5e5a01a51bc70fed2e09c5d8443a 100644 (file)
@@ -1547,19 +1547,19 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_X</source>
-        <translation>Centre coord. X :</translation>
+        <translation>X Centre :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_Y</source>
-        <translation>Centre coord. Y :</translation>
+        <translation>Y Centre :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_DX</source>
-        <translation>Centre coord. DX :</translation>
+        <translation>DX Centre :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_CENTER_DY</source>
-        <translation>Centre coord. DY :</translation>
+        <translation>DY Centre :</translation>
     </message>
     <message>
         <source>GEOM_SKETCHER_DEST</source>