1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1995 DSC Technologies Corporation
|
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 |
|
|
'\" @(#) fileselectiondialog.n 1.21 94/12/17 16:04:44
|
8 |
|
|
'\"
|
9 |
|
|
.so man.macros
|
10 |
|
|
.HS fileselectiondialog iwid
|
11 |
|
|
.BS
|
12 |
|
|
'\" Note: do not modify the .SH NAME line immediately below!
|
13 |
|
|
.SH NAME
|
14 |
|
|
fileselectiondialog \- Create and manipulate a file selection dialog widget
|
15 |
|
|
.SH SYNOPSIS
|
16 |
|
|
\fBfileselectiondialog\fI \fIpathName \fR?\fIoptions\fR?
|
17 |
|
|
.SH "INHERITANCE"
|
18 |
|
|
itk::Toplevel <- Shell <- Dialogshell <- Dialog <- Fileselectiondialog
|
19 |
|
|
.SH "STANDARD OPTIONS"
|
20 |
|
|
.LP
|
21 |
|
|
.nf
|
22 |
|
|
.ta 4c 8c 12c
|
23 |
|
|
\fBactiveBackground\fR \fBbackground\fR \fBborderWidth\fR \fBcursor\fR
|
24 |
|
|
\fBforeground\fR \fBhighlightColor\fR \fBhighlightThickness\fR \fBinsertBackground\fR
|
25 |
|
|
\fBinsertBorderWidth\fR \fBinsertOffTime\fR \fBinsertOnTime\fR \fBinsertWidth\fR
|
26 |
|
|
\fBselectBackground\fR \fBselectBorderWidth\fR \fBselectForeground\fR
|
27 |
|
|
.fi
|
28 |
|
|
.LP
|
29 |
|
|
See the "options" manual entry for details on the standard options.
|
30 |
|
|
.SH "ASSOCIATED OPTIONS"
|
31 |
|
|
.LP
|
32 |
|
|
.nf
|
33 |
|
|
.ta 4c 8c 12c
|
34 |
|
|
\fBtextBackground\fR \fBtextFont\fR
|
35 |
|
|
.fi
|
36 |
|
|
.LP
|
37 |
|
|
See the "entryfield" widget manual entry for details on the above associated
|
38 |
|
|
options.
|
39 |
|
|
.LP
|
40 |
|
|
.nf
|
41 |
|
|
.ta 4c 8c 12c
|
42 |
|
|
\fBchildSitePos\fR \fBdirectory\fR \fBdirsLabel\fR \fBdirSearchCommand\fR
|
43 |
|
|
\fBdirsOn\fR \fBfilesLabel\fR \fBfilesLabelOn\fR \fBfileSearchCommand\fR
|
44 |
|
|
\fBfilesOn\fR \fBfileType\fR \fBfilterLabel\fR \fBfilterOn\fR
|
45 |
|
|
\fBinvalid\fR \fBmask\fR \fBnoMatchString\fR \fBselectionLabel\fR
|
46 |
|
|
\fBselectionOn\fR
|
47 |
|
|
.fi
|
48 |
|
|
.LP
|
49 |
|
|
See the "fileselectionbox" widget manual entry for details on the above
|
50 |
|
|
associated options.
|
51 |
|
|
.LP
|
52 |
|
|
.nf
|
53 |
|
|
.ta 4c 8c 12c
|
54 |
|
|
\fBlabelFont\fR
|
55 |
|
|
.fi
|
56 |
|
|
.LP
|
57 |
|
|
See the "labeledwidget" widget manual entry for details on the above
|
58 |
|
|
associated options.
|
59 |
|
|
.LP
|
60 |
|
|
.nf
|
61 |
|
|
.ta 4c 8c 12c
|
62 |
|
|
\fBtextBackground\fR \fBtextFont\fR
|
63 |
|
|
.fi
|
64 |
|
|
.LP
|
65 |
|
|
See the "scrolledlistbox" widget manual entry for details on the above
|
66 |
|
|
associated options.
|
67 |
|
|
.LP
|
68 |
|
|
.nf
|
69 |
|
|
.ta 4c 8c 12c
|
70 |
|
|
\fBactiveRelief\fR \fBelementBorderWidth\fR \fBjump\fR \fBtroughColor\fR
|
71 |
|
|
.fi
|
72 |
|
|
.LP
|
73 |
|
|
See the "scrollbar" widget class manual entry for details on the above
|
74 |
|
|
associated options.
|
75 |
|
|
|
76 |
|
|
.SH "INHERITED OPTIONS"
|
77 |
|
|
.LP
|
78 |
|
|
.nf
|
79 |
|
|
.ta 4c 8c 12c
|
80 |
|
|
\fBbuttonBoxPadX\fR \fBbuttonBoxPadY\fR \fBbuttonBoxPos\fR \fBpadX\fR
|
81 |
|
|
\fBpadY\fR \fBseparator\fR \fBthickness\fR
|
82 |
|
|
.fi
|
83 |
|
|
.LP
|
84 |
|
|
See the "dialogshell" widget manual entry for details on the above
|
85 |
|
|
inherited options.
|
86 |
|
|
.LP
|
87 |
|
|
.nf
|
88 |
|
|
.ta 4c 8c 12c
|
89 |
|
|
\fBheight\fR \fBmaster\fR \fBmodality\fR \fBwidth\fR
|
90 |
|
|
.fi
|
91 |
|
|
.LP
|
92 |
|
|
See the "shell" widget manual entry for details on the above
|
93 |
|
|
inherited options.
|
94 |
|
|
.LP
|
95 |
|
|
.nf
|
96 |
|
|
.ta 4c 8c 12c
|
97 |
|
|
\fBtitle\fR
|
98 |
|
|
.fi
|
99 |
|
|
.LP
|
100 |
|
|
See the "Toplevel" widget manual entry for details on the above
|
101 |
|
|
inherited options.
|
102 |
|
|
.BE
|
103 |
|
|
|
104 |
|
|
.SH DESCRIPTION
|
105 |
|
|
.PP
|
106 |
|
|
The \fBfileselectiondialog\fR command creates a file selection dialog
|
107 |
|
|
similar to the OSF/Motif standard composite widget. The
|
108 |
|
|
fileselectiondialog is derived from the Dialog class and is composed of
|
109 |
|
|
a FileSelectionBox with attributes set to manipulate the dialog buttons.
|
110 |
|
|
|
111 |
|
|
.SH "METHODS"
|
112 |
|
|
.PP
|
113 |
|
|
The \fBfileselectiondialog\fR command creates a new Tcl command whose
|
114 |
|
|
name is \fIpathName\fR. This
|
115 |
|
|
command may be used to invoke various
|
116 |
|
|
operations on the widget. It has the following general form:
|
117 |
|
|
.DS C
|
118 |
|
|
\fIpathName option \fR?\fIarg arg ...\fR?
|
119 |
|
|
.DE
|
120 |
|
|
\fIOption\fR and the \fIarg\fRs
|
121 |
|
|
determine the exact behavior of the command. The following
|
122 |
|
|
commands are possible for fileselectiondialog widgets:
|
123 |
|
|
.SH "ASSOCIATED METHODS"
|
124 |
|
|
.LP
|
125 |
|
|
.nf
|
126 |
|
|
.ta 4c 8c 12c
|
127 |
|
|
\fBget\fR \fBchildsite\fR \fBfilter\fR
|
128 |
|
|
.fi
|
129 |
|
|
.LP
|
130 |
|
|
See the "fileselectionbox" class manual entry for details on the
|
131 |
|
|
associated methods.
|
132 |
|
|
.SH "INHERITED METHODS"
|
133 |
|
|
.LP
|
134 |
|
|
.nf
|
135 |
|
|
.ta 4c 8c 12c
|
136 |
|
|
\fBadd\fR \fBbuttonconfigure\fR \fBdefault\fR \fBhide\fR
|
137 |
|
|
\fBinsert\fR \fBinvoke\fR \fBshow\fR
|
138 |
|
|
.fi
|
139 |
|
|
.LP
|
140 |
|
|
See the "buttonbox" widget manual entry for details on the above
|
141 |
|
|
inherited methods.
|
142 |
|
|
.LP
|
143 |
|
|
.nf
|
144 |
|
|
.ta 4c 8c 12c
|
145 |
|
|
\fBactivate\fR \fBcenter\fR \fBdeactivate\fR
|
146 |
|
|
.fi
|
147 |
|
|
.LP
|
148 |
|
|
See the "shell" widget manual entry for details on the above
|
149 |
|
|
inherited methods.
|
150 |
|
|
|
151 |
|
|
.SH "WIDGET-SPECIFIC METHODS"
|
152 |
|
|
.TP
|
153 |
|
|
\fIpathName \fBcget\fR \fIoption\fR
|
154 |
|
|
Returns the current value of the configuration option given
|
155 |
|
|
by \fIoption\fR.
|
156 |
|
|
\fIOption\fR may have any of the values accepted by
|
157 |
|
|
the \fBfileselectiondialog\fR command.
|
158 |
|
|
.TP
|
159 |
|
|
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
160 |
|
|
Query or modify the configuration options of the widget.
|
161 |
|
|
If no \fIoption\fR is specified, returns a list describing all of
|
162 |
|
|
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
|
163 |
|
|
information on the format of this list). If \fIoption\fR is specified
|
164 |
|
|
with no \fIvalue\fR, then the command returns a list describing the
|
165 |
|
|
one named option (this list will be identical to the corresponding
|
166 |
|
|
sublist of the value returned if no \fIoption\fR is specified). If
|
167 |
|
|
one or more \fIoption\-value\fR pairs are specified, then the command
|
168 |
|
|
modifies the given widget option(s) to have the given value(s); in
|
169 |
|
|
this case the command returns an empty string.
|
170 |
|
|
\fIOption\fR may have any of the values accepted by
|
171 |
|
|
the \fBfileselectiondialog\fR
|
172 |
|
|
command.
|
173 |
|
|
|
174 |
|
|
.SH "COMPONENTS"
|
175 |
|
|
.LP
|
176 |
|
|
.nf
|
177 |
|
|
Name: \fBfsb\fR
|
178 |
|
|
Class: \fBFileselectionbox\fR
|
179 |
|
|
.fi
|
180 |
|
|
.IP
|
181 |
|
|
The fsb component is the file selection box for the file selection dialog.
|
182 |
|
|
See the "fileselectionbox" widget manual entry for details on the fsb
|
183 |
|
|
component item.
|
184 |
|
|
.fi
|
185 |
|
|
|
186 |
|
|
.SH EXAMPLE
|
187 |
|
|
.DS
|
188 |
|
|
#
|
189 |
|
|
# Non-modal example
|
190 |
|
|
#
|
191 |
|
|
proc okCallback {} {
|
192 |
|
|
puts "You selected [.nmfsd get]"
|
193 |
|
|
.nmfsd deactivate
|
194 |
|
|
}
|
195 |
|
|
|
196 |
|
|
fileselectiondialog .nmfsd -title Non-Modal
|
197 |
|
|
.nmfsd buttonconfigure OK -command okCallback
|
198 |
|
|
|
199 |
|
|
.nmfsd activate
|
200 |
|
|
|
201 |
|
|
#
|
202 |
|
|
# Modal example
|
203 |
|
|
#
|
204 |
|
|
fileselectiondialog .mfsd -modality application
|
205 |
|
|
.mfsd center
|
206 |
|
|
|
207 |
|
|
if {[.mfsd activate]} {
|
208 |
|
|
puts "You selected [.mfsd get]"
|
209 |
|
|
} else {
|
210 |
|
|
puts "You cancelled the dialog"
|
211 |
|
|
}
|
212 |
|
|
.DE
|
213 |
|
|
.SH AUTHOR
|
214 |
|
|
Mark L. Ulferts
|
215 |
|
|
.SH KEYWORDS
|
216 |
|
|
fileselectiondialog, fileselectionbox, dialog, dialogshell, shell, widget
|