</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
<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>
<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>
<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>
{
myConstructorId = constructorId;
if ( myConstructorId == 0 ) { // SEGMENT
+ GroupPt2->RB_Point1->setChecked( true );
GroupPt2->setEnabled( false );
GroupD2->setEnabled( true );
MainWidget->RB_Dest1->setEnabled( true );
}
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 );
{
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 );
+ }
}
//=================================================================================
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 );
+ }
}
</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>
</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>