Ready to be packaged
[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:'Sans Serif'; 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-size:9pt; font-weight:600;&quot;&gt;Warning:&lt;/span&gt;&lt;span style=&quot; font-size:9pt;&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-size:9pt;&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_4">
90       <item>
91        <spacer name="horizontalSpacer">
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="OKButton">
105         <property name="text">
106          <string>Done</string>
107         </property>
108        </widget>
109       </item>
110       <item>
111        <spacer name="horizontalSpacer_2">
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_3"/>
127     </item>
128    </layout>
129   </widget>
130  </widget>
131  <resources/>
132  <connections>
133   <connection>
134    <sender>CustomSoundRadioButton</sender>
135    <signal>toggled(bool)</signal>
136    <receiver>browseButton</receiver>
137    <slot>setEnabled(bool)</slot>
138    <hints>
139     <hint type="sourcelabel">
140      <x>649</x>
141      <y>50</y>
142     </hint>
143     <hint type="destinationlabel">
144      <x>737</x>
145      <y>225</y>
146     </hint>
147    </hints>
148   </connection>
149   <connection>
150    <sender>CustomSoundRadioButton</sender>
151    <signal>toggled(bool)</signal>
152    <receiver>lineEdit</receiver>
153    <slot>setEnabled(bool)</slot>
154    <hints>
155     <hint type="sourcelabel">
156      <x>441</x>
157      <y>53</y>
158     </hint>
159     <hint type="destinationlabel">
160      <x>196</x>
161      <y>229</y>
162     </hint>
163    </hints>
164   </connection>
165   <connection>
166    <sender>OKButton</sender>
167    <signal>clicked()</signal>
168    <receiver>SelectSoundDialog</receiver>
169    <slot>accept()</slot>
170    <hints>
171     <hint type="sourcelabel">
172      <x>382</x>
173      <y>251</y>
174     </hint>
175     <hint type="destinationlabel">
176      <x>495</x>
177      <y>250</y>
178     </hint>
179    </hints>
180   </connection>
181  </connections>
182 </ui>