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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [DirList.n] - Blame information for rev 1767

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 tixDirList tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixDirList \- Create and manipulate tixDirList widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixDirList\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixDirList\fR class is derived from the \fBTixScrolledHList\fR
33
class and inherits all the commands, options and subwidgets of its
34
super-class.
35
'
36
'----------------------------------------------------------------------
37
.SH "STANDARD OPTIONS"
38
'
39
\fBTixDirList\fR supports all the standard options of a frame widget.
40
See the \fBoptions(n)\fR manual entry for details on the standard options.
41
'
42
'
43
'----------------------------------------------------------------------
44
.SH "WIDGET-SPECIFIC OPTIONS"
45
'
46
'----------BEGIN
47
.LP
48
.nf
49
Name:           \fBbrowseCmd\fR
50
Class:          \fBBrowseCmd\fR
51
Switch:         \fB\-browsecmd\fR
52
.fi
53
.IP
54
Specifies a command to call whenever the user browses on a directory
55
(usually by single-clicking on the name of the directory). The command
56
is called with one argument, the complete pathname of the directory.
57
'----------END
58
'
59
'
60
'----------BEGIN
61
.LP
62
.nf
63
Name:           \fBcommand\fR
64
Class:          \fBCommand\fR
65
Switch:         \fB\-command\fR
66
.fi
67
.IP
68
Specifies the command to be called when the user activates on a directory
69
(usually by double-clicking on the name of the directory). The command
70
is called with one argument, the complete pathname of the directory.
71
'----------END
72
'
73
'----------BEGIN
74
.LP
75
.nf
76
Name:           \fBdircmd\fR
77
Class:          \fBDirCmd\fR
78
Switch:         \fB\-dircmd\fR
79
.fi
80
.IP
81
Specifies the TCL command to be called when a directory listing is
82
needed for a particular directory. If this option is not specified, by
83
default the DirList widget will attempt to read the directory as a
84
Unix directory. On special occasions, the application programmer may
85
want to supply a special method for reading directories: for example,
86
when he needs to list remote directories. In this case, the
87
\fB\-dircmd\fR option can be used. The specified command accepts two
88
arguments: the first is the name of the directory to be listed; the
89
second is a Boolean value indicating whether hidden sub-directories
90
should be listed. This command returns a list of names of the
91
sub-directories of this directory. For example:
92
\fC
93
.nf
94
 
95
 proc read_dir {dir show_hidden} {
96
     if {$dir == "C:\\"} {
97
         return {DOS NORTON WINDOWS}
98
     } else {
99
         return {}
100
     }
101
 }
102
.fi
103
\fR
104
'----------END
105
'
106
'----------BEGIN
107
.LP
108
.nf
109
Name:           \fBdisableCallback\fR
110
Class:          \fBDisableCallback\fR
111
Switch:         \fB\-disablecallback\fR
112
.fi
113
.IP
114
A boolean value indicating whether callbacks should be disabled. When
115
set to true, the TCL command specified by the \fB\-command\fR option
116
is not executed when the \fB\-value\fR of the DirList widget
117
changes.
118
'----------END
119
'
120
'----------BEGIN
121
'
122
.LP
123
.nf
124
Name:           \fBshowHidden\fR
125
Class:          \fBShowHidden\fR
126
Switch:         \fB\-showhidden\fR
127
.fi
128
.IP
129
Specifies whether hidden directories should be shown. By default, a
130
directory name starting with a period "." is considered as a hidden
131
directory. This rule can be overridden by supplying an alternative
132
\fB\-dircmd\fR option.
133
'----------END
134
'
135
'----------END
136
'
137
.LP
138
.nf
139
Name:           \fBroot\fR
140
Class:          \fBRoot\fR
141
Switch:         \fB\-root\fR
142
.fi
143
.IP
144
'
145
Specifies the name of the root directory. Usually this is \fB"/"\fR
146
under Unix machines, but can be changed to \fB"C:\\"\fR in DOS environments.
147
'----------END
148
'
149
'----------END
150
'
151
.LP
152
.nf
153
Name:           \fBrootName\fR
154
Class:          \fBRootNAme\fR
155
Switch:         \fB\-rootname\fR
156
.fi
157
.IP
158
'
159
Specifies a text string to display at the root directory. If
160
unspecified, the text string will be the same as the string specified
161
by \fB\-root\fR.
162
'----------END
163
'
164
'----------END
165
'
166
.LP
167
.nf
168
Name:           \fBvalue\fR
169
Class:          \fBValue\fR
170
Switch:         \fB\-value\fR
171
Alias:          \fB\-directory\fR
172
.fi
173
.IP
174
Specifies the name of the current directory to be displayed in the
175
DirList widget.
176
'----------END
177
'
178
'----------------------------------------------------------------------
179
.SH SUBWIDGETS
180
'----------BEGIN
181
.LP
182
.nf
183
Name:           \fBhlist\fR
184
Class:          \fBTixHList\fR
185
.fi
186
.IP
187
The hierarchical listbox that displays the directory listing.
188
'----------END
189
'
190
'----------BEGIN
191
.LP
192
.nf
193
Name:           \fBhsb\fR
194
Class:          \fBScrollbar\fR
195
.fi
196
.IP
197
The horizontal scrollbar subwidget.
198
'----------END
199
'
200
'
201
'----------BEGIN
202
.LP
203
.nf
204
Name:           \fBvsb\fR
205
Class:          \fBScrollbar\fR
206
.fi
207
.IP
208
The vertical scrollbar subwidget.
209
'----------END
210
'
211
.BE
212
'
213
'
214
'----------------------------------------------------------------------
215
.SH DESCRIPTION
216
'
217
.PP
218
'
219
The \fBtixDirList\fR command creates a new window (given by the
220
\fIpathName\fR argument) and makes it into a DirList widget.
221
Additional options, described above, may be specified on the command
222
line or in the option database to configure aspects of the
223
DirList such as its cursor and relief.
224
 
225
The DirList widget displays a list view of a directory, its
226
previous directories and its sub-directories. The user can choose one
227
of the directories displayed in the list or change to another
228
directory.
229
'
230
'
231
'----------------------------------------------------------------------
232
.SH WIDGET COMMANDS
233
.PP
234
'
235
The \fBtixDirList\fR command creates a new Tcl command whose name is
236
the same as the path name of the DirList's window.  This
237
command may be used to invoke various operations on the widget. It has
238
the following general form:
239
'
240
.DS C
241
'
242
\fIpathName option \fR?\fIarg arg ...\fR?
243
.PP
244
.DE
245
'
246
\fIPathName\fR is the name of the command, which is the same as the
247
DirList widget's path name. \fIOption\fR and the \fIarg\fRs
248
determine the exact behavior of the command. The following commands
249
are possible for DirList widgets:
250
'
251
.TP
252
\fIpathName \fBcget\fR \fIoption\fR
253
'
254
Returns the current value of the configuration option given by
255
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
256
\fBtixDirList\fR command.
257
'
258
.TP
259
\fIpathName \fBchdir\fR \fIdir\fR
260
'
261
Change the current directory to \fIdir\fR.
262
'
263
'
264
.TP
265
'
266
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
267
'
268
Query or modify the configuration options of the widget.  If no
269
\fIoption\fR is specified, returns a list describing all of the
270
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
271
information on the format of this list).  If \fIoption\fR is specified
272
with no \fIvalue\fR, then the command returns a list describing the
273
one named option (this list will be identical to the corresponding
274
sublist of the value returned if no \fIoption\fR is specified).  If
275
one or more \fIoption\-value\fR pairs are specified, then the command
276
modifies the given widget option(s) to have the given value(s); in
277
this case the command returns an empty string.  \fIOption\fR may have
278
any of the values accepted by the \fBtixDirList\fR command.
279
'
280
'
281
.TP
282
\fIpathName \fBsubwidget \fI name ?args?\fR
283
'
284
When no options are given, this command returns the pathname of the
285
subwidget of the specified name.
286
 
287
When options are given, the widget command of the specified subwidget
288
will be called with these options.
289
'
290
'
291
'
292
'----------------------------------------------------------------------
293
.SH BINDINGS
294
.PP
295
'
296
The mouse and keyboard bindings of the DirList widget are the same as
297
the bindings of the HList widget.
298
'
299
'
300
'----------------------------------------------------------------------
301
.SH KEYWORDS
302
Tix(n)

powered by: WebSVN 2.1.0

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