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