~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Mesh/Gui/DlgSettingsMeshView.ui

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
Import upstream version 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<ui version="4.0" >
 
2
 <author></author>
 
3
 <comment></comment>
 
4
 <exportmacro></exportmacro>
 
5
 <class>MeshGui::DlgSettingsMeshView</class>
 
6
 <widget class="QWidget" name="MeshGui::DlgSettingsMeshView" >
 
7
  <property name="geometry" >
 
8
   <rect>
 
9
    <x>0</x>
 
10
    <y>0</y>
 
11
    <width>559</width>
 
12
    <height>390</height>
 
13
   </rect>
 
14
  </property>
 
15
  <property name="windowTitle" >
 
16
   <string>Mesh view</string>
 
17
  </property>
 
18
  <layout class="QGridLayout" >
 
19
   <property name="margin" >
 
20
    <number>9</number>
 
21
   </property>
 
22
   <property name="spacing" >
 
23
    <number>6</number>
 
24
   </property>
 
25
   <item row="0" column="0" >
 
26
    <widget class="QGroupBox" name="groupBox" >
 
27
     <property name="title" >
 
28
      <string>Appearance</string>
 
29
     </property>
 
30
     <layout class="QGridLayout" >
 
31
      <property name="margin" >
 
32
       <number>9</number>
 
33
      </property>
 
34
      <property name="spacing" >
 
35
       <number>6</number>
 
36
      </property>
 
37
      <item row="0" column="0" >
 
38
       <layout class="QGridLayout" >
 
39
        <property name="margin" >
 
40
         <number>0</number>
 
41
        </property>
 
42
        <property name="spacing" >
 
43
         <number>6</number>
 
44
        </property>
 
45
        <item row="1" column="0" >
 
46
         <widget class="QLabel" name="labelFaceColor" >
 
47
          <property name="text" >
 
48
           <string>Face color</string>
 
49
          </property>
 
50
         </widget>
 
51
        </item>
 
52
        <item row="2" column="1" >
 
53
         <widget class="Gui::PrefColorButton" name="buttonBackfaceColor" >
 
54
          <property name="enabled" >
 
55
           <bool>false</bool>
 
56
          </property>
 
57
          <property name="color" >
 
58
           <color>
 
59
            <red>204</red>
 
60
            <green>204</green>
 
61
            <blue>204</blue>
 
62
           </color>
 
63
          </property>
 
64
          <property name="prefEntry" stdset="0" >
 
65
           <cstring>BackfaceColor</cstring>
 
66
          </property>
 
67
          <property name="prefPath" stdset="0" >
 
68
           <cstring>Mod/Mesh</cstring>
 
69
          </property>
 
70
         </widget>
 
71
        </item>
 
72
        <item row="0" column="1" >
 
73
         <spacer>
 
74
          <property name="orientation" >
 
75
           <enum>Qt::Horizontal</enum>
 
76
          </property>
 
77
          <property name="sizeHint" >
 
78
           <size>
 
79
            <width>112</width>
 
80
            <height>20</height>
 
81
           </size>
 
82
          </property>
 
83
         </spacer>
 
84
        </item>
 
85
        <item row="1" column="1" >
 
86
         <widget class="Gui::PrefColorButton" name="buttonMeshColor" >
 
87
          <property name="color" >
 
88
           <color>
 
89
            <red>204</red>
 
90
            <green>204</green>
 
91
            <blue>204</blue>
 
92
           </color>
 
93
          </property>
 
94
          <property name="prefEntry" stdset="0" >
 
95
           <cstring>MeshColor</cstring>
 
96
          </property>
 
97
          <property name="prefPath" stdset="0" >
 
98
           <cstring>Mod/Mesh</cstring>
 
99
          </property>
 
100
         </widget>
 
101
        </item>
 
102
        <item row="0" column="0" >
 
103
         <widget class="Gui::PrefCheckBox" name="checkboxRendering" >
 
104
          <property name="text" >
 
105
           <string>Two-side rendering</string>
 
106
          </property>
 
107
          <property name="checked" >
 
108
           <bool>false</bool>
 
109
          </property>
 
110
          <property name="prefEntry" stdset="0" >
 
111
           <cstring>TwoSideRendering</cstring>
 
112
          </property>
 
113
          <property name="prefPath" stdset="0" >
 
114
           <cstring>Mod/Mesh</cstring>
 
115
          </property>
 
116
         </widget>
 
117
        </item>
 
118
        <item row="2" column="0" >
 
119
         <widget class="QLabel" name="labelBackfaceColor" >
 
120
          <property name="text" >
 
121
           <string>Backface color</string>
 
122
          </property>
 
123
         </widget>
 
124
        </item>
 
125
       </layout>
 
126
      </item>
 
127
      <item row="0" column="1" >
 
128
       <spacer>
 
129
        <property name="orientation" >
 
130
         <enum>Qt::Horizontal</enum>
 
131
        </property>
 
132
        <property name="sizeHint" >
 
133
         <size>
 
134
          <width>251</width>
 
135
          <height>20</height>
 
136
         </size>
 
137
        </property>
 
138
       </spacer>
 
139
      </item>
 
140
     </layout>
 
141
    </widget>
 
142
   </item>
 
143
   <item row="1" column="0" >
 
144
    <widget class="QGroupBox" name="GroupBox12" >
 
145
     <property name="title" >
 
146
      <string>Smoothing</string>
 
147
     </property>
 
148
     <layout class="QGridLayout" >
 
149
      <property name="margin" >
 
150
       <number>9</number>
 
151
      </property>
 
152
      <property name="spacing" >
 
153
       <number>6</number>
 
154
      </property>
 
155
      <item row="1" column="0" >
 
156
       <widget class="QLabel" name="labelAngle" >
 
157
        <property name="toolTip" >
 
158
         <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">This is the smallest angle between two faces where normals get calculated to do flat shading.&lt;/p>&lt;p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">If the angle between the normals of two neighbouring faces is less than the crease angle, the faces will be smoothshaded around their common edge.&lt;/p>&lt;/body>&lt;/html></string>
 
159
        </property>
 
160
        <property name="text" >
 
161
         <string>Crease angle</string>
 
162
        </property>
 
163
       </widget>
 
164
      </item>
 
165
      <item row="0" column="0" >
 
166
       <widget class="Gui::PrefCheckBox" name="checkboxNormal" >
 
167
        <property name="toolTip" >
 
168
         <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">&lt;span style=" font-weight:600;">Flat shading/Phong shading&lt;/span>&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Defines the appearance of surfaces.&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">With flat shading the surface normals are not defined per vertex that leads to a unreal appearance for curved surfaces while using Phong shading leads to a smoother appearance. &lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">If this option is set Phong shading is used, if it is unset flat shading is used.&lt;/p>&lt;/body>&lt;/html></string>
 
169
        </property>
 
170
        <property name="text" >
 
171
         <string>Define normal per vertex</string>
 
172
        </property>
 
173
        <property name="prefEntry" stdset="0" >
 
174
         <cstring>VertexPerNormals</cstring>
 
175
        </property>
 
176
        <property name="prefPath" stdset="0" >
 
177
         <cstring>Mod/Mesh</cstring>
 
178
        </property>
 
179
       </widget>
 
180
      </item>
 
181
      <item row="1" column="2" >
 
182
       <spacer>
 
183
        <property name="orientation" >
 
184
         <enum>Qt::Horizontal</enum>
 
185
        </property>
 
186
        <property name="sizeHint" >
 
187
         <size>
 
188
          <width>221</width>
 
189
          <height>20</height>
 
190
         </size>
 
191
        </property>
 
192
       </spacer>
 
193
      </item>
 
194
      <item row="1" column="1" >
 
195
       <widget class="Gui::PrefDoubleSpinBox" name="spinboxAngle" >
 
196
        <property name="enabled" >
 
197
         <bool>false</bool>
 
198
        </property>
 
199
        <property name="suffix" >
 
200
         <string> °</string>
 
201
        </property>
 
202
        <property name="maximum" >
 
203
         <double>180</double>
 
204
        </property>
 
205
        <property name="prefEntry" stdset="0" >
 
206
         <cstring>CreaseAngle</cstring>
 
207
        </property>
 
208
        <property name="prefPath" stdset="0" >
 
209
         <cstring>Mod/Mesh</cstring>
 
210
        </property>
 
211
       </widget>
 
212
      </item>
 
213
      <item row="2" column="0" colspan="3" >
 
214
       <widget class="QLabel" name="labelHint" >
 
215
        <property name="text" >
 
216
         <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">&lt;span style=" font-weight:600;">Hint&lt;/span>&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Defining the normals per vertex is also called &lt;span style=" font-style:italic;">Phong shading&lt;/span>&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt; font-style:italic;">&lt;span style=" font-style:normal;">while defining the normals per face is called &lt;/span>Flat shading&lt;span style=" font-style:normal;">.&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
 
217
        </property>
 
218
       </widget>
 
219
      </item>
 
220
     </layout>
 
221
    </widget>
 
222
   </item>
 
223
   <item row="2" column="0" >
 
224
    <spacer>
 
225
     <property name="orientation" >
 
226
      <enum>Qt::Vertical</enum>
 
227
     </property>
 
228
     <property name="sizeHint" >
 
229
      <size>
 
230
       <width>541</width>
 
231
       <height>41</height>
 
232
      </size>
 
233
     </property>
 
234
    </spacer>
 
235
   </item>
 
236
  </layout>
 
237
 </widget>
 
238
 <layoutdefault spacing="6" margin="11" />
 
239
 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
 
240
 <customwidgets>
 
241
  <customwidget>
 
242
   <class>Gui::PrefCheckBox</class>
 
243
   <extends>QCheckBox</extends>
 
244
   <header>Gui/PrefWidgets.h</header>
 
245
   <container>0</container>
 
246
   <pixmap></pixmap>
 
247
  </customwidget>
 
248
  <customwidget>
 
249
   <class>Gui::PrefDoubleSpinBox</class>
 
250
   <extends>QDoubleSpinBox</extends>
 
251
   <header>Gui/PrefWidgets.h</header>
 
252
   <container>0</container>
 
253
   <pixmap></pixmap>
 
254
  </customwidget>
 
255
  <customwidget>
 
256
   <class>Gui::PrefColorButton</class>
 
257
   <extends>Gui::ColorButton</extends>
 
258
   <header>Gui/PrefWidgets.h</header>
 
259
   <container>0</container>
 
260
   <pixmap></pixmap>
 
261
  </customwidget>
 
262
 </customwidgets>
 
263
 <tabstops>
 
264
  <tabstop>checkboxRendering</tabstop>
 
265
  <tabstop>buttonBackfaceColor</tabstop>
 
266
  <tabstop>checkboxNormal</tabstop>
 
267
  <tabstop>spinboxAngle</tabstop>
 
268
 </tabstops>
 
269
 <resources/>
 
270
 <connections>
 
271
  <connection>
 
272
   <sender>checkboxNormal</sender>
 
273
   <signal>toggled(bool)</signal>
 
274
   <receiver>spinboxAngle</receiver>
 
275
   <slot>setEnabled(bool)</slot>
 
276
   <hints>
 
277
    <hint type="sourcelabel" >
 
278
     <x>110</x>
 
279
     <y>147</y>
 
280
    </hint>
 
281
    <hint type="destinationlabel" >
 
282
     <x>266</x>
 
283
     <y>181</y>
 
284
    </hint>
 
285
   </hints>
 
286
  </connection>
 
287
  <connection>
 
288
   <sender>checkboxRendering</sender>
 
289
   <signal>toggled(bool)</signal>
 
290
   <receiver>buttonBackfaceColor</receiver>
 
291
   <slot>setEnabled(bool)</slot>
 
292
   <hints>
 
293
    <hint type="sourcelabel" >
 
294
     <x>93</x>
 
295
     <y>53</y>
 
296
    </hint>
 
297
    <hint type="destinationlabel" >
 
298
     <x>210</x>
 
299
     <y>71</y>
 
300
    </hint>
 
301
   </hints>
 
302
  </connection>
 
303
 </connections>
 
304
</ui>