summaryrefslogtreecommitdiffstats
path: root/ksnapshot/ksnapshotwidget.ui
blob: 86a2e4e2225e5b73a929bdfc5a247f55001fd29f (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
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KSnapshotWidget</class>
<widget class="TQWidget">
    <property name="name">
        <cstring>KSnapshotWidget</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>356</width>
            <height>226</height>
        </rect>
    </property>
    <grid>
        <property name="name">
            <cstring>unnamed</cstring>
        </property>
        <property name="margin">
            <number>0</number>
        </property>
        <widget class="KSnapshotPreview" row="0" column="0" rowspan="1" colspan="3">
            <property name="name">
                <cstring>lblImage</cstring>
            </property>
            <property name="minimumSize">
                <size>
                    <width>200</width>
                    <height>130</height>
                </size>
            </property>
            <property name="whatsThis" stdset="0">
                <string>This is a preview of the current snapshot.

The image can be dragged to another application or document to copy the full screenshot there. Try it with the Konqueror file manager.

You can also copy the image to the clipboard by pressing Ctrl+C.</string>
            </property>
        </widget>
        <widget class="Line" row="1" column="0" rowspan="1" colspan="4">
            <property name="name">
                <cstring>line1</cstring>
            </property>
            <property name="frameShape">
                <enum>HLine</enum>
            </property>
            <property name="frameShadow">
                <enum>Sunken</enum>
            </property>
            <property name="orientation">
                <enum>Horizontal</enum>
            </property>
        </widget>
        <widget class="TQSpinBox" row="3" column="1">
            <property name="name">
                <cstring>spinDelay</cstring>
            </property>
            <property name="suffix">
                <string> sec</string>
            </property>
            <property name="specialValueText">
                <string>No delay</string>
            </property>
            <property name="toolTip" stdset="0">
                <string>Snapshot delay in seconds</string>
            </property>
            <property name="whatsThis" stdset="0">
                <string>&lt;qt&gt;
This is the number of seconds to wait after clicking the &lt;i&gt;New Snapshot&lt;/i&gt; button before taking the snapshot.
&lt;p&gt;
This is very useful for getting windows, menus and other items on the screen set up just the way you want.
&lt;p&gt;
If &lt;i&gt;no delay&lt;/i&gt; is set, the program will wait for a mouse click before taking a snapshot.
&lt;/p&gt;
&lt;/qt&gt;</string>
            </property>
        </widget>
        <widget class="TQLabel" row="3" column="0">
            <property name="name">
                <cstring>lblDelay</cstring>
            </property>
            <property name="text">
                <string>Snapshot &amp;delay:</string>
            </property>
            <property name="buddy" stdset="0">
                <cstring>spinDelay</cstring>
            </property>
        </widget>
        <widget class="TQLabel" row="2" column="0">
            <property name="name">
                <cstring>textLabel1</cstring>
            </property>
            <property name="text">
                <string>Cap&amp;ture mode:</string>
            </property>
            <property name="buddy" stdset="0">
                <cstring>comboMode</cstring>
            </property>
        </widget>
        <spacer row="3" column="2" rowspan="1" colspan="2">
            <property name="name">
                <cstring>Spacer1</cstring>
            </property>
            <property name="orientation">
                <enum>Horizontal</enum>
            </property>
            <property name="sizeType">
                <enum>Expanding</enum>
            </property>
            <property name="sizeHint">
                <size>
                    <width>156</width>
                    <height>16</height>
                </size>
            </property>
        </spacer>
        <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="4">
            <property name="name">
                <cstring>cbIncludeDecorations</cstring>
            </property>
            <property name="text">
                <string>Include &amp;window decorations</string>
            </property>
            <property name="checked">
                <bool>true</bool>
            </property>
            <property name="whatsThis" stdset="0">
                <string>When enabled, snapshot of a window will also include the window decorations</string>
            </property>
        </widget>
        <widget class="TQComboBox" row="2" column="1" rowspan="1" colspan="3">
            <item>
                <property name="text">
                    <string>Full Screen</string>
                </property>
            </item>
            <item>
                <property name="text">
                    <string>Window Under Cursor</string>
                </property>
            </item>
            <item>
                <property name="text">
                    <string>Region</string>
                </property>
            </item>
            <item>
                <property name="text">
                    <string>Section of Window</string>
                </property>
            </item>
            <property name="name">
                <cstring>comboMode</cstring>
            </property>
            <property name="whatsThis" stdset="0">
                <string>&lt;qt&gt;Using this menu, you can select from the four following snapshot modes:
&lt;p&gt;
&lt;b&gt;Full Screen&lt;/b&gt; - captures the entire desktop.&lt;br&gt;
&lt;b&gt;Window Under Cursor&lt;/b&gt; - captures only the window (or menu) that is under the mouse cursor when the snapshot is taken.&lt;br&gt;
&lt;b&gt;Region&lt;/b&gt; - captures only the region of the desktop that you specify. When taking a new snapshot in this mode you will be able to select any area of the screen by clicking and dragging the mouse.&lt;/p&gt;
&lt;b&gt;Section of Window&lt;/b&gt; - captures only a section of the window. When taking a new snapshot in this mode you will be able to select any child window by moving the mouse over it.&lt;/p&gt;&lt;/qt&gt;</string>
            </property>
        </widget>
        <widget class="TQLayoutWidget" row="0" column="3">
            <property name="name">
                <cstring>tqlayout1</cstring>
            </property>
            <vbox>
                <property name="name">
                    <cstring>unnamed</cstring>
                </property>
                <widget class="KPushButton">
                    <property name="name">
                        <cstring>btnNew</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;New Snapshot</string>
                    </property>
                    <property name="iconSet">
                        <iconset>"ksnapshot", 32</iconset>
                    </property>
                    <property name="whatsThis" stdset="0">
                        <string>Click this button to take a new snapshot.</string>
                    </property>
                </widget>
                <spacer>
                    <property name="name">
                        <cstring>Spacer6</cstring>
                    </property>
                    <property name="orientation">
                        <enum>Vertical</enum>
                    </property>
                    <property name="sizeType">
                        <enum>Expanding</enum>
                    </property>
                    <property name="sizeHint">
                        <size>
                            <width>16</width>
                            <height>16</height>
                        </size>
                    </property>
                </spacer>
                <widget class="KPushButton">
                    <property name="name">
                        <cstring>btnSave</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;Save As...</string>
                    </property>
                    <property name="iconSet">
                        <iconset>"filesave"</iconset>
                    </property>
                    <property name="whatsThis" stdset="0">
                        <string>Click this button to save the current snapshot. To quickly save the snapshot without showing the file dialog, press Ctrl+Shift+S. The filename is automatically incremented after each save.</string>
                    </property>
                </widget>
                <widget class="KPushButton">
                    <property name="name">
                        <cstring>btnCopy</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;Copy to Clipboard</string>
                    </property>
                    <property name="iconSet">
                        <iconset>"editcopy"</iconset>
                    </property>
                    <property name="whatsThis" stdset="0">
                        <string>Click this button to copy the current snapshot to the clipboard.</string>
                    </property>
                </widget>
                <widget class="KPushButton">
                    <property name="name">
                        <cstring>btnPrint</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;Print...</string>
                    </property>
                    <property name="iconSet">
                        <iconset>"fileprint"</iconset>
                    </property>
                    <property name="whatsThis" stdset="0">
                        <string>Click this button to print the current screenshot.</string>
                    </property>
                </widget>
            </vbox>
        </widget>
    </grid>
</widget>
<customwidgets>
    <customwidget>
        <class>KSnapshotPreview</class>
        <header location="local">ksnapshot.h</header>
        <sizehint>
            <width>-1</width>
            <height>-1</height>
        </sizehint>
        <container>0</container>
        <sizepolicy>
            <hordata>5</hordata>
            <verdata>5</verdata>
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
        </sizepolicy>
        <pixmap>image0</pixmap>
        <signal>startDrag()</signal>
    </customwidget>
</customwidgets>
<images>
    <image name="image0">
        <data format="PNG" length="660">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000025b49444154789cb595bf4b1b6118c73f962bbc070e115af006210107f52fa8b18b071dbb445ca48bb8199c544a8b53b153092e3ad9d8ad53c962390a2da6507227441207e10296be190a774330070af74202760889899e3f22f50bc7ddfb72efe7799eef7bcf7b0305bbc06d9a4a4e9d5f9e2bd885819bd63cba0ff4a6f9eec800e7fffbd2da01fed81ff1a48d52014213b715d22b3d060d853cdce1d587d65407ec491b79b8d31fb02d0d2ea7d2012b15007422f6ab2f6f04a0ae82bbcb3f3939416882e02ca07454c2dab5086a01c9e749e2237174a1230605524ab29fb2e47fe431c652c8a3cf57c1ddca6e67f16b3ef62f1be7c0616e768ecdad4d8686860008c31067df415625beef475610095e7dbddaf3865db4d9dade223d9fc6adb8acbd5ba37c502608028488dee84830407c344e7a298daee90c3f1d263196400c0adc631773da64617e81dcd71caaaeb0be5977032f2e2d32f37206f385090de0319dbb528ae4641273da647c7c1c599591e06b3b2f24243c0d5b830678358ff03444fe9658df2dc2d390443c81eff5e1b1b56b613c3198189d20168b213481e77b88b868d95171c9ede6281f96b18bf6ddc1fe5f1fafe6513fabb7364783bdfc1efaa08e5b7129154b4c3e9b24359ba21ed4717e3a77b3423515eeb18bac4a6455a29a0a73da445624a56209236eb43eb326a497d29119477bac4179bf8c936f65a2ce14c6b0c1f2ea32ebefd7498c24b08b362b6f57709cabd9f65aa1c72e464d088280cc4686cc462672615b6d1b841ebb06dc50085a3d6f8ca56e845d96d06304f56a34f8e264533d3ddf979a5dcf0f75d0dffa6bbaaf1e0cfc0ff3922877348d5d5a0000000049454e44ae426082</data>
    </image>
</images>
<connections>
    <connection>
        <sender>comboMode</sender>
        <signal>activated(int)</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotModeChanged(int)</slot>
    </connection>
    <connection>
        <sender>btnNew</sender>
        <signal>clicked()</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotNewClicked()</slot>
    </connection>
    <connection>
        <sender>btnPrint</sender>
        <signal>clicked()</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotPrintClicked()</slot>
    </connection>
    <connection>
        <sender>btnSave</sender>
        <signal>clicked()</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotSaveClicked()</slot>
    </connection>
    <connection>
        <sender>btnCopy</sender>
        <signal>clicked()</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotCopyClicked()</slot>
    </connection>
    <connection>
        <sender>lblImage</sender>
        <signal>startDrag()</signal>
        <receiver>KSnapshotWidget</receiver>
        <slot>slotStartDrag()</slot>
    </connection>
</connections>
<tabstops>
    <tabstop>btnNew</tabstop>
    <tabstop>btnSave</tabstop>
    <tabstop>btnCopy</tabstop>
    <tabstop>btnPrint</tabstop>
    <tabstop>comboMode</tabstop>
    <tabstop>spinDelay</tabstop>
    <tabstop>cbIncludeDecorations</tabstop>
</tabstops>
<includes>
    <include location="global" impldecl="in implementation">kdialog.h</include>
    <include location="global" impldecl="in implementation">kiconloader.h</include>
    <include location="global" impldecl="in implementation">kglobalsettings.h</include>
    <include location="local" impldecl="in implementation">ksnapshotwidget.ui.h</include>
</includes>
<Q_SIGNALS>
    <signal>newClicked()</signal>
    <signal>saveClicked()</signal>
    <signal>copyClicked()</signal>
    <signal>printClicked()</signal>
    <signal>startImageDrag()</signal>
</Q_SIGNALS>
<Q_SLOTS>
    <slot access="protected" specifier="non virtual">slotModeChanged( int mode )</slot>
    <slot access="protected" specifier="non virtual">slotNewClicked()</slot>
    <slot access="protected" specifier="non virtual">slotSaveClicked()</slot>
    <slot access="protected" specifier="non virtual">slotCopyClicked()</slot>
    <slot access="protected" specifier="non virtual">slotPrintClicked()</slot>
    <slot access="protected" specifier="non virtual">slotStartDrag()</slot>
    <slot specifier="non virtual" returnType="int">previewWidth()</slot>
    <slot specifier="non virtual" returnType="int">previewHeight()</slot>
</Q_SLOTS>
<functions>
    <function specifier="non virtual">setPreview( const TQPixmap &amp; pm )</function>
    <function specifier="non virtual">setDelay( int i )</function>
    <function specifier="non virtual">setIncludeDecorations( bool b )</function>
    <function specifier="non virtual">setMode( int mode )</function>
    <function specifier="non virtual" returnType="int">delay()</function>
    <function specifier="non virtual" returnType="bool">includeDecorations()</function>
    <function specifier="non virtual" returnType="int">mode()</function>
    <function specifier="non virtual" returnType="TQPixmap">preview()</function>
</functions>
<pixmapfunction>SmallIconSet</pixmapfunction>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
    <includehint>kpushbutton.h</includehint>
    <includehint>kpushbutton.h</includehint>
    <includehint>kpushbutton.h</includehint>
</includehints>
</UI>