Added saving of alerts - unstable!!!
[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:12pt; font-weight:600;&quot;&gt;Warning:&lt;/span&gt;&lt;span style=&quot; 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-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_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="testButton">
105         <property name="text">
106          <string>Test sound</string>
107         </property>
108        </widget>
109       </item>
110       <item>
111        <widget class="QPushButton" name="OKButton">
112         <property name="text">
113          <string>Done</string>
114         </property>
115        </widget>
116       </item>
117       <item>
118        <spacer name="horizontalSpacer_2">
119         <property name="orientation">
120          <enum>Qt::Horizontal</enum>
121         </property>
122         <property name="sizeHint" stdset="0">
123          <size>
124           <width>40</width>
125           <height>20</height>
126          </size>
127         </property>
128        </spacer>
129       </item>
130      </layout>
131     </item>
132     <item>
133      <layout class="QHBoxLayout" name="horizontalLayout_3"/>
134     </item>
135    </layout>
136   </widget>
137  </widget>
138  <resources/>
139  <connections>
140   <connection>
141    <sender>CustomSoundRadioButton</sender>
142    <signal>toggled(bool)</signal>
143    <receiver>browseButton</receiver>
144    <slot>setEnabled(bool)</slot>
145    <hints>
146     <hint type="sourcelabel">
147      <x>649</x>
148      <y>50</y>
149     </hint>
150     <hint type="destinationlabel">
151      <x>737</x>
152      <y>225</y>
153     </hint>
154    </hints>
155   </connection>
156   <connection>
157    <sender>CustomSoundRadioButton</sender>
158    <signal>toggled(bool)</signal>
159    <receiver>lineEdit</receiver>
160    <slot>setEnabled(bool)</slot>
161    <hints>
162     <hint type="sourcelabel">
163      <x>441</x>
164      <y>53</y>
165     </hint>
166     <hint type="destinationlabel">
167      <x>196</x>
168      <y>229</y>
169     </hint>
170    </hints>
171   </connection>
172   <connection>
173    <sender>OKButton</sender>
174    <signal>clicked()</signal>
175    <receiver>SelectSoundDialog</receiver>
176    <slot>accept()</slot>
177    <hints>
178     <hint type="sourcelabel">
179      <x>382</x>
180      <y>251</y>
181     </hint>
182     <hint type="destinationlabel">
183      <x>495</x>
184      <y>250</y>
185     </hint>
186    </hints>
187   </connection>
188  </connections>
189 </ui>