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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [FileBox.n] - Blame information for rev 578

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

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1996, Expert Interface Technologies
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
'\" The file man.macros and some of the macros used by this file are
8
'\" copyrighted: (c) 1990 The Regents of the University of California.
9
'\"              (c) 1994-1995 Sun Microsystems, Inc.
10
'\" The license terms of the Tcl/Tk distrobution are in the file
11
'\" license.tcl.
12
.so man.macros
13
'----------------------------------------------------------------------
14
.HS tixFileSelectBox tix 4.0
15
.BS
16
'
17
'
18
.SH NAME
19
tixFileSelectBox \- Create and manipulate Tix FileSelectBox widgets
20
'
21
'
22
'
23
.SH SYNOPSIS
24
\fBtixFileSelectBox\fI \fIpathName ?\fIoptions\fR?
25
'
26
'
27
'----------------------------------------------------------------------
28
.SH "STANDARD OPTIONS"
29
'
30
The FileSelectBox widget supports all the standard options of a frame
31
widget.  See the \fBoptions(n)\fR manual entry for details on the standard
32
options.
33
'
34
'
35
'
36
.SH "WIDGET-SPECIFIC OPTIONS"
37
'----------
38
.LP
39
.nf
40
Name:           \fBbrowsecmd\fR
41
Class:          \fBbrowseCmd\fR
42
Switch:         \fB\-browsecmd\fR
43
.fi
44
.IP
45
Specifies the command to execute when the user browses through the
46
files. By default, if the \fB\-browsecmd\fR is specified, the browse
47
command will be executed when the user clicks on a filename in the
48
\fIFiles\fR listbox.
49
'----------
50
.LP
51
.nf
52
Name:           \fBcommand\fR
53
Class:          \fBCommand\fR
54
Switch:         \fB\-command\fR
55
.fi
56
.IP
57
Specifies the command to execute when the FileSelectBox is
58
invoked. This command is executed with one parameter : the filename
59
selected by the user.
60
'----------
61
.LP
62
.nf
63
Name:           \fBdirectory\fR
64
Class:          \fBDirectory\fR
65
Switch:         \fB\-directory\fR
66
Alias:          \fB\-dir\fR
67
.fi
68
.IP
69
Specifies the directory to look for files. By default this will be the
70
current working directory of the program and will be changed as the
71
user browses through the directories.
72
'
73
'----------BEGIN
74
.LP
75
.nf
76
Name:           \fBdisableCallback\fR
77
Class:          \fBDisableCallback\fR
78
Switch:         \fB\-disablecallback\fR
79
.fi
80
.IP
81
A boolean value indicating whether callbacks should be disabled. When
82
set to true, the TCL command specified by the \fB\-command\fR option
83
is not executed when the \fB\-value\fR of the ExFileSelectBox
84
widget changes.
85
'----------END
86
'----------
87
.LP
88
.nf
89
Name:           \fBpattern\fR
90
Class:          \fBPattern\fR
91
Switch:         \fB\-pattern\fR
92
.fi
93
.IP
94
Specifies the matching pattern of the file names that should be listed in
95
the \fIFiles\fR listbox. For example "*.c" matches all the filenames that
96
end with ".c". If this option is set to the empty string, the default
97
pattern "*" will be used.
98
'----------
99
.LP
100
.nf
101
Name:           \fBvalue\fR
102
Class:          \fBValue\fR
103
Switch:         \fB\-value\fR
104
Alias:          \fB\-selection\fR
105
.fi
106
.IP
107
Specifies the name of the filename currently selected by the user.
108
'
109
'----------------------------------------------------------------------
110
.SH SUBWIDGETS
111
'
112
'----------BEGIN
113
.LP
114
.nf
115
Name:           \fBdirlist\fR
116
Class:          \fBTixScrolledListBox\fR
117
.fi
118
.IP
119
The scrolled listbox that shows the directories.
120
'----------END
121
'----------BEGIN
122
.LP
123
.nf
124
Name:           \fBfilelist\fR
125
Class:          \fBTixScrolledListBox\fR
126
.fi
127
.IP
128
The scrolled listbox that shows the files.
129
'----------END
130
'
131
'----------BEGIN
132
.LP
133
.nf
134
Name:           \fBfilter\fR
135
Class:          \fBTixComboBox\fR
136
.fi
137
.IP
138
The ComboBox listbox that shows the filter string.
139
'----------END
140
'
141
'----------BEGIN
142
.LP
143
.nf
144
Name:           \fBselection\fR
145
Class:          \fBTixComboBox\fR
146
.fi
147
.IP
148
The ComboBox listbox that shows the file selection.
149
'----------END
150
'
151
.BE
152
'======================
153
'
154
'
155
'
156
.SH DESCRIPTION
157
'
158
.PP
159
'
160
The \fBtixFileSelectBox\fR command creates a new window (given by the
161
\fIpathName\fR argument) and makes it into a FileSelectBox widget.
162
Additional options, described above, may be specified on the command
163
line or in the option database to configure aspects of the
164
FileSelectBox such as its cursor and relief.
165
.PP
166
The FileSelectBox is similar to the standard Motif(TM) file-selection
167
box. It is generally used for the user to choose a file. FileSelectBox
168
stores the files mostly recently selected into a ComboBox widget so
169
that they can be quickly selected again. The \fBtixFileSelectDialog\fR
170
widget is a combination of the FileSelectBox widget and a dialog
171
widget.
172
'
173
.SH "WIDGET COMMAND"
174
.PP
175
'
176
The \fBtixFileSelectBox\fR command creates a new Tcl command whose
177
name is the same as the path name of the FileSelectBox's window.
178
This command may be used to invoke various operations on the widget.
179
It has the following general form:
180
'
181
.DS C
182
'
183
\fIpathName option \fR?\fIarg arg ...\fR?
184
.PP
185
.DE
186
'
187
\fIPathName\fR is the name of the command, which is the same as the
188
FileSelectBox widget's path name. \fIOption\fR and the
189
\fIarg\fRs determine the exact behavior of the command.  The following
190
commands are possible for FileSelectBox widgets:
191
'
192
.TP
193
\fIpathName \fBcget\fR \fIoption\fR
194
'
195
Returns the current value of the configuration option given by
196
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
197
\fBtixFileSelectBox\fR command.
198
'
199
.TP
200
'
201
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
202
'
203
Query or modify the configuration options of the widget.  If no
204
\fIoption\fR is specified, returns a list describing all of the
205
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
206
information on the format of this list).  If \fIoption\fR is specified
207
with no \fIvalue\fR, then the command returns a list describing the
208
one named option (this list will be identical to the corresponding
209
sublist of the value returned if no \fIoption\fR is specified).  If
210
one or more \fIoption\-value\fR pairs are specified, then the command
211
modifies the given widget option(s) to have the given value(s); in
212
this case the command returns an empty string.  \fIOption\fR may have
213
any of the values accepted by the \fBtixFileSelectBox\fR command.
214
'
215
.TP
216
'
217
\fIpathName \fBfilter\fR
218
'
219
Updates the files listed in the FileSelectBox according to the
220
filtering pattern sepcified in the \fBfilter\fR subwidget.
221
.TP
222
'
223
\fIpathName \fBinvoke\fR
224
Execute the command specified by the \fB\-command\fR option with the
225
filename stored in the \fBselection\fR subwidget.
226
'
227
.TP
228
\fIpathName \fBsubwidget \fI name ?args?\fR
229
'
230
When no options are given, this command returns the pathname of the
231
subwidget of the specified name.
232
 
233
When options are given, the widget command of the specified subwidget
234
will be called with these options.
235
'
236
'
237
.SH "DEFAULT BINDINGS"
238
TIX automatically creates class bindings for FileSelectBoxes that give them
239
the following default behavior:
240
.IP [1]
241
Mouse button 1 in the \fIDirectory\fR listbox will change the filter
242
string to the selected directory.
243
.IP [2]
244
Mouse button 1 in the \fIFiles\fR listbox will change the filename
245
that appears in the \fISelection\fR entry. It will also trigger the
246
\fB\-browsecmd\fR if the option has been specified.
247
.IP [3]
248
The current directory will be changed by (1) double clicking the
249
\fIDirectory\fR listbox or (2) invoking the \fIFilter\fR ComboBox.
250
Please refer to the man page of \fBtixComboBox\fR for the default
251
bindings of the ComboBoxes and how they can be invoked.
252
.IP [4]
253
The command specified by the option -command will be invoked by (1)
254
double clicking the \fIFiles\fR listbox or (2) invoking
255
\fISelection\fR ComboBox.
256
'
257
'
258
.SH KEYWORDS
259
tixFileSelectBox, tixComboBox, tixFileSelectDialog, Tix(n),

powered by: WebSVN 2.1.0

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