OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [extfileselectionbox.n] - Blame information for rev 1782

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1995 DSC Technologies Corporation
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" @(#) extfileselectionbox.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS extfileselectionbox iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
extfileselectionbox \- Create and manipulate a file selection box widget
15
.SH SYNOPSIS
16
\fBextfileselectionbox\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- Extfileselectionbox
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBactiveBackground\fR  \fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR
24
\fBforeground\fR        \fBhighlightColor\fR    \fBhighlightThickness\fR        \fBinsertBackground\fR
25
\fBinsertBorderWidth\fR \fBinsertOffTime\fR     \fBinsertOnTime\fR      \fBinsertWidth\fR
26
\fBselectBackground\fR  \fBselectBorderWidth\fR \fBselectForeground\fR
27
.fi
28
.LP
29
See the "options" manual entry for details on the standard options.
30
.SH "ASSOCIATED OPTIONS"
31
.LP
32
.nf
33
.ta 4c 8c 12c
34
\fBpopupCursor\fR       \fBtextBackground\fR    \fBtextFont\fR
35
.fi
36
.LP
37
See the "combobox" widget manual entry for details on the above
38
associated options.
39
.LP
40
.nf
41
.ta 4c 8c 12c
42
\fBlabelFont\fR
43
.fi
44
.LP
45
See the "labeledwidget" widget manual entry for details on the above
46
associated options.
47
.LP
48
.nf
49
.ta 4c 8c 12c
50
\fBsashCursor\fR
51
.fi
52
.LP
53
See the "panedwindow" widget manual entry for details on the above
54
associated options.
55
.LP
56
.nf
57
.ta 4c 8c 12c
58
\fBactiveRelief\fR      \fBelementBorderWidth\fR        \fBjump\fR      \fBtroughColor\fR
59
.fi
60
.LP
61
See the "scrollbar" widget class manual entry for details on the above
62
associated options.
63
.LP
64
.nf
65
.ta 4c 8c 12c
66
\fBtextBackground\fR    \fBtextFont\fR
67
.fi
68
.LP
69
See the "scrolledlistbox" widget manual entry for details on the above
70
associated options.
71
.SH "WIDGET-SPECIFIC OPTIONS"
72
.LP
73
.nf
74
Name:   \fBchildSitePos\fR
75
Class:  \fBPosition\fR
76
Command-Line Switch:    \fB-childsitepos\fR
77
.fi
78
.IP
79
Specifies the position of the child site in the extended fileselection
80
box: \fBn\fR, \fBs\fR, \fBe\fR, \fBw\fR, \fBtop\fR, or \fBbottom\fR.
81
The default is s.
82
.LP
83
.nf
84
Name:   \fBdirectory\fR
85
Class:  \fBDirectory\fR
86
Command-Line Switch:    \fB-directory\fR
87
.fi
88
.IP
89
Specifies the initial default directory.  The default is the present
90
working directory.
91
.LP
92
.nf
93
Name:   \fBdirSearchCommand\fR
94
Class:  \fBCommand\fR
95
Command-Line Switch:    \fB-dirsearchcommand\fR
96
.fi
97
.IP
98
Specifies a Tcl command to be executed to perform a directory search.
99
The command will receive the current working directory and filter
100
mask as arguments.  The command should return a list of files which
101
will be placed into the directory list.
102
.LP
103
.nf
104
Name:   \fBdirsLabel\fR
105
Class:  \fBText\fR
106
Command-Line Switch:    \fB-dirslabel\fR
107
.fi
108
.IP
109
Specifies the text of the label for the directory list.  The default is
110
"Directories".
111
.LP
112
.nf
113
Name:   \fBdirsOn\fR
114
Class:  \fBDirsOn\fR
115
Command-Line Switch:    \fB-dirson\fR
116
.fi
117
.IP
118
Specifies whether or not to display the directory list.  The
119
value may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.
120
The default is true.
121
.LP
122
.nf
123
Name:   \fBfileSearchCommand\fR
124
Class:  \fBCommand\fR
125
Command-Line Switch:    \fB-filesearchcommand\fR
126
.fi
127
.IP
128
Specifies a Tcl command to be executed to perform a file search.
129
The command will receive the current working directory and filter
130
mask as arguments.  The command should return a list of files which
131
will be placed into the file list.
132
.LP
133
.nf
134
Name:   \fBfilesLabel\fR
135
Class:  \fBText\fR
136
Command-Line Switch:    \fB-fileslabel\fR
137
.fi
138
.IP
139
Specifies the text of the label for the files list.  The default is "Files".
140
.LP
141
.nf
142
Name:   \fBfilesOn\fR
143
Class:  \fBFilesOn\fR
144
Command-Line Switch:    \fB-fileson\fR
145
.fi
146
.IP
147
Specifies whether or not to display the files list.  The
148
value may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.
149
The default is true.
150
.LP
151
.nf
152
Name:   \fBfileType\fR
153
Class:  \fBFileType\fR
154
Command-Line Switch:    \fB-filetype\fR
155
.fi
156
.IP
157
Specify the type of files which may appear in the file list: \fBregular\fR,
158
\fBdirectory\fR, or \fBany\fR.  The default is regular.
159
.LP
160
.nf
161
Name:   \fBfilterCommand\fR
162
Class:  \fBCommand\fR
163
Command-Line Switch:    \fB-filtercommand\fR
164
.fi
165
.IP
166
Specifies a Tcl command to be executed upon hitting the Return key
167
in the filter combobox widget.
168
.LP
169
.nf
170
Name:   \fBfilterLabel\fR
171
Class:  \fBText\fR
172
Command-Line Switch:    \fB-filterlabel\fR
173
.fi
174
.IP
175
Specifies the text of the label for the filter combobox.  The default is
176
"Filter".
177
.LP
178
.nf
179
Name:   \fBfilterOn\fR
180
Class:  \fBFilterOn\fR
181
Command-Line Switch:    \fB-filteron\fR
182
.fi
183
.IP
184
Specifies whether or not to display the filter combobox.  The
185
value may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.
186
The default is true.
187
.LP
188
.nf
189
Name:   \fBheight\fR
190
Class:  \fBHeight\fR
191
Command-Line Switch:    \fB-height\fR
192
.fi
193
.IP
194
Specifies the height of the selection box.  The value may be specified in
195
any of the forms acceptable to Tk_GetPixels.  The default is 300 pixels.
196
.LP
197
.nf
198
Name:   \fBinvalid\fR
199
Class:  \fBCommand\fR
200
Command-Line Switch:    \fB-invalid\fR
201
.fi
202
.IP
203
Command to be executed should the filter contents be proven
204
invalid.  The default is {bell}.
205
.LP
206
.nf
207
Name:   \fBmask\fR
208
Class:  \fBMask\fR
209
Command-Line Switch:    \fB-mask\fR
210
.fi
211
.IP
212
Specifies the initial file mask string.  The default is "*".
213
.LP
214
.nf
215
Name:   \fBnoMatchString\fR
216
Class:  \fBNoMatchString\fR
217
Command-Line Switch:    \fB-nomatchstring\fR
218
.fi
219
.IP
220
Specifies the string to be displayed in the files list should no files
221
match the mask.  The default is "".
222
.LP
223
.nf
224
Name:   \fBselectDirCommand\fR
225
Class:  \fBCommand\fR
226
Command-Line Switch:    \fB-selectdirommand\fR
227
.fi
228
.IP
229
Specifies a Tcl command to be executed following selection of a
230
directory in the directory list.
231
.LP
232
.nf
233
Name:   \fBselectFileCommand\fR
234
Class:  \fBCommand\fR
235
Command-Line Switch:    \fB-selectfileommand\fR
236
.fi
237
.IP
238
Specifies a Tcl command to be executed following selection of a
239
file in the files list.
240
.LP
241
.nf
242
Name:   \fBselectionCommand\fR
243
Class:  \fBCommand\fR
244
Command-Line Switch:    \fB-selectioncommand\fR
245
.fi
246
.IP
247
Specifies a Tcl command to be executed upon hitting the Return key
248
in the selection combobox widget.
249
.LP
250
.nf
251
Name:   \fBselectionLabel\fR
252
Class:  \fBText\fR
253
Command-Line Switch:    \fB-selectionlabel\fR
254
.fi
255
.IP
256
Specifies the text of the label for the selection combobox.  The default
257
is "Selection".
258
.LP
259
.nf
260
Name:   \fBselectionOn\fR
261
Class:  \fBSelectionOn\fR
262
Command-Line Switch:    \fB-selectionon\fR
263
.fi
264
.IP
265
Specifies whether or not to display the selection combobox.  The
266
value may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.
267
The default is true.
268
.LP
269
.nf
270
Name:   \fBwidth\fR
271
Class:  \fBWidth\fR
272
Command-Line Switch:    \fB-width\fR
273
.fi
274
.IP
275
Specifies the width of the selection box.  The value may be specified in
276
any of the forms acceptable to Tk_GetPixels.  The default is 350 pixels.
277
.LP
278
.BE
279
 
280
.SH DESCRIPTION
281
.PP
282
The \fBextfileselectionbox\fR command creates an extended file
283
selection box which is slightly different than the fileselectionbox widget.
284
The differences are mostly cosmetic in that the listboxes are
285
within a panedwindow and the entryfields for the filter and selection
286
have been replaced by comboboxes.  Other than that the interface is
287
practically the same.
288
 
289
.SH "METHODS"
290
.PP
291
The \fBextfileselectionbox\fR command creates a new Tcl command whose
292
name is \fIpathName\fR.  This
293
command may be used to invoke various
294
operations on the widget.  It has the following general form:
295
.DS C
296
\fIpathName option \fR?\fIarg arg ...\fR?
297
.DE
298
\fIOption\fR and the \fIarg\fRs
299
determine the exact behavior of the command.  The following
300
commands are possible for extfileselectionbox widgets:
301
 
302
.SH "WIDGET-SPECIFIC METHODS"
303
.TP
304
\fIpathName \fBcget\fR \fIoption\fR
305
Returns the current value of the configuration option given
306
by \fIoption\fR.
307
\fIOption\fR may have any of the values accepted by the \fBextfileselectionbox\fR
308
command.
309
.TP
310
\fIpathName \fBchildsite\fR
311
Returns the child site widget path name.
312
.TP
313
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
314
Query or modify the configuration options of the widget.
315
If no \fIoption\fR is specified, returns a list describing all of
316
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
317
information on the format of this list).  If \fIoption\fR is specified
318
with no \fIvalue\fR, then the command returns a list describing the
319
one named option (this list will be identical to the corresponding
320
sublist of the value returned if no \fIoption\fR is specified).  If
321
one or more \fIoption\-value\fR pairs are specified, then the command
322
modifies the given widget option(s) to have the given value(s);  in
323
this case the command returns an empty string.
324
\fIOption\fR may have any of the values accepted by the \fBextfileselectionbox\fR
325
command.
326
.TP
327
\fIpathName \fBfilter\fR
328
Update the current contents of the extended file selection box based
329
on the current filter combobox value.
330
.TP
331
\fIpathName \fBget\fR
332
Returns the current value of the selection combobox widget.
333
 
334
.SH "COMPONENTS"
335
.LP
336
.nf
337
Name:   \fBdirs\fR
338
Class:  \fBScrolledlistbox\fR
339
.fi
340
.IP
341
The dirs component is the directory list box for the extended fileselection
342
box. See the "scrolledlistbox" widget manual entry for details on the dirs
343
component item.
344
.LP
345
.nf
346
Name:   \fBfiles\fR
347
Class:  \fBScrolledlistbox\fR
348
.fi
349
.IP
350
The files component is the file list box for the extended fileselection box.
351
See the "scrolledlistbox" widget manual entry for details on the files
352
component item.
353
.LP
354
.nf
355
Name:   \fBfilter\fR
356
Class:  \fBCombobox\fR
357
.fi
358
.IP
359
The filter component is the field for user input of the filter value.
360
See the "combobox" widget manual entry for details on the filter
361
component item.
362
.LP
363
.nf
364
Name:   \fBselection\fR
365
Class:  \fBCombobox\fR
366
.fi
367
.IP
368
The selection component is the field for user input of the currently
369
selected file value.  See the "combobox" widget manual entry for details
370
on the selection component item.
371
.fi
372
 
373
.SH EXAMPLE
374
.DS
375
extfileselectionbox .fsb
376
pack .fsb -padx 10 -pady 10 -fill both -expand yes
377
.DE
378
.SH AUTHOR(S)
379
Mark L. Ulferts
380
.DE
381
Anthony Parent
382
.SH KEYWORDS
383
extfileselectionbox, widget

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.