]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
*** empty log message ***
authorvsr <vsr@opencascade.com>
Thu, 11 Oct 2007 12:36:29 +0000 (12:36 +0000)
committervsr <vsr@opencascade.com>
Thu, 11 Oct 2007 12:36:29 +0000 (12:36 +0000)
src/DlgRef/DlgRef_Skeleton_QTD.ui
src/DlgRef/GEOM_DlgRef.cxx
src/DlgRef/GEOM_DlgRef.h

index 65e21f53ad6663f098d152338dc5c04807944ca7..28e9f2d21296c9c19c5fa78ef205cb43c94fdd20 100644 (file)
@@ -6,7 +6,7 @@
     <x>0</x>
     <y>0</y>
     <width>380</width>
-    <height>182</height>
+    <height>170</height>
    </rect>
   </property>
   <property name="sizePolicy" >
    <property name="spacing" >
     <number>6</number>
    </property>
+   <item row="2" column="0" >
+    <widget class="QWidget" native="1" name="GroupMedium" />
+   </item>
+   <item row="0" column="0" >
+    <widget class="QGroupBox" name="GroupConstructors" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>5</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="title" >
+      <string/>
+     </property>
+     <layout class="QHBoxLayout" >
+      <property name="margin" >
+       <number>9</number>
+      </property>
+      <property name="spacing" >
+       <number>6</number>
+      </property>
+      <item>
+       <widget class="QRadioButton" name="RadioButton1" >
+        <property name="text" >
+         <string/>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="RadioButton2" >
+        <property name="text" >
+         <string/>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="RadioButton3" >
+        <property name="text" >
+         <string/>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="RadioButton4" >
+        <property name="text" >
+         <string/>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
    <item row="3" column="0" >
     <widget class="QGroupBox" name="GroupButtons" >
      <property name="sizePolicy" >
      </layout>
     </widget>
    </item>
-   <item row="0" column="0" >
-    <widget class="QGroupBox" name="GroupConstructors" >
-     <property name="sizePolicy" >
-      <sizepolicy>
-       <hsizetype>5</hsizetype>
-       <vsizetype>0</vsizetype>
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="title" >
-      <string/>
-     </property>
-     <layout class="QHBoxLayout" >
-      <property name="margin" >
-       <number>9</number>
-      </property>
-      <property name="spacing" >
-       <number>6</number>
-      </property>
-      <item>
-       <widget class="QRadioButton" name="RadioButton1" >
-        <property name="text" >
-         <string/>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="RadioButton2" >
-        <property name="text" >
-         <string/>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="RadioButton3" >
-        <property name="text" >
-         <string/>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="RadioButton4" >
-        <property name="text" >
-         <string/>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item row="2" column="0" >
-    <widget class="QGroupBox" name="GroupMedium" >
-     <property name="sizePolicy" >
-      <sizepolicy>
-       <hsizetype>7</hsizetype>
-       <vsizetype>7</vsizetype>
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="title" >
-      <string/>
-     </property>
-    </widget>
-   </item>
   </layout>
  </widget>
  <layoutdefault spacing="6" margin="11" />
index 715983fe6debd305db6eb8d2a6cb77d7a339b2cf..4fd80c492a2dee52c2a68b809c0ce40f08b97eed 100644 (file)
@@ -537,3 +537,12 @@ DlgRef_Skeleton::DlgRef_Skeleton( QWidget* parent, bool modal, Qt::WindowFlags f
 DlgRef_Skeleton::~DlgRef_Skeleton()
 {
 }
+
+void DlgRef_Skeleton::initSpinBox( QDoubleSpinBox* spinBox, 
+                                  double min,  double max, 
+                                  double step, int decimals )
+{
+  spinBox->setRange( min, max );
+  spinBox->setSingleStep( step );
+  spinBox->setDecimals( decimals );
+}
index 8fa216eee334b8ff6f6187c9dfbc19c7e93dda7b..1fb97f43fac3369484c48fdf4af9a710cf96eaeb 100644 (file)
@@ -581,6 +581,8 @@ public:
   DlgRef_Skeleton( QWidget* = 0, Qt::WindowFlags = 0 );
   DlgRef_Skeleton( QWidget* = 0, bool modal = false, Qt::WindowFlags = 0 );
   ~DlgRef_Skeleton();
+
+  void initSpinBox( QDoubleSpinBox*, double, double, double = 0.1, int = 3 );
 };
 
 #endif // GEOM_DLGREF_H