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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [FileBox.html] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixFileSelectBox - Create and manipulate Tix FileSelectBox widgets</TITLE>
5
<Center><H2>tixFileSelectBox - Create and manipulate Tix FileSelectBox widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixFileSelectBox<I> <I>pathName ?<I>options</I></B>?
9
</pre><H3>STANDARD OPTIONS</H3>
10
The FileSelectBox widget supports all the standard options of a frame
11
widget.  See the <B>options(n)</B></I> manual entry for details on the standard
12
options.
13
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
14
<P>
15
<pre><code><code><code>
16
Name:           <B>browsecmd</B></I>
17
Class:          <B>browseCmd</B></I>
18
Switch:         <B>-browsecmd</B></I>
19
</code></code></code></pre>
20
<UL>
21
Specifies the command to execute when the user browses through the
22
files. By default, if the <B>-browsecmd</B></I> is specified, the browse
23
command will be executed when the user clicks on a filename in the
24
<I>Files</I></B> listbox.
25
</UL>
26
<P>
27
<pre><code><code><code>
28
Name:           <B>command</B></I>
29
Class:          <B>Command</B></I>
30
Switch:         <B>-command</B></I>
31
</code></code></code></pre>
32
<UL>
33
Specifies the command to execute when the FileSelectBox is
34
invoked. This command is executed with one parameter : the filename
35
selected by the user.
36
</UL>
37
<P>
38
<pre><code><code><code>
39
Name:           <B>directory</B></I>
40
Class:          <B>Directory</B></I>
41
Switch:         <B>-directory</B></I>
42
Alias:          <B>-dir</B></I>
43
</code></code></code></pre>
44
<UL>
45
Specifies the directory to look for files. By default this will be the
46
current working directory of the program and will be changed as the
47
user browses through the directories.
48
</UL>
49
<P>
50
<pre><code><code><code>
51
Name:           <B>disableCallback</B></I>
52
Class:          <B>DisableCallback</B></I>
53
Switch:         <B>-disablecallback</B></I>
54
</code></code></code></pre>
55
<UL>
56
A boolean value indicating whether callbacks should be disabled. When
57
set to true, the TCL command specified by the <B>-command</B></I> option
58
is not executed when the <B>-value</B></I> of the ExFileSelectBox
59
widget changes.
60
</UL>
61
<P>
62
<pre><code><code><code>
63
Name:           <B>pattern</B></I>
64
Class:          <B>Pattern</B></I>
65
Switch:         <B>-pattern</B></I>
66
</code></code></code></pre>
67
<UL>
68
Specifies the matching pattern of the file names that should be listed in
69
the <I>Files</I></B> listbox. For example "*.c" matches all the filenames that
70
end with ".c". If this option is set to the empty string, the default
71
pattern "*" will be used.
72
</UL>
73
<P>
74
<pre><code><code><code>
75
Name:           <B>value</B></I>
76
Class:          <B>Value</B></I>
77
Switch:         <B>-value</B></I>
78
Alias:          <B>-selection</B></I>
79
</code></code></code></pre>
80
<UL>
81
Specifies the name of the filename currently selected by the user.
82
</UL>
83
</pre><H3>SUBWIDGETS</H3>
84
<P>
85
<pre><code><code><code>
86
Name:           <B>dirlist</B></I>
87
Class:          <B>TixScrolledListBox</B></I>
88
</code></code></code></pre>
89
<UL>
90
The scrolled listbox that shows the directories.
91
</UL>
92
<P>
93
<pre><code><code><code>
94
Name:           <B>filelist</B></I>
95
Class:          <B>TixScrolledListBox</B></I>
96
</code></code></code></pre>
97
<UL>
98
The scrolled listbox that shows the files.
99
</UL>
100
<P>
101
<pre><code><code><code>
102
Name:           <B>filter</B></I>
103
Class:          <B>TixComboBox</B></I>
104
</code></code></code></pre>
105
<UL>
106
The ComboBox listbox that shows the filter string.
107
</UL>
108
<P>
109
<pre><code><code><code>
110
Name:           <B>selection</B></I>
111
Class:          <B>TixComboBox</B></I>
112
</code></code></code></pre>
113
<UL>
114
The ComboBox listbox that shows the file selection.
115
</UL>
116
</pre><HR>
117
</pre><H3>DESCRIPTION</H3>
118
<P>
119
The <B>tixFileSelectBox</B></I> command creates a new window (given by the
120
<I>pathName</I></B> argument) and makes it into a FileSelectBox widget.
121
Additional options, described above, may be specified on the command
122
line or in the option database to configure aspects of the
123
FileSelectBox such as its cursor and relief.
124
<P>
125
The FileSelectBox is similar to the standard Motif(TM) file-selection
126
box. It is generally used for the user to choose a file. FileSelectBox
127
stores the files mostly recently selected into a ComboBox widget so
128
that they can be quickly selected again. The <B>tixFileSelectDialog</B></I>
129
widget is a combination of the FileSelectBox widget and a dialog
130
widget.
131
</pre><H3>WIDGET COMMAND</H3>
132
<P>
133
The <B>tixFileSelectBox</B></I> command creates a new Tcl command whose
134
This command may be used to invoke various operations on the widget.
135
It has the following general form:
136
<pre>
137
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
138
<P>
139
</pre>
140
<I>PathName</I></B> is the name of the command, which is the same as the
141
<I>arg</I></B>s determine the exact behavior of the command.  The following
142
commands are possible for FileSelectBox widgets:
143
<DL>
144
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
145
</I></B>
146
<DD> Returns the current value of the configuration option given by
147
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
148
<B>tixFileSelectBox</B></I> command.
149
</DL>
150
<DL>
151
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
152
</I></B>
153
<DD> Query or modify the configuration options of the widget.  If no
154
<I>option</I></B> is specified, returns a list describing all of the
155
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
156
information on the format of this list).  If <I>option</I></B> is specified
157
with no <I>value</I></B>, then the command returns a list describing the
158
one named option (this list will be identical to the corresponding
159
sublist of the value returned if no <I>option</I></B> is specified).  If
160
one or more <I>option-value</I></B> pairs are specified, then the command
161
modifies the given widget option(s) to have the given value(s); in
162
this case the command returns an empty string.  <I>Option</I></B> may have
163
any of the values accepted by the <B>tixFileSelectBox</B></I> command.
164
</DL>
165
<DL>
166
<DT> <I>pathName <B>filter</B></I>
167
</I></B>
168
<DD> Updates the files listed in the FileSelectBox according to the
169
filtering pattern sepcified in the <B>filter</B></I> subwidget.
170
</DL>
171
<DL>
172
<DT> <I>pathName <B>invoke</B></I>
173
</I></B>
174
<DD> Execute the command specified by the <B>-command</B></I> option with the
175
filename stored in the <B>selection</B></I> subwidget.
176
</DL>
177
<DL>
178
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
179
</I></B>
180
<DD> When no options are given, this command returns the pathname of the
181
subwidget of the specified name.
182
 
183
When options are given, the widget command of the specified subwidget
184
will be called with these options.
185
</DL>
186
</pre><H3>DEFAULT BINDINGS</H3>
187
TIX automatically creates class bindings for FileSelectBoxes that give them
188
the following default behavior:
189
<UL>
190
[1] <BR>
191
Mouse button 1 in the <I>Directory</I></B> listbox will change the filter
192
string to the selected directory.
193
</UL>
194
<UL>
195
[2] <BR>
196
Mouse button 1 in the <I>Files</I></B> listbox will change the filename
197
that appears in the <I>Selection</I></B> entry. It will also trigger the
198
<B>-browsecmd</B></I> if the option has been specified.
199
</UL>
200
<UL>
201
[3] <BR>
202
The current directory will be changed by (1) double clicking the
203
<I>Directory</I></B> listbox or (2) invoking the <I>Filter</I></B> ComboBox.
204
Please refer to the man page of <B>tixComboBox</B></I> for the default
205
bindings of the ComboBoxes and how they can be invoked.
206
</UL>
207
<UL>
208
[4] <BR>
209
The command specified by the option -command will be invoked by (1)
210
double clicking the <I>Files</I></B> listbox or (2) invoking
211
<I>Selection</I></B> ComboBox.
212
</UL>
213
</pre><H3>KEYWORDS</H3>
214
tixFileSelectBox, tixComboBox, tixFileSelectDialog, Tix(n),
215
<hr><i>Last modified Sun Jan 19 22:34:24 EST 1997 </i> ---
216
<i>Serial 853731298</i>

powered by: WebSVN 2.1.0

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