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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [fileselectionbox.n] - Blame information for rev 1765

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

powered by: WebSVN 2.1.0

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