Repository navigation
Expand file tree
/
Copy pathEditDialog.ui
More file actions
407 lines (406 loc) · 10.7 KB
/
Copy pathEditDialog.ui
File metadata and controls
407 lines (406 loc) · 10.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>EditDialog</class>
<widget class="QDialog" name="EditDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>618</width>
<height>382</height>
</rect>
</property>
<property name="windowTitle">
<string>Edit database cell</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="labelMode">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Mode:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboMode">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="whatsThis">
<string>This is the list of supported modes for the cell editor. Choose a mode for viewing or editing the data of the current cell.</string>
</property>
<item>
<property name="text">
<string>Text</string>
</property>
</item>
<item>
<property name="text">
<string>Binary</string>
</property>
</item>
<item>
<property name="text">
<string>Image</string>
</property>
</item>
<item>
<property name="text">
<string>JSON</string>
</property>
</item>
<item>
<property name="text">
<string>XML</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="buttonIndent">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Auto-format: pretty print on loading, compact on saving.</string>
</property>
<property name="statusTip">
<string>Auto-format: pretty print on loading, compact on saving.</string>
</property>
<property name="whatsThis">
<string>When enabled, the auto-format feature formats the data on loading, breaking the text in lines and indenting it for maximum readability. On data saving, the auto-format feature compacts the data removing end of lines, and unnecessary whitespace.</string>
</property>
<property name="text">
<string>Autoformat</string>
</property>
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/text_indent</normaloff>:/icons/text_indent</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonImport">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Import from file</string>
</property>
<property name="whatsThis">
<string>Opens a file dialog used to import any kind of data to this database cell.</string>
</property>
<property name="text">
<string>&Import</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonExport">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Export to file</string>
</property>
<property name="whatsThis">
<string>Opens a file dialog used to export the contents of this database cell to a file.</string>
</property>
<property name="text">
<string>&Export</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonNull">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Set this cell to NULL</string>
</property>
<property name="whatsThis">
<string>Erases the contents of the cell</string>
</property>
<property name="text">
<string>Set as &NULL</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QStackedWidget" name="editorStack">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="verticalLayout_4">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QTextEdit" name="editorText">
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="whatsThis">
<string>This area displays information about the data present in this database cell</string>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="editorBinary"/>
<widget class="QScrollArea" name="editorImageScrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>98</width>
<height>35</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="editorImage">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="editorSci">
<property name="whatsThis">
<string>This editor mode lets you edit JSON or XML data with syntax highlighting, automatic formatting and validation before saving.
Errors are indicated with a red squiggle underline.</string>
</property>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="labelType">
<property name="text">
<string>Type of data currently in cell</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelSize">
<property name="text">
<string>Size of data currently in table</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonApply">
<property name="toolTip">
<string>Apply data to cell [Ctrl+Return]</string>
</property>
<property name="whatsThis">
<string>This button saves the changes performed in the cell editor to the database cell.</string>
</property>
<property name="text">
<string>Apply</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<tabstops>
<tabstop>buttonExport</tabstop>
<tabstop>buttonNull</tabstop>
</tabstops>
<resources>
<include location="icons/icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonImport</sender>
<signal>clicked()</signal>
<receiver>EditDialog</receiver>
<slot>importData()</slot>
<hints>
<hint type="sourcelabel">
<x>400</x>
<y>28</y>
</hint>
<hint type="destinationlabel">
<x>60</x>
<y>0</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonExport</sender>
<signal>clicked()</signal>
<receiver>EditDialog</receiver>
<slot>exportData()</slot>
<hints>
<hint type="sourcelabel">
<x>488</x>
<y>51</y>
</hint>
<hint type="destinationlabel">
<x>162</x>
<y>17</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonApply</sender>
<signal>clicked()</signal>
<receiver>EditDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>605</x>
<y>358</y>
</hint>
<hint type="destinationlabel">
<x>241</x>
<y>406</y>
</hint>
</hints>
</connection>
<connection>
<sender>comboMode</sender>
<signal>currentIndexChanged(int)</signal>
<receiver>EditDialog</receiver>
<slot>editModeChanged(int)</slot>
<hints>
<hint type="sourcelabel">
<x>71</x>
<y>27</y>
</hint>
<hint type="destinationlabel">
<x>201</x>
<y>431</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonNull</sender>
<signal>clicked()</signal>
<receiver>EditDialog</receiver>
<slot>setNull()</slot>
<hints>
<hint type="sourcelabel">
<x>528</x>
<y>28</y>
</hint>
<hint type="destinationlabel">
<x>723</x>
<y>58</y>
</hint>
</hints>
</connection>
<connection>
<sender>editorText</sender>
<signal>textChanged()</signal>
<receiver>EditDialog</receiver>
<slot>editTextChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>191</y>
</hint>
<hint type="destinationlabel">
<x>339</x>
<y>335</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonIndent</sender>
<signal>toggled(bool)</signal>
<receiver>EditDialog</receiver>
<slot>setMustIndentAndCompact(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>309</x>
<y>22</y>
</hint>
<hint type="destinationlabel">
<x>308</x>
<y>190</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>importData()</slot>
<slot>exportData()</slot>
<slot>editTextChanged()</slot>
<slot>editModeChanged(int)</slot>
<slot>setNull()</slot>
</slots>
</ui>