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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [FileEnt.n] - Blame information for rev 1765

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 tixFileEntry tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixFileEntry \- Create and manipulate tixFileEntry widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixFileEntry\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixFileEntry\fR class is derived from the \fBTixLabelWidget\fR
33
class and inherits all the commands, options and
34
subwidgets of its super-class.
35
'
36
'----------------------------------------------------------------------
37
.SH "STANDARD OPTIONS"
38
'
39
The FileEntry widget supports all the standard options of a frame
40
widget. See the \fBoptions(n)\fR manual entry for details on the
41
standard options.
42
'
43
'----------------------------------------------------------------------
44
.SH "WIDGET-SPECIFIC OPTIONS"
45
'
46
'----------BEGIN
47
.LP
48
.nf
49
Name:           \fBactivateCmd\fR
50
Class:          \fBActivateCmd\fR
51
Switch:         \fB\-activatecmd\fR
52
.fi
53
.IP
54
Specifies the command to be called when the user activates the
55
\fBbutton\fR subwidget. This command is called before the file dialog
56
is popped up and can be used to customize the file dialog (which may
57
be shared by several FileEnt widget).
58
'----------END
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 \fB\-value\fR option of
69
the FileEntry is changed. This usually happens when the user inputs a
70
filename into the entry subwidget and hits the  key. The
71
command will be called with one arguments -- the new value of the
72
FileEntry widget.
73
'----------END
74
'
75
'----------BEGIN
76
.LP
77
.nf
78
Name:           \fBdialogType\fR
79
Class:          \fBDialogType\fR
80
Switch:         \fB\-dialogtype\fR
81
.fi
82
.IP
83
Specifies which type of file selection dialog should be popped up when
84
the user invokes the \fBbutton\fR subwidget. Current only two values
85
are valid: \fBtixFileSelectDialog\fR or \fBtixExFileSelectDialog\fR.
86
'----------END
87
'----------BEGIN
88
.LP
89
.nf
90
Name:           \fBdisableCallback\fR
91
Class:          \fBDisableCallback\fR
92
Switch:         \fB\-disablecallback\fR
93
.fi
94
.IP
95
A boolean value indicating whether callbacks should be disabled. When
96
set to true, the TCL command specified by the \fB\-command\fR option
97
is not executed when the \fB\-value\fR of the FileEntry widget
98
changes.
99
'----------END
100
'
101
'----------BEGIN
102
.LP
103
.nf
104
Name:           \fBdisableForeground\fR
105
Class:          \fBDisableForeground\fR
106
Switch:         \fB\-disableforeground\fR
107
.fi
108
.IP
109
The foreground color to use for of the entry subwidget when the
110
FileEntry widget is disabled.
111
'----------END
112
'
113
'
114
'----------BEGIN
115
.LP
116
.nf
117
Name:           \fBfileBitmap\fR
118
Class:          \fBFileBitmap\fR
119
Switch:         \fB\-filebitmap\fR
120
.fi
121
.IP
122
Specifies the bitmap to display in side the \fBbutton\fR subwidget.
123
'----------END
124
'
125
'----------BEGIN
126
.LP
127
.nf
128
Name:           \fBlabel\fR
129
Class:          \fBLabel\fR
130
Switch:         \fB\-label\fR
131
.fi
132
.IP
133
Specifies the string to display as the label of this FileEntry widget.
134
'----------END
135
'
136
'----------BEGIN
137
.LP
138
.nf
139
Name:           \fBlabelSide\fR
140
Class:          \fBLabelSide\fR
141
Switch:         \fB\-labelside\fR
142
.fi
143
.IP
144
Specifies where the label should be displayed relative to the entry
145
subwidget. Valid options are: \fBtop\fR, \fBleft\fR, \fBright\fR,
146
\fBbottom\fR, \fBnone\fR or \fBacrosstop\fR.
147
'----------END
148
'
149
'----------BEGIN
150
.LP
151
.nf
152
Name:           \fBselectMode\fR
153
Class:          \fBSelectMode\fR
154
Switch:         \fB\-selectmode\fR
155
.fi
156
.IP
157
Specifies how the FileEntry widget should react to \fC\fR
158
events. When set to "immediate", any user keyboard inputs will
159
immediately change the \fB\-value\fR option. When set to "normal", the
160
user keyboard inputs will be copied to the \fB\-value\fR option only
161
if the\fC \fR key is pressed or the keyboard focus is
162
changed. The use of the immediate mode is discouraged. For effective
163
use of the FileEntry widget, one should use the normal mode together
164
with the \fBupdate\fR widget command (see below).
165
'----------END
166
'
167
'----------BEGIN
168
.LP
169
.nf
170
Name:           \fBstate\fR
171
Class:          \fBState\fR
172
Switch:         \fB\-state\fR
173
.fi
174
.IP
175
Specifies the whether the FileEntry widget is normal or disabled. Only
176
the values "normal" and "disabled" are recognized.
177
'----------END
178
''
179
'----------BEGIN
180
.LP
181
.nf
182
Name:           \fBvalidateCmd\fR
183
Class:          \fBValidateCmd\fR
184
Switch:         \fB\-validatecmd\fR
185
.fi
186
.IP
187
Specifies a TCL command to be called when the -value of the
188
FileEntry widget is about to change. This command is called
189
with one parameter -- the new \fB\-value\fR entered by the user. This
190
command is to validate this new value by returning a value it deems
191
valid.
192
'----------END
193
'
194
'----------BEGIN
195
.LP
196
.nf
197
Name:           \fBvalue\fR
198
Class:          \fBValue\fR
199
Switch:         \fB\-value\fR
200
.fi
201
.IP
202
Specifies the value of the FileEntry.
203
'----------END
204
'
205
'----------BEGIN
206
.LP
207
.nf
208
Name:           \fBvariable\fR
209
Class:          \fBVariable\fR
210
Switch:         \fB\-variable\fR
211
.fi
212
.IP
213
Specifies the global variable in which the value of the FileEntry
214
should be stored. The value of the FileEntry will be automatically
215
updated when this variable is changed.
216
'----------END
217
'
218
'----------------------------------------------------------------------
219
.SH SUBWIDGETS
220
'----------BEGIN
221
.LP
222
.nf
223
Name:           \fBbutton\fR
224
Class:          \fBButton\fR
225
.fi
226
.IP
227
The button subwidget next to the entry subwidget.
228
'----------END
229
'
230
'----------BEGIN
231
.LP
232
.nf
233
Name:           \fBentry\fR
234
Class:          \fBEntry\fR
235
.fi
236
.IP
237
The entry subwidget in which the user can type in a filename.
238
'----------END
239
.BE
240
'
241
'
242
'----------------------------------------------------------------------
243
.SH DESCRIPTION
244
'
245
.PP
246
'
247
The \fBtixFileEntry\fR command creates a new window (given by
248
the \fIpathName\fR argument) and makes it into a FileEntry
249
widget. Additional options, described above, may be specified on the
250
command line or in the option database to configure aspects of the
251
FileEntry such as its cursor and relief.
252
.PP
253
The FileEntry widget can be used to input a filename. The user can
254
type in the filename manually. Alternatively, the user can press the
255
button widget that sits next to the entry, which will bring up a file
256
selection dialog of the type specified by the \fB\-dialogtype\fR option.
257
'
258
'
259
'----------------------------------------------------------------------
260
.SH WIDGET COMMANDS
261
.PP
262
'
263
The \fBtixFileEntry\fR command creates a new Tcl command whose
264
name is the same as the path name of the FileEntry's
265
window. This command may be used to invoke various operations on the
266
widget. It has the following general form:
267
'
268
.DS C
269
'
270
\fIpathName option \fR?\fIarg arg ...\fR?
271
.PP
272
.DE
273
'
274
\fIPathName\fR is the name of the command, which is the same as the
275
FileEntry widget's path name. \fIOption\fR and the
276
\fIarg\fRs determine the exact behavior of the command. The following
277
commands are possible for FileEntry widgets:
278
'
279
.TP
280
\fIpathName \fBcget\fR \fIoption\fR
281
'
282
Returns the current value of the configuration option given by
283
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
284
\fBtixFileEntry\fR command.
285
'
286
'
287
.TP
288
'
289
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
290
'
291
Query or modify the configuration options of the widget.  If no
292
\fIoption\fR is specified, returns a list describing all of the
293
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
294
information on the format of this list).  If \fIoption\fR is specified
295
with no \fIvalue\fR, then the command returns a list describing the
296
one named option (this list will be identical to the corresponding
297
sublist of the value returned if no \fIoption\fR is specified).  If
298
one or more \fIoption\-value\fR pairs are specified, then the command
299
modifies the given widget option(s) to have the given value(s); in
300
this case the command returns an empty string.  \fIOption\fR may have
301
any of the values accepted by the \fBtixFileEntry\fR command.
302
'
303
'
304
.TP
305
\fIpathName \fBinvoke\fR
306
'
307
Forces the FileEntry widget to act as if the user has pressed the
308
 key inside the entry subwidget.
309
'
310
.TP
311
\fIpathName \fBfiledialog\fR \fI?args?\fR
312
'
313
When no additional arguments are given, this command returns the
314
pathname of the file dialog box associated with this FileEnt
315
widget. When additional arguments are given, the widget command of the
316
file dialog will be called with these arguments.
317
'
318
'
319
.TP
320
\fIpathName \fBsubwidget \fIname ?args?\fR
321
'
322
When no options are given, this command returns the pathname of the
323
subwidget of the specified name. When options are given, the widget
324
command of the specified subwidget will be called with these options.
325
'
326
.TP
327
\fIpathName \fBupdate\fR
328
'
329
If the user has modified the entry using keyboard inputs, the update
330
command will \fBupdate\fR the \fB\-value\fR of this FileEntry
331
widget. When the FileEntry widget's \fB\-selectmode\fR option is set
332
to "normal", one should call the \fBupdate\fR command on this widget
333
before examining its \fB\-value\fR option. This command has no effect
334
in if the \fB\-selectmode\fR option is set to "immediate".
335
'
336
'
337
'----------------------------------------------------------------------
338
'.SH BINDINGS
339
'.PP
340
'
341
'
342
'
343
'----------------------------------------------------------------------
344
.SH KEYWORDS
345
Tix(n)

powered by: WebSVN 2.1.0

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