|
1 <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> |
|
2 <class>EditBookForm</class> |
|
3 <include location="global" impldecl="in declaration">qsqlrecord.h</include> |
|
4 <include location="local" implDecl="in declaration">editbook.ui.h</include> |
|
5 <forward>class QSqlRecord;</forward> |
|
6 <variable>QMap<QString,int> authorMap;</variable> |
|
7 <layoutdefaults spacing="6" margin="11"/> |
|
8 <widget class="QDialog"> |
|
9 <property name="name"> |
|
10 <cstring>EditBookForm</cstring> |
|
11 </property> |
|
12 <property name="geometry"> |
|
13 <rect> |
|
14 <x>0</x> |
|
15 <y>0</y> |
|
16 <width>520</width> |
|
17 <height>369</height> |
|
18 </rect> |
|
19 </property> |
|
20 <property name="caption"> |
|
21 <string>Edit Books</string> |
|
22 </property> |
|
23 <vbox> |
|
24 <property name="name"> |
|
25 <cstring>unnamed</cstring> |
|
26 </property> |
|
27 <property name="margin"> |
|
28 <number>11</number> |
|
29 </property> |
|
30 <property name="spacing"> |
|
31 <number>6</number> |
|
32 </property> |
|
33 <widget class="QDataBrowser"> |
|
34 <property name="name"> |
|
35 <cstring>BookDataBrowser</cstring> |
|
36 </property> |
|
37 <property name="sort"> |
|
38 <stringlist> |
|
39 <string>title ASC</string> |
|
40 </stringlist> |
|
41 </property> |
|
42 <property name="database" stdset="0"> |
|
43 <stringlist> |
|
44 <string>(default)</string> |
|
45 <string>book</string> |
|
46 </stringlist> |
|
47 </property> |
|
48 <property name="frameworkCode" stdset="0"> |
|
49 <bool>true</bool> |
|
50 </property> |
|
51 <grid> |
|
52 <property name="name"> |
|
53 <cstring>unnamed</cstring> |
|
54 </property> |
|
55 <property name="margin"> |
|
56 <number>11</number> |
|
57 </property> |
|
58 <property name="spacing"> |
|
59 <number>6</number> |
|
60 </property> |
|
61 <widget class="QLayoutWidget" row="0" column="0"> |
|
62 <property name="name"> |
|
63 <cstring>Layout2</cstring> |
|
64 </property> |
|
65 <grid> |
|
66 <property name="name"> |
|
67 <cstring>unnamed</cstring> |
|
68 </property> |
|
69 <property name="margin"> |
|
70 <number>0</number> |
|
71 </property> |
|
72 <property name="spacing"> |
|
73 <number>6</number> |
|
74 </property> |
|
75 <widget class="QLabel" row="1" column="0"> |
|
76 <property name="name"> |
|
77 <cstring>labelPrice</cstring> |
|
78 </property> |
|
79 <property name="text"> |
|
80 <string>Price</string> |
|
81 </property> |
|
82 </widget> |
|
83 <widget class="QLabel" row="0" column="0"> |
|
84 <property name="name"> |
|
85 <cstring>labelTitle</cstring> |
|
86 </property> |
|
87 <property name="text"> |
|
88 <string>Title</string> |
|
89 </property> |
|
90 </widget> |
|
91 <widget class="QLineEdit" row="0" column="1"> |
|
92 <property name="name"> |
|
93 <cstring>QLineEditTitle</cstring> |
|
94 </property> |
|
95 <property name="database" stdset="0"> |
|
96 <stringlist> |
|
97 <string>(default)</string> |
|
98 <string>book</string> |
|
99 <string>title</string> |
|
100 </stringlist> |
|
101 </property> |
|
102 </widget> |
|
103 <widget class="QLineEdit" row="1" column="1"> |
|
104 <property name="name"> |
|
105 <cstring>QLineEditPrice</cstring> |
|
106 </property> |
|
107 <property name="database" stdset="0"> |
|
108 <stringlist> |
|
109 <string>(default)</string> |
|
110 <string>book</string> |
|
111 <string>price</string> |
|
112 </stringlist> |
|
113 </property> |
|
114 </widget> |
|
115 </grid> |
|
116 </widget> |
|
117 <widget class="QLayoutWidget" row="3" column="0"> |
|
118 <property name="name"> |
|
119 <cstring>Layout6</cstring> |
|
120 </property> |
|
121 <hbox> |
|
122 <property name="name"> |
|
123 <cstring>unnamed</cstring> |
|
124 </property> |
|
125 <property name="margin"> |
|
126 <number>0</number> |
|
127 </property> |
|
128 <property name="spacing"> |
|
129 <number>6</number> |
|
130 </property> |
|
131 <widget class="QPushButton"> |
|
132 <property name="name"> |
|
133 <cstring>PushButtonInsert</cstring> |
|
134 </property> |
|
135 <property name="text"> |
|
136 <string>&Insert</string> |
|
137 </property> |
|
138 </widget> |
|
139 <widget class="QPushButton"> |
|
140 <property name="name"> |
|
141 <cstring>PushButtonUpdate</cstring> |
|
142 </property> |
|
143 <property name="text"> |
|
144 <string>&Update</string> |
|
145 </property> |
|
146 <property name="default"> |
|
147 <bool>true</bool> |
|
148 </property> |
|
149 </widget> |
|
150 <widget class="QPushButton"> |
|
151 <property name="name"> |
|
152 <cstring>PushButtonDelete</cstring> |
|
153 </property> |
|
154 <property name="text"> |
|
155 <string>&Delete</string> |
|
156 </property> |
|
157 </widget> |
|
158 <widget class="QPushButton"> |
|
159 <property name="name"> |
|
160 <cstring>PushButtonClose</cstring> |
|
161 </property> |
|
162 <property name="text"> |
|
163 <string>&Close</string> |
|
164 </property> |
|
165 </widget> |
|
166 </hbox> |
|
167 </widget> |
|
168 <widget class="QLayoutWidget" row="2" column="0"> |
|
169 <property name="name"> |
|
170 <cstring>Layout3</cstring> |
|
171 </property> |
|
172 <hbox> |
|
173 <property name="name"> |
|
174 <cstring>unnamed</cstring> |
|
175 </property> |
|
176 <property name="margin"> |
|
177 <number>0</number> |
|
178 </property> |
|
179 <property name="spacing"> |
|
180 <number>6</number> |
|
181 </property> |
|
182 <widget class="QPushButton"> |
|
183 <property name="name"> |
|
184 <cstring>PushButtonFirst</cstring> |
|
185 </property> |
|
186 <property name="text"> |
|
187 <string>|< &First</string> |
|
188 </property> |
|
189 </widget> |
|
190 <widget class="QPushButton"> |
|
191 <property name="name"> |
|
192 <cstring>PushButtonPrev</cstring> |
|
193 </property> |
|
194 <property name="text"> |
|
195 <string><< &Prev</string> |
|
196 </property> |
|
197 </widget> |
|
198 <widget class="QPushButton"> |
|
199 <property name="name"> |
|
200 <cstring>PushButtonNext</cstring> |
|
201 </property> |
|
202 <property name="text"> |
|
203 <string>&Next >></string> |
|
204 </property> |
|
205 </widget> |
|
206 <widget class="QPushButton"> |
|
207 <property name="name"> |
|
208 <cstring>PushButtonLast</cstring> |
|
209 </property> |
|
210 <property name="text"> |
|
211 <string>&Last >|</string> |
|
212 </property> |
|
213 </widget> |
|
214 </hbox> |
|
215 </widget> |
|
216 <widget class="QLayoutWidget" row="1" column="0"> |
|
217 <property name="name"> |
|
218 <cstring>Layout6</cstring> |
|
219 </property> |
|
220 <hbox> |
|
221 <property name="name"> |
|
222 <cstring>unnamed</cstring> |
|
223 </property> |
|
224 <property name="margin"> |
|
225 <number>0</number> |
|
226 </property> |
|
227 <property name="spacing"> |
|
228 <number>6</number> |
|
229 </property> |
|
230 <widget class="QLabel"> |
|
231 <property name="name"> |
|
232 <cstring>TextLabel1</cstring> |
|
233 </property> |
|
234 <property name="text"> |
|
235 <string>Author</string> |
|
236 </property> |
|
237 </widget> |
|
238 <widget class="QComboBox"> |
|
239 <property name="name"> |
|
240 <cstring>ComboBoxAuthor</cstring> |
|
241 </property> |
|
242 <property name="sizePolicy"> |
|
243 <sizepolicy> |
|
244 <hsizetype>7</hsizetype> |
|
245 <vsizetype>0</vsizetype> |
|
246 <horstretch>0</horstretch> |
|
247 <verstretch>0</verstretch> |
|
248 </sizepolicy> |
|
249 </property> |
|
250 <property name="database" stdset="0"> |
|
251 <stringlist> |
|
252 <string>(default)</string> |
|
253 <string>author_view</string> |
|
254 <string>name</string> |
|
255 </stringlist> |
|
256 </property> |
|
257 </widget> |
|
258 </hbox> |
|
259 </widget> |
|
260 </grid> |
|
261 </widget> |
|
262 </vbox> |
|
263 </widget> |
|
264 <connections> |
|
265 <connection language="C++"> |
|
266 <sender>PushButtonFirst</sender> |
|
267 <signal>clicked()</signal> |
|
268 <receiver>BookDataBrowser</receiver> |
|
269 <slot>first()</slot> |
|
270 </connection> |
|
271 <connection language="C++"> |
|
272 <sender>BookDataBrowser</sender> |
|
273 <signal>firstRecordAvailable( bool )</signal> |
|
274 <receiver>PushButtonFirst</receiver> |
|
275 <slot>setEnabled(bool)</slot> |
|
276 </connection> |
|
277 <connection language="C++"> |
|
278 <sender>PushButtonPrev</sender> |
|
279 <signal>clicked()</signal> |
|
280 <receiver>BookDataBrowser</receiver> |
|
281 <slot>prev()</slot> |
|
282 </connection> |
|
283 <connection language="C++"> |
|
284 <sender>BookDataBrowser</sender> |
|
285 <signal>prevRecordAvailable( bool )</signal> |
|
286 <receiver>PushButtonPrev</receiver> |
|
287 <slot>setEnabled(bool)</slot> |
|
288 </connection> |
|
289 <connection language="C++"> |
|
290 <sender>PushButtonNext</sender> |
|
291 <signal>clicked()</signal> |
|
292 <receiver>BookDataBrowser</receiver> |
|
293 <slot>next()</slot> |
|
294 </connection> |
|
295 <connection language="C++"> |
|
296 <sender>BookDataBrowser</sender> |
|
297 <signal>nextRecordAvailable( bool )</signal> |
|
298 <receiver>PushButtonNext</receiver> |
|
299 <slot>setEnabled(bool)</slot> |
|
300 </connection> |
|
301 <connection language="C++"> |
|
302 <sender>PushButtonLast</sender> |
|
303 <signal>clicked()</signal> |
|
304 <receiver>BookDataBrowser</receiver> |
|
305 <slot>last()</slot> |
|
306 </connection> |
|
307 <connection language="C++"> |
|
308 <sender>BookDataBrowser</sender> |
|
309 <signal>lastRecordAvailable( bool )</signal> |
|
310 <receiver>PushButtonLast</receiver> |
|
311 <slot>setEnabled(bool)</slot> |
|
312 </connection> |
|
313 <connection language="C++"> |
|
314 <sender>PushButtonInsert</sender> |
|
315 <signal>clicked()</signal> |
|
316 <receiver>BookDataBrowser</receiver> |
|
317 <slot>insert()</slot> |
|
318 </connection> |
|
319 <connection language="C++"> |
|
320 <sender>PushButtonUpdate</sender> |
|
321 <signal>clicked()</signal> |
|
322 <receiver>BookDataBrowser</receiver> |
|
323 <slot>update()</slot> |
|
324 </connection> |
|
325 <connection language="C++"> |
|
326 <sender>PushButtonDelete</sender> |
|
327 <signal>clicked()</signal> |
|
328 <receiver>BookDataBrowser</receiver> |
|
329 <slot>del()</slot> |
|
330 </connection> |
|
331 <connection language="C++"> |
|
332 <sender>PushButtonClose</sender> |
|
333 <signal>clicked()</signal> |
|
334 <receiver>EditBookForm</receiver> |
|
335 <slot>accept()</slot> |
|
336 </connection> |
|
337 <connection language="C++"> |
|
338 <sender>BookDataBrowser</sender> |
|
339 <signal>primeUpdate(QSqlRecord*)</signal> |
|
340 <receiver>EditBookForm</receiver> |
|
341 <slot>primeUpdateBook(QSqlRecord*)</slot> |
|
342 </connection> |
|
343 <connection language="C++"> |
|
344 <sender>BookDataBrowser</sender> |
|
345 <signal>beforeUpdate(QSqlRecord*)</signal> |
|
346 <receiver>EditBookForm</receiver> |
|
347 <slot>beforeUpdateBook(QSqlRecord*)</slot> |
|
348 </connection> |
|
349 <connection language="C++"> |
|
350 <sender>BookDataBrowser</sender> |
|
351 <signal>beforeInsert(QSqlRecord*)</signal> |
|
352 <receiver>EditBookForm</receiver> |
|
353 <slot>beforeUpdateBook(QSqlRecord*)</slot> |
|
354 </connection> |
|
355 <connection language="C++"> |
|
356 <sender>BookDataBrowser</sender> |
|
357 <signal>primeInsert(QSqlRecord*)</signal> |
|
358 <receiver>EditBookForm</receiver> |
|
359 <slot>primeInsertBook(QSqlRecord*)</slot> |
|
360 </connection> |
|
361 <connection language="C++"> |
|
362 <sender>BookDataBrowser</sender> |
|
363 <signal>primeInsert(QSqlRecord*)</signal> |
|
364 <receiver>EditBookForm</receiver> |
|
365 <slot>primeInsertBook(QSqlRecord*)</slot> |
|
366 </connection> |
|
367 <slot access="protected" specifier="virtual" language="C++" returnType="void">init()</slot> |
|
368 <slot access="public" specifier="virtual" language="C++" returnType="void">beforeUpdateBook( QSqlRecord * buffer )</slot> |
|
369 <slot access="public" specifier="virtual" language="C++" returnType="void">mapAuthor( const QString & name, int & id, bool populate )</slot> |
|
370 <slot access="public" specifier="virtual" language="C++" returnType="void">primeInsertBook( QSqlRecord * buffer )</slot> |
|
371 <slot access="public" specifier="virtual" language="C++" returnType="void">primeUpdateBook( QSqlRecord * buffer )</slot> |
|
372 </connections> |
|
373 <tabstops> |
|
374 <tabstop>QLineEditTitle</tabstop> |
|
375 <tabstop>QLineEditPrice</tabstop> |
|
376 <tabstop>ComboBoxAuthor</tabstop> |
|
377 <tabstop>PushButtonFirst</tabstop> |
|
378 <tabstop>PushButtonPrev</tabstop> |
|
379 <tabstop>PushButtonNext</tabstop> |
|
380 <tabstop>PushButtonLast</tabstop> |
|
381 <tabstop>PushButtonInsert</tabstop> |
|
382 <tabstop>PushButtonUpdate</tabstop> |
|
383 <tabstop>PushButtonDelete</tabstop> |
|
384 <tabstop>PushButtonClose</tabstop> |
|
385 </tabstops> |
|
386 </UI> |