Debian Codegraph @

modules/FvwmScript/Scripts/FvwmScript-ScreenDump

raw
1 WindowTitle {Screen Grabber}
2 WindowSize 360 360 # Size
3 #WindowPosition 191 50 # Position
4 #ForeColor {black}
5 #BackColor {grey85}
6 #ShadowColor {grey55}
7 #HilightColor {grey100}
8 #Font -adobe-helvetica-bold-r-*-*-12-*
9
10 Init
11 Begin
12 WarpPointer 1
13 Set $Ext = {.gif}
14 Set $Format = {| ppmtogif}
15 End
16
17 Widget 1
18 Property
19 Size 50 30
20 Position 190 320
21 Flags NoReliefString
22 Type PushButton
23 Title {Save}
24 Main
25 Case message of
26 SingleClic :
27 Begin
28 If (GetValue 5)==1 Then
29 Do {Exec xwd } $Opt1 { } $Opt2 { | xwdtopnm } $Format { > } (GetTitle 7) $Ext
30 Else
31 Do {Exec xwd } $Opt1 { } $Opt2 { | xwdtopnm | ppmtopgm | pnmtops | } (GetTitle 11)
32 Quit
33 End
34 End
35
36 Widget 2
37 Property
38 Size 50 30
39 Position 280 320
40 Flags NoReliefString
41 Type PushButton
42 Title {Quit}
43 Main
44 Case message of
45 SingleClic :
46 Begin
47 Do {Exec xset s } $TimeOut
48 Quit
49 End
50 End
51
52 Widget 3
53 Property
54 Size 340 170
55 Position 10 10
56 Type Rectangle
57 Main
58 Case message of
59 SingleClic :
60 Begin
61 End
62 End
63
64 Widget 4
65 Property
66 Position 15 2
67 Flags NoReliefString NoFocus
68 Type ItemDraw
69 Title {Dump to:}
70 Main
71 Case message of
72 SingleClic :
73 Begin
74 End
75 End
76
77 Widget 5
78 Property
79 Size 50 30
80 Position 30 30
81 Flags NoReliefString
82 Type RadioButton
83 Title {File}
84 Value 1
85 Main
86 Case message of
87 SingleClic :
88 Begin
89 ChangeValue 6 0
90 End
91 End
92
93 Widget 6
94 Property
95 Size 50 30
96 Position 30 110
97 Flags NoReliefString
98 Type RadioButton
99 Title {Printer}
100 Value 0
101 Main
102 Case message of
103 SingleClic :
104 Begin
105 ChangeValue 5 0
106 End
107 End
108
109 Widget 7
110 Property
111 Size 250 30
112 Position 75 27
113 Flags NoReliefString
114 Type TextField
115 Title {~/picture}
116 Value 200
117 Main
118 Case message of
119 SingleClic :
120 Begin
121 End
122 End
123
124 Widget 8
125 Property
126 Position 74 65
127 Flags NoReliefString NoFocus
128 Type ItemDraw
129 Title {Format}
130 Value 1
131 Main
132 Case message of
133 SingleClic :
134 Begin
135 End
136 End
137
138 Widget 9
139 Property
140 Position 130 60
141 Flags NoReliefString
142 Type PopupMenu
143 Title {GIF|PostScript|Tiff|X11 Pixmap|Pgm|Bmp|Sun rasterfile}
144 Value 1
145 Main
146 Case message of
147 SingleClic :
148 Begin
149 If (GetValue 9)==1 Then
150 Begin
151 Set $Ext = {.gif}
152 Set $Format = {| ppmtogif}
153 End
154 Else
155 Begin
156 If (GetValue 9)==2 Then
157 Begin
158 Set $Ext = {.ps}
159 Set $Format = {| pnmtops}
160 End
161 Else
162 Begin
163 If (GetValue 9)==3 Then
164 Begin
165 Set $Ext = {.tif}
166 Set $Format = {| pnmtotiff}
167 End
168 Else
169 Begin
170 If (GetValue 9)==4 Then
171 Begin
172 Set $Ext = {.xpm}
173 Set $Format = {| ppmtoxpm}
174 End
175 Else
176 Begin
177 If (GetValue 9)==5 Then
178 Begin
179 Set $Ext = {.pgm}
180 Set $Format = { }
181 End
182 Else
183 Begin
184 If (GetValue 9)==6 Then
185 Begin
186 Set $Ext = {.bmp}
187 Set $Format = {| ppmtobmp}
188 End
189 Else
190 Begin
191 Set $Ext = {.ras}
192 Set $Format = {| pnmtorast}
193 End
194 End
195 End
196 End
197 End
198 End
199 End
200 End
201
202 Widget 10
203 Property
204 Position 74 138
205 Flags NoReliefString NoFocus
206 Type ItemDraw
207 Title {Command line}
208 Value 1
209 Main
210 Case message of
211 SingleClic :
212 Begin
213 End
214 End
215
216
217 Widget 11
218 Property
219 Size 150 30
220 Position 175 135
221 Flags NoReliefString
222 Type TextField
223 Title {lpr}
224 Value 200
225 Main
226 Case message of
227 SingleClic :
228 Begin
229 End
230 End
231
232 Widget 12
233 Property
234 Size 340 100
235 Position 10 200
236 Flags NoReliefString
237 Type Rectangle
238 Main
239 Case message of
240 SingleClic :
241 Begin
242 End
243 End
244
245 Widget 13
246 Property
247 Position 15 192
248 Flags NoReliefString NoFocus
249 Type ItemDraw
250 Title {Options:}
251 Main
252 Case message of
253 SingleClic :
254 Begin
255 End
256 End
257
258 Widget 14
259 Property
260 Position 30 220
261 Flags NoReliefString
262 Type CheckBox
263 Title {Include frame}
264 Main
265 Case message of
266 SingleClic :
267 Begin
268 If (GetValue 14)==1 Then
269 Set $Opt1 = {-frame}
270 Else
271 Set $Opt1 = { }
272 End
273 End
274
275 Widget 15
276 Property
277 Position 30 260
278 Flags NoReliefString
279 Type CheckBox
280 Title {Select the root window}
281 Main
282 Case message of
283 SingleClic :
284 Begin
285 If (GetValue 15)==1 Then
286 Set $Opt2 = {-root}
287 Else
288 Set $Opt2 = { }
289 End
290 End
291
292
293