mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 18:20:35 +05:00
rnc: slight GUI and translation modifications
This commit is contained in:
parent
7de39bacb2
commit
84e6fdc3cb
@ -108,7 +108,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QCheckBox" name="checkBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>CheckBox</string>
|
<string>CheckBox</string>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>438</width>
|
<width>366</width>
|
||||||
<height>121</height>
|
<height>119</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -25,47 +25,7 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Values</string>
|
<string>Values</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" columnstretch="0,0,1,0">
|
<layout class="QGridLayout" name="gridLayout" 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>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="TextLabel1">
|
<widget class="QLabel" name="TextLabel1">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -95,6 +55,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="QPushButton" name="buttonApply">
|
<widget class="QPushButton" name="buttonApply">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -102,16 +72,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
|
||||||
<widget class="QLineEdit" name="LineEdit2"/>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QPushButton" name="PushButton2">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="TextLabel2">
|
<widget class="QLabel" name="TextLabel2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -119,19 +79,57 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="1" column="1">
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QPushButton" name="PushButton2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>CheckBox</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2" colspan="2">
|
<item row="1" column="2">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLineEdit" name="LineEdit2"/>
|
||||||
<property name="text">
|
</item>
|
||||||
<string>TextLabel</string>
|
<item row="1" column="3">
|
||||||
|
<layout class="QHBoxLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
</property>
|
</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>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>496</width>
|
<width>270</width>
|
||||||
<height>148</height>
|
<height>149</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -120,7 +120,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QCheckBox" name="checkBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>CheckBox</string>
|
<string>CheckBox</string>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>456</width>
|
<width>384</width>
|
||||||
<height>181</height>
|
<height>189</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -25,25 +25,52 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Values</string>
|
<string>Values</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" columnstretch="0,1,0">
|
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0">
|
||||||
<property name="margin">
|
<item row="0" column="0">
|
||||||
<number>9</number>
|
<widget class="QLabel" name="TextLabel1">
|
||||||
</property>
|
<property name="sizePolicy">
|
||||||
<property name="spacing">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<number>6</number>
|
<horstretch>0</horstretch>
|
||||||
</property>
|
<verstretch>0</verstretch>
|
||||||
<item row="2" column="1">
|
</sizepolicy>
|
||||||
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DZ"/>
|
</property>
|
||||||
</item>
|
<property name="text">
|
||||||
<item row="3" column="1">
|
<string>TL1</string>
|
||||||
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DS"/>
|
</property>
|
||||||
</item>
|
<property name="wordWrap">
|
||||||
<item row="1" column="1">
|
<bool>false</bool>
|
||||||
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DY"/>
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DX"/>
|
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DX"/>
|
||||||
</item>
|
</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="1" column="2">
|
<item row="1" column="2">
|
||||||
<layout class="QGridLayout">
|
<layout class="QGridLayout">
|
||||||
<property name="margin">
|
<property name="margin">
|
||||||
@ -68,15 +95,8 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="2" column="0">
|
||||||
<widget class="QPushButton" name="buttonApply">
|
<widget class="QLabel" name="TextLabel3">
|
||||||
<property name="text">
|
|
||||||
<string>Create</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="TextLabel1">
|
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -84,13 +104,16 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TL1</string>
|
<string>TL3</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DZ"/>
|
||||||
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="TextLabel4">
|
<widget class="QLabel" name="TextLabel4">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -107,51 +130,26 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="3" column="1">
|
||||||
<widget class="QLabel" name="TextLabel2">
|
<widget class="SalomeApp_DoubleSpinBox" name="SpinBox_DS"/>
|
||||||
<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>
|
||||||
<item row="2" column="0">
|
<item row="4" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="TextLabel3">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="sizePolicy">
|
<item>
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
<widget class="QCheckBox" name="checkBox">
|
||||||
<horstretch>0</horstretch>
|
<property name="text">
|
||||||
<verstretch>0</verstretch>
|
<string>CheckBox</string>
|
||||||
</sizepolicy>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="text">
|
</item>
|
||||||
<string>TL3</string>
|
<item>
|
||||||
</property>
|
<widget class="QLabel" name="label">
|
||||||
<property name="wordWrap">
|
<property name="text">
|
||||||
<bool>false</bool>
|
<string>TextLabel</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
</layout>
|
||||||
<widget class="QCheckBox" name="checkBox">
|
|
||||||
<property name="text">
|
|
||||||
<string>CheckBox</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" colspan="2">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>TextLabel</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -462,6 +462,7 @@ void EntityGUI_SketcherDlg::TypeClicked( int constructorId )
|
|||||||
{
|
{
|
||||||
myConstructorId = constructorId;
|
myConstructorId = constructorId;
|
||||||
if ( myConstructorId == 0 ) { // SEGMENT
|
if ( myConstructorId == 0 ) { // SEGMENT
|
||||||
|
GroupPt2->RB_Point1->setChecked( true );
|
||||||
GroupPt2->setEnabled( false );
|
GroupPt2->setEnabled( false );
|
||||||
GroupD2->setEnabled( true );
|
GroupD2->setEnabled( true );
|
||||||
MainWidget->RB_Dest1->setEnabled( true );
|
MainWidget->RB_Dest1->setEnabled( true );
|
||||||
@ -470,6 +471,7 @@ void EntityGUI_SketcherDlg::TypeClicked( int constructorId )
|
|||||||
}
|
}
|
||||||
else if ( myConstructorId == 1 ) { // ARC
|
else if ( myConstructorId == 1 ) { // ARC
|
||||||
GroupPt2->setEnabled( true );
|
GroupPt2->setEnabled( true );
|
||||||
|
GroupD2->RB_Dir21->setChecked( true );
|
||||||
GroupD2->setEnabled( false );
|
GroupD2->setEnabled( false );
|
||||||
MainWidget->RB_Dest1->setEnabled( true );
|
MainWidget->RB_Dest1->setEnabled( true );
|
||||||
MainWidget->RB_Dest1->setChecked( true );
|
MainWidget->RB_Dest1->setChecked( true );
|
||||||
@ -518,9 +520,16 @@ void EntityGUI_SketcherDlg::PointClicked( int constructorId )
|
|||||||
{
|
{
|
||||||
MESSAGE("PointClicked")
|
MESSAGE("PointClicked")
|
||||||
myConstructorPntId = constructorId;
|
myConstructorPntId = constructorId;
|
||||||
GroupPt2->RB_Point1->setChecked( true );
|
GroupPt->RB_Point3->setEnabled( true );
|
||||||
GroupPt->RB_Point3->setEnabled( true );
|
int buttonId = GroupPt2->ButtonGroup->checkedId();
|
||||||
Point2Clicked( 1 );
|
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 )
|
void EntityGUI_SketcherDlg::Dir1Clicked( int constructorId )
|
||||||
{
|
{
|
||||||
myConstructorDirId = constructorId;
|
myConstructorDirId = constructorId;
|
||||||
GroupD2->RB_Dir21->setChecked( true );
|
int dirButtonId = GroupD2->ButtonGroup->checkedId();
|
||||||
Dir2Clicked( 2 );
|
MESSAGE("checkedId ="<< dirButtonId)
|
||||||
|
if (dirButtonId >= 0){ // = If a button is checked
|
||||||
|
Dir2Clicked(dirButtonId);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
GroupD2->RB_Dir21->setChecked( true );
|
||||||
|
Dir2Clicked( 2 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1547,19 +1547,19 @@ Please, select face, shell or solid and try again</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_X</source>
|
<source>GEOM_SKETCHER_CENTER_X</source>
|
||||||
<translation>Center X coord. :</translation>
|
<translation>X Center :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_Y</source>
|
<source>GEOM_SKETCHER_CENTER_Y</source>
|
||||||
<translation>Center Y coord. :</translation>
|
<translation>Y Center :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_DX</source>
|
<source>GEOM_SKETCHER_CENTER_DX</source>
|
||||||
<translation>Center DX coord. :</translation>
|
<translation>DX Center :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_DY</source>
|
<source>GEOM_SKETCHER_CENTER_DY</source>
|
||||||
<translation>Center DY coord. :</translation>
|
<translation>DY Center :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_DEST</source>
|
<source>GEOM_SKETCHER_DEST</source>
|
||||||
|
@ -1547,19 +1547,19 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_X</source>
|
<source>GEOM_SKETCHER_CENTER_X</source>
|
||||||
<translation>Centre coord. X :</translation>
|
<translation>X Centre :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_Y</source>
|
<source>GEOM_SKETCHER_CENTER_Y</source>
|
||||||
<translation>Centre coord. Y :</translation>
|
<translation>Y Centre :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_DX</source>
|
<source>GEOM_SKETCHER_CENTER_DX</source>
|
||||||
<translation>Centre coord. DX :</translation>
|
<translation>DX Centre :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_CENTER_DY</source>
|
<source>GEOM_SKETCHER_CENTER_DY</source>
|
||||||
<translation>Centre coord. DY :</translation>
|
<translation>DY Centre :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SKETCHER_DEST</source>
|
<source>GEOM_SKETCHER_DEST</source>
|
||||||
|
Loading…
Reference in New Issue
Block a user