summaryrefslogtreecommitdiffstats
path: root/kdat/OptionsDlgWidget.ui
blob: b157424327e85de60c65c4b550fc86a06f071fdc (plain)
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
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>OptionsDlgWidget</class>
<author>Michael Pyne</author>
<widget class="TQWidget">
    <property name="name">
        <cstring>OptionsDlgWidget</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>325</width>
            <height>332</height>
        </rect>
    </property>
    <property name="caption">
        <string>Options Widget</string>
    </property>
    <hbox>
        <property name="name">
            <cstring>unnamed</cstring>
        </property>
        <widget class="TQLayoutWidget">
            <property name="name">
                <cstring>layout4</cstring>
            </property>
            <vbox>
                <property name="name">
                    <cstring>unnamed</cstring>
                </property>
                <property name="margin">
                    <number>0</number>
                </property>
                <widget class="TQLayoutWidget">
                    <property name="name">
                        <cstring>layout5</cstring>
                    </property>
                    <grid>
                        <property name="name">
                            <cstring>unnamed</cstring>
                        </property>
                        <widget class="KIntSpinBox" row="0" column="1">
                            <property name="name">
                                <cstring>_defaultTapeSize</cstring>
                            </property>
                            <property name="minimumSize">
                                <size>
                                    <width>96</width>
                                    <height>0</height>
                                </size>
                            </property>
                            <property name="maxValue">
                                <number>4096</number>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>This setting determines the capacity that KDat assumes your backup tapes to be.  This is used when formatting the tapes.</string>
                            </property>
                        </widget>
                        <widget class="KIntSpinBox" row="1" column="1">
                            <property name="name">
                                <cstring>_tapeBlockSize</cstring>
                            </property>
                            <property name="minimumSize">
                                <size>
                                    <width>96</width>
                                    <height>0</height>
                                </size>
                            </property>
                            <property name="maxValue">
                                <number>262144</number>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>Tape drives read and write data in individual blocks.  This setting controls the size of each block, and should be set to your tape drive's block size.  For floppy tape drives this should be set to &lt;b&gt;10240&lt;/b&gt; bytes.</string>
                            </property>
                        </widget>
                        <widget class="KComboBox" row="0" column="2">
                            <item>
                                <property name="text">
                                    <string>MB</string>
                                </property>
                            </item>
                            <item>
                                <property name="text">
                                    <string>GB</string>
                                </property>
                            </item>
                            <property name="name">
                                <cstring>_defaultTapeSizeUnits</cstring>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string></string>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>This option chooses whether the default tape size to the left is in megabytes (MB) or gigabytes (GB).</string>
                            </property>
                        </widget>
                        <widget class="TQLabel" row="1" column="2">
                            <property name="name">
                                <cstring>textLabel3</cstring>
                            </property>
                            <property name="text">
                                <string>bytes</string>
                            </property>
                        </widget>
                        <widget class="TQLabel" row="1" column="0">
                            <property name="name">
                                <cstring>textLabel2</cstring>
                            </property>
                            <property name="text">
                                <string>Tape block size:</string>
                            </property>
                            <property name="buddy" stdset="0">
                                <cstring>_tapeBlockSize</cstring>
                            </property>
                        </widget>
                        <widget class="TQLabel" row="0" column="0">
                            <property name="name">
                                <cstring>textLabel1</cstring>
                            </property>
                            <property name="text">
                                <string>Default tape size:</string>
                            </property>
                            <property name="buddy" stdset="0">
                                <cstring>_defaultTapeSize</cstring>
                            </property>
                        </widget>
                    </grid>
                </widget>
                <widget class="TQLayoutWidget">
                    <property name="name">
                        <cstring>layout1</cstring>
                    </property>
                    <grid>
                        <property name="name">
                            <cstring>unnamed</cstring>
                        </property>
                        <widget class="KPushButton" row="1" column="2">
                            <property name="name">
                                <cstring>browseTarCommand</cstring>
                            </property>
                            <property name="text">
                                <string>...</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>Browse for the tar command.</string>
                            </property>
                        </widget>
                        <widget class="KLineEdit" row="0" column="1">
                            <property name="name">
                                <cstring>_tapeDevice</cstring>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>The location in the filesystem of the &lt;em&gt;non-rewinding&lt;/em&gt; tape device.  The default is &lt;b&gt;/dev/tape&lt;/b&gt;.</string>
                            </property>
                        </widget>
                        <widget class="TQLabel" row="1" column="0">
                            <property name="name">
                                <cstring>textLabel5</cstring>
                            </property>
                            <property name="text">
                                <string>Tar command:</string>
                            </property>
                            <property name="buddy" stdset="0">
                                <cstring>_tarCommand</cstring>
                            </property>
                        </widget>
                        <widget class="KPushButton" row="0" column="2">
                            <property name="name">
                                <cstring>browseTapeDevice</cstring>
                            </property>
                            <property name="text">
                                <string>...</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>Browse for the tape device.</string>
                            </property>
                        </widget>
                        <widget class="KLineEdit" row="1" column="1">
                            <property name="name">
                                <cstring>_tarCommand</cstring>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>This setting controls the command that KDat uses to perform the tape backup.  The full path should be given.  The default is &lt;b&gt;tar&lt;/b&gt;.</string>
                            </property>
                        </widget>
                        <widget class="TQLabel" row="0" column="0">
                            <property name="name">
                                <cstring>textLabel4</cstring>
                            </property>
                            <property name="text">
                                <string>Tape device:</string>
                            </property>
                            <property name="buddy" stdset="0">
                                <cstring>_tapeDevice</cstring>
                            </property>
                        </widget>
                    </grid>
                </widget>
                <widget class="TQButtonGroup">
                    <property name="name">
                        <cstring>buttonGroup1</cstring>
                    </property>
                    <property name="title">
                        <string>Tape Drive Options</string>
                    </property>
                    <vbox>
                        <property name="name">
                            <cstring>unnamed</cstring>
                        </property>
                        <widget class="TQCheckBox">
                            <property name="name">
                                <cstring>_loadOnMount</cstring>
                            </property>
                            <property name="text">
                                <string>Load tape on mount</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>&lt;qt&gt;Issue an &lt;tt&gt;mtload&lt;/tt&gt; command prior to mounting the tape.&lt;/qt&gt;</string>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>This command issues an &lt;tt&gt;mtload&lt;/tt&gt; command to the tape device before trying to mount it.

This is required by some tape drives.</string>
                            </property>
                        </widget>
                        <widget class="TQCheckBox">
                            <property name="name">
                                <cstring>_lockOnMount</cstring>
                            </property>
                            <property name="text">
                                <string>Lock tape drive on mount</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>Disable the eject button after mounting the tape.</string>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>This option makes KDat try to disable the eject button on the tape drive after the tape has been mounted.

This doesn't work for all tape drives.</string>
                            </property>
                        </widget>
                        <widget class="TQCheckBox">
                            <property name="name">
                                <cstring>_ejectOnUnmount</cstring>
                            </property>
                            <property name="text">
                                <string>Eject tape on unmount</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>Try to eject the tape after it is unmounted.  Don't use this for ftape.</string>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>Try to eject the tape after it has been unmounted.

This option should not be used for floppy-tape drives.</string>
                            </property>
                        </widget>
                        <widget class="TQCheckBox">
                            <property name="name">
                                <cstring>_variableBlockSize</cstring>
                            </property>
                            <property name="text">
                                <string>Variable block size</string>
                            </property>
                            <property name="toolTip" stdset="0">
                                <string>Enable variable-block size support in the tape drive.</string>
                            </property>
                            <property name="whatsThis" stdset="0">
                                <string>Some tape drives support different sizes of the data block.  With this option, KDat will attempt to enable that support.

You must still specify the block size.</string>
                            </property>
                        </widget>
                    </vbox>
                </widget>
                <spacer>
                    <property name="name">
                        <cstring>spacer1</cstring>
                    </property>
                    <property name="orientation">
                        <enum>Vertical</enum>
                    </property>
                    <property name="sizeType">
                        <enum>Expanding</enum>
                    </property>
                    <property name="sizeHint">
                        <size>
                            <width>20</width>
                            <height>0</height>
                        </size>
                    </property>
                </spacer>
            </vbox>
        </widget>
    </hbox>
</widget>
<connections>
    <connection>
        <sender>_defaultTapeSize</sender>
        <signal>valueChanged(int)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_tapeBlockSize</sender>
        <signal>valueChanged(int)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_defaultTapeSizeUnits</sender>
        <signal>activated(int)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_tapeDevice</sender>
        <signal>textChanged(const TQString&amp;)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_tarCommand</sender>
        <signal>textChanged(const TQString&amp;)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_loadOnMount</sender>
        <signal>toggled(bool)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_lockOnMount</sender>
        <signal>toggled(bool)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_ejectOnUnmount</sender>
        <signal>toggled(bool)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>_variableBlockSize</sender>
        <signal>toggled(bool)</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotValueChanged()</slot>
    </connection>
    <connection>
        <sender>browseTapeDevice</sender>
        <signal>clicked()</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotBrowseTapeDevice()</slot>
    </connection>
    <connection>
        <sender>browseTarCommand</sender>
        <signal>clicked()</signal>
        <receiver>OptionsDlgWidget</receiver>
        <slot>slotBrowseTarCommand()</slot>
    </connection>
</connections>
<includes>
    <include location="global" impldecl="in implementation">tdeapplication.h</include>
    <include location="global" impldecl="in implementation">tdefiledialog.h</include>
    <include location="global" impldecl="in implementation">tdemessagebox.h</include>
    <include location="global" impldecl="in implementation">tdeglobal.h</include>
    <include location="global" impldecl="in implementation">kdialog.h</include>
    <include location="local" impldecl="in implementation">OptionsDlgWidget.ui.h</include>
</includes>
<Q_SIGNALS>
    <signal>doBrowseTapeDevice()</signal>
    <signal>doBrowseTarCommand()</signal>
    <signal>valueChanged()</signal>
</Q_SIGNALS>
<Q_SLOTS>
    <slot access="protected">slotValueChanged()</slot>
    <slot access="protected">slotBrowseTapeDevice()</slot>
    <slot access="protected">slotBrowseTarCommand()</slot>
</Q_SLOTS>
<layoutdefaults spacing="11" margin="6"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>