Salome HOME
Show an average value of control in the demo plugin
[modules/gui.git] / src / SalomeApp / pluginsdemo / minmax.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>Dialog</class>
4  <widget class="QDialog" name="Dialog">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>178</width>
10     <height>156</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>Get min and max value of control</string>
15   </property>
16   <property name="sizeGripEnabled">
17    <bool>true</bool>
18   </property>
19   <layout class="QGridLayout" name="gridLayout">
20    <item row="0" column="0">
21     <widget class="QLabel" name="label_2">
22      <property name="text">
23       <string>Mesh</string>
24      </property>
25     </widget>
26    </item>
27    <item row="0" column="1" colspan="2">
28     <widget class="QLineEdit" name="mesh">
29      <property name="readOnly">
30       <bool>true</bool>
31      </property>
32     </widget>
33    </item>
34    <item row="1" column="0">
35     <widget class="QLabel" name="label_3">
36      <property name="text">
37       <string>Control</string>
38      </property>
39     </widget>
40    </item>
41    <item row="1" column="1" colspan="2">
42     <widget class="QComboBox" name="control"/>
43    </item>
44    <item row="2" column="0">
45     <widget class="QLabel" name="label">
46      <property name="text">
47       <string>Min</string>
48      </property>
49     </widget>
50    </item>
51    <item row="2" column="1" colspan="2">
52     <widget class="QLineEdit" name="minvalue">
53      <property name="readOnly">
54       <bool>true</bool>
55      </property>
56     </widget>
57    </item>
58    <item row="3" column="0">
59     <widget class="QLabel" name="label_4">
60      <property name="text">
61       <string>Max</string>
62      </property>
63     </widget>
64    </item>
65    <item row="3" column="1" colspan="2">
66     <widget class="QLineEdit" name="maxvalue">
67      <property name="readOnly">
68       <bool>true</bool>
69      </property>
70     </widget>
71    </item>
72    <item row="4" column="0">
73     <widget class="QLabel" name="label_5">
74      <property name="text">
75       <string>Average</string>
76      </property>
77     </widget>
78    </item>
79    <item row="4" column="1" colspan="2">
80     <widget class="QLineEdit" name="avgvalue">
81      <property name="readOnly">
82       <bool>true</bool>
83      </property>
84     </widget>
85    </item>
86    <item row="5" column="0" colspan="3">
87     <widget class="QDialogButtonBox" name="buttonBox">
88      <property name="orientation">
89       <enum>Qt::Horizontal</enum>
90      </property>
91      <property name="standardButtons">
92       <set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
93      </property>
94     </widget>
95    </item>
96   </layout>
97  </widget>
98  <tabstops>
99   <tabstop>mesh</tabstop>
100   <tabstop>control</tabstop>
101   <tabstop>minvalue</tabstop>
102   <tabstop>maxvalue</tabstop>
103   <tabstop>buttonBox</tabstop>
104  </tabstops>
105  <resources/>
106  <connections>
107   <connection>
108    <sender>buttonBox</sender>
109    <signal>rejected()</signal>
110    <receiver>Dialog</receiver>
111    <slot>OnCancel()</slot>
112    <hints>
113     <hint type="sourcelabel">
114      <x>253</x>
115      <y>371</y>
116     </hint>
117     <hint type="destinationlabel">
118      <x>262</x>
119      <y>101</y>
120     </hint>
121    </hints>
122   </connection>
123   <connection>
124    <sender>buttonBox</sender>
125    <signal>helpRequested()</signal>
126    <receiver>Dialog</receiver>
127    <slot>helpMessage()</slot>
128    <hints>
129     <hint type="sourcelabel">
130      <x>131</x>
131      <y>373</y>
132     </hint>
133     <hint type="destinationlabel">
134      <x>131</x>
135      <y>64</y>
136     </hint>
137    </hints>
138   </connection>
139   <connection>
140    <sender>control</sender>
141    <signal>activated(QString)</signal>
142    <receiver>Dialog</receiver>
143    <slot>compute_minmax()</slot>
144    <hints>
145     <hint type="sourcelabel">
146      <x>250</x>
147      <y>137</y>
148     </hint>
149     <hint type="destinationlabel">
150      <x>131</x>
151      <y>81</y>
152     </hint>
153    </hints>
154   </connection>
155  </connections>
156  <slots>
157   <slot>compute_minmax()</slot>
158   <slot>helpMessage()</slot>
159   <slot>OnCancel()</slot>
160   <slot>OnOk()</slot>
161  </slots>
162 </ui>