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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [DirTree.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) 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 tixDirTree tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixDirTree \- Create and manipulate tixDirTree widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixDirTree\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixDirTree\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
\fBTixDirTree\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 DirTree 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 DirTree 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:           \fBvalue\fR
140
Class:          \fBValue\fR
141
Switch:         \fB\-value\fR
142
Alias:          \fB\-directory\fR
143
.fi
144
.IP
145
Specifies the name of the current directory to be displayed in the
146
DirTree widget.
147
'----------END
148
'
149
'----------------------------------------------------------------------
150
.SH SUBWIDGETS
151
'----------BEGIN
152
.LP
153
.nf
154
Name:           \fBhlist\fR
155
Class:          \fBTixHList\fR
156
.fi
157
.IP
158
The hierarchical listbox that displays the directory listing.
159
'----------END
160
'
161
'----------BEGIN
162
.LP
163
.nf
164
Name:           \fBhsb\fR
165
Class:          \fBScrollbar\fR
166
.fi
167
.IP
168
The horizontal scrollbar subwidget.
169
'----------END
170
'
171
'
172
'----------BEGIN
173
.LP
174
.nf
175
Name:           \fBvsb\fR
176
Class:          \fBScrollbar\fR
177
.fi
178
.IP
179
The vertical scrollbar subwidget.
180
'----------END
181
'
182
.BE
183
'
184
'
185
'----------------------------------------------------------------------
186
.SH DESCRIPTION
187
'
188
.PP
189
'
190
The \fBtixDirTree\fR command creates a new window (given by the
191
\fIpathName\fR argument) and makes it into a DirTree widget.
192
Additional options, described above, may be specified on the command
193
line or in the option database to configure aspects of the
194
DirTree such as its cursor and relief.
195
 
196
The DirTree widget displays a list view of a directory, its
197
previous directories and its sub-directories. The user can choose one
198
of the directories displayed in the list or change to another
199
directory.
200
'
201
'
202
'----------------------------------------------------------------------
203
.SH WIDGET COMMANDS
204
.PP
205
'
206
The \fBtixDirTree\fR command creates a new Tcl command whose name is
207
the same as the path name of the DirTree's window.  This
208
command may be used to invoke various operations on the widget. It has
209
the following general form:
210
'
211
.DS C
212
'
213
\fIpathName option \fR?\fIarg arg ...\fR?
214
.PP
215
.DE
216
'
217
\fIPathName\fR is the name of the command, which is the same as the
218
DirTree widget's path name. \fIOption\fR and the \fIarg\fRs
219
determine the exact behavior of the command. The following commands
220
are possible for DirTree widgets:
221
'
222
.TP
223
\fIpathName \fBcget\fR \fIoption\fR
224
'
225
Returns the current value of the configuration option given by
226
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
227
\fBtixDirTree\fR command.
228
'
229
.TP
230
\fIpathName \fBchdir\fR \fIdir\fR
231
'
232
Change the current directory to \fIdir\fR.
233
'
234
'
235
.TP
236
'
237
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
238
'
239
Query or modify the configuration options of the widget.  If no
240
\fIoption\fR is specified, returns a list describing all of the
241
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
242
information on the format of this list). If \fIoption\fR is specified
243
with no \fIvalue\fR, then the command returns a list describing the
244
one named option (this list will be identical to the corresponding
245
sublist of the value returned if no \fIoption\fR is specified).  If
246
one or more \fIoption\-value\fR pairs are specified, then the command
247
modifies the given widget option(s) to have the given value(s); in
248
this case the command returns an empty string.  \fIOption\fR may have
249
any of the values accepted by the \fBtixDirTree\fR command.
250
'
251
'
252
.TP
253
\fIpathName \fBsubwidget \fI name ?args?\fR
254
'
255
When no options are given, this command returns the pathname of the
256
subwidget of the specified name.
257
 
258
When options are given, the widget command of the specified subwidget
259
will be called with these options.
260
'
261
'
262
'
263
'----------------------------------------------------------------------
264
.SH BINDINGS
265
.PP
266
'
267
The mouse and keyboard bindings of the DirTree widget are the same as
268
the bindings of the HList widget.
269
'
270
'
271
'----------------------------------------------------------------------
272
.SH KEYWORDS
273
Tix(n)

powered by: WebSVN 2.1.0

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