Bugfixes
[kitchenalert] / src / selectsounddialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>SelectSoundDialog</class>
4  <widget class="QDialog" name="SelectSoundDialog">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>770</width>
10     <height>336</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>Select the alarm sound for KitchenAlert</string>
15   </property>
16   <widget class="QWidget" name="verticalLayoutWidget">
17    <property name="geometry">
18     <rect>
19      <x>10</x>
20      <y>14</y>
21      <width>751</width>
22      <height>311</height>
23     </rect>
24    </property>
25    <layout class="QVBoxLayout" name="verticalLayout">
26     <item>
27      <layout class="QHBoxLayout" name="horizontalLayout_2">
28       <item>
29        <widget class="QRadioButton" name="DefaultSoundRadioButton">
30         <property name="text">
31          <string>Use the default sound</string>
32         </property>
33        </widget>
34       </item>
35       <item>
36        <widget class="QRadioButton" name="CustomSoundRadioButton">
37         <property name="text">
38          <string>Use a custom sound</string>
39         </property>
40        </widget>
41       </item>
42      </layout>
43     </item>
44     <item>
45      <widget class="QTextBrowser" name="textBrowser">
46       <property name="minimumSize">
47        <size>
48         <width>401</width>
49         <height>0</height>
50        </size>
51       </property>
52       <property name="font">
53        <font>
54         <pointsize>16</pointsize>
55        </font>
56       </property>
57       <property name="html">
58        <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
59 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
60 p, li { white-space: pre-wrap; }
61 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:16pt; font-weight:400; font-style:normal;&quot;&gt;
62 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:12pt; font-weight:600;&quot;&gt;Warning:&lt;/span&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:12pt;&quot;&gt; choosing a sound file inside the &amp;quot;N900&amp;quot; folder will prevent mounting it outside the device when KitchenAlert is running and the sound from playing if the folder has been mounted out before starting KitchenAlert.&lt;/span&gt;&lt;/p&gt;
63 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:12pt;&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
64       </property>
65      </widget>
66     </item>
67     <item>
68      <layout class="QHBoxLayout" name="horizontalLayout">
69       <item>
70        <widget class="QLabel" name="label">
71         <property name="text">
72          <string>Select a sound file:</string>
73         </property>
74        </widget>
75       </item>
76       <item>
77        <widget class="QLineEdit" name="lineEdit"/>
78       </item>
79       <item>
80        <widget class="QPushButton" name="browseButton">
81         <property name="text">
82          <string>Browse</string>
83         </property>
84        </widget>
85       </item>
86      </layout>
87     </item>
88     <item>
89      <layout class="QHBoxLayout" name="horizontalLayout_5">
90       <item>
91        <spacer name="horizontalSpacer_4">
92         <property name="orientation">
93          <enum>Qt::Horizontal</enum>
94         </property>
95         <property name="sizeHint" stdset="0">
96          <size>
97           <width>40</width>
98           <height>20</height>
99          </size>
100         </property>
101        </spacer>
102       </item>
103       <item>
104        <widget class="QPushButton" name="TestButton">
105         <property name="text">
106          <string>Test sound</string>
107         </property>
108        </widget>
109       </item>
110       <item>
111        <spacer name="horizontalSpacer_3">
112         <property name="orientation">
113          <enum>Qt::Horizontal</enum>
114         </property>
115         <property name="sizeHint" stdset="0">
116          <size>
117           <width>40</width>
118           <height>20</height>
119          </size>
120         </property>
121        </spacer>
122       </item>
123      </layout>
124     </item>
125     <item>
126      <layout class="QHBoxLayout" name="horizontalLayout_4">
127       <item>
128        <spacer name="horizontalSpacer">
129         <property name="orientation">
130          <enum>Qt::Horizontal</enum>
131         </property>
132         <property name="sizeHint" stdset="0">
133          <size>
134           <width>40</width>
135           <height>20</height>
136          </size>
137         </property>
138        </spacer>
139       </item>
140       <item>
141        <widget class="QPushButton" name="OKButton">
142         <property name="text">
143          <string>Done</string>
144         </property>
145        </widget>
146       </item>
147       <item>
148        <spacer name="horizontalSpacer_2">
149         <property name="orientation">
150          <enum>Qt::Horizontal</enum>
151         </property>
152         <property name="sizeHint" stdset="0">
153          <size>
154           <width>40</width>
155           <height>20</height>
156          </size>
157         </property>
158        </spacer>
159       </item>
160      </layout>
161     </item>
162     <item>
163      <layout class="QHBoxLayout" name="horizontalLayout_3"/>
164     </item>
165    </layout>
166   </widget>
167  </widget>
168  <resources/>
169  <connections>
170   <connection>
171    <sender>CustomSoundRadioButton</sender>
172    <signal>toggled(bool)</signal>
173    <receiver>browseButton</receiver>
174    <slot>setEnabled(bool)</slot>
175    <hints>
176     <hint type="sourcelabel">
177      <x>649</x>
178      <y>50</y>
179     </hint>
180     <hint type="destinationlabel">
181      <x>737</x>
182      <y>225</y>
183     </hint>
184    </hints>
185   </connection>
186   <connection>
187    <sender>CustomSoundRadioButton</sender>
188    <signal>toggled(bool)</signal>
189    <receiver>lineEdit</receiver>
190    <slot>setEnabled(bool)</slot>
191    <hints>
192     <hint type="sourcelabel">
193      <x>441</x>
194      <y>53</y>
195     </hint>
196     <hint type="destinationlabel">
197      <x>196</x>
198      <y>229</y>
199     </hint>
200    </hints>
201   </connection>
202   <connection>
203    <sender>OKButton</sender>
204    <signal>clicked()</signal>
205    <receiver>SelectSoundDialog</receiver>
206    <slot>accept()</slot>
207    <hints>
208     <hint type="sourcelabel">
209      <x>382</x>
210      <y>251</y>
211     </hint>
212     <hint type="destinationlabel">
213      <x>495</x>
214      <y>250</y>
215     </hint>
216    </hints>
217   </connection>
218  </connections>
219 </ui>