|
Packit |
b099d7 |
'\" t
|
|
Packit |
b099d7 |
...\" FileSelA.sgm /main/12 1996/09/26 14:54:48 cdedoc $
|
|
Packit |
b099d7 |
.de P!
|
|
Packit |
b099d7 |
.fl
|
|
Packit |
b099d7 |
\!!1 setgray
|
|
Packit |
b099d7 |
.fl
|
|
Packit |
b099d7 |
\\&.\"
|
|
Packit |
b099d7 |
.fl
|
|
Packit |
b099d7 |
\!!0 setgray
|
|
Packit |
b099d7 |
.fl \" force out current output buffer
|
|
Packit |
b099d7 |
\!!save /psv exch def currentpoint translate 0 0 moveto
|
|
Packit |
b099d7 |
\!!/showpage{}def
|
|
Packit |
b099d7 |
.fl \" prolog
|
|
Packit |
b099d7 |
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
|
|
Packit |
b099d7 |
\!!psv restore
|
|
Packit |
b099d7 |
.
|
|
Packit |
b099d7 |
.de pF
|
|
Packit |
b099d7 |
.ie ?\\*(f1?? .ds f1 \\n(.f
|
|
Packit |
b099d7 |
.el .ie ?\\*(f2?? .ds f2 \\n(.f
|
|
Packit |
b099d7 |
.el .ie ?\\*(f3?? .ds f3 \\n(.f
|
|
Packit |
b099d7 |
.el .ie ?\\*(f4?? .ds f4 \\n(.f
|
|
Packit |
b099d7 |
.el .tm ? font overflow
|
|
Packit |
b099d7 |
.ft \\$1
|
|
Packit |
b099d7 |
..
|
|
Packit |
b099d7 |
.de fP
|
|
Packit |
b099d7 |
.ie !?\\*(f4?? \{\
|
|
Packit |
b099d7 |
. ft \\*(f4
|
|
Packit |
b099d7 |
. ds f4\"
|
|
Packit |
b099d7 |
' br \}
|
|
Packit |
b099d7 |
.el .ie !?\\*(f3?? \{\
|
|
Packit |
b099d7 |
. ft \\*(f3
|
|
Packit |
b099d7 |
. ds f3\"
|
|
Packit |
b099d7 |
' br \}
|
|
Packit |
b099d7 |
.el .ie !?\\*(f2?? \{\
|
|
Packit |
b099d7 |
. ft \\*(f2
|
|
Packit |
b099d7 |
. ds f2\"
|
|
Packit |
b099d7 |
' br \}
|
|
Packit |
b099d7 |
.el .ie !?\\*(f1?? \{\
|
|
Packit |
b099d7 |
. ft \\*(f1
|
|
Packit |
b099d7 |
. ds f1\"
|
|
Packit |
b099d7 |
' br \}
|
|
Packit |
b099d7 |
.el .tm ? font underflow
|
|
Packit |
b099d7 |
..
|
|
Packit |
b099d7 |
.ds f1\"
|
|
Packit |
b099d7 |
.ds f2\"
|
|
Packit |
b099d7 |
.ds f3\"
|
|
Packit |
b099d7 |
.ds f4\"
|
|
Packit |
b099d7 |
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
|
|
Packit |
b099d7 |
.TH "XmFileSelectionBox" "library call"
|
|
Packit |
b099d7 |
.SH "NAME"
|
|
Packit |
b099d7 |
\fBXmFileSelectionBox\fP \(em The FileSelectionBox widget class
|
|
Packit |
b099d7 |
.iX "XmFileSelectionBox"
|
|
Packit |
b099d7 |
.iX "widget class" "FileSelectionBox"
|
|
Packit |
b099d7 |
.SH "SYNOPSIS"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
#include <Xm/FileSB\&.h>
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.SH "DESCRIPTION"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox traverses
|
|
Packit |
b099d7 |
through directories, views the files and subdirectories in them,
|
|
Packit |
b099d7 |
and then selects files\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A FileSelectionBox has five main areas:
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
A text input field for displaying and editing a directory mask used to
|
|
Packit |
b099d7 |
select the files to be displayed
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
An optional text input field for displaying and editing a filter mask
|
|
Packit |
b099d7 |
used to select the files to be displayed\&.
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
A scrollable list of filenames
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
A scrollable list of subdirectories
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
A text input field for displaying and editing a filename
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
A group of PushButtons,
|
|
Packit |
b099d7 |
labeled \fBOK\fP, \fBFilter\fP, \fBCancel\fP, and \fBHelp\fP\&.
|
|
Packit |
b099d7 |
The layout direction of the buttons depends on the
|
|
Packit |
b099d7 |
\fBXmNlayoutDirection\fP resource\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
####Additional children may be added to the FileSelectionBox after
|
|
Packit |
b099d7 |
creation\&.
|
|
Packit |
b099d7 |
FileSelectionBox inherits the layout functionality provided
|
|
Packit |
b099d7 |
by SelectionBox for any additional children\&.
|
|
Packit |
b099d7 |
To remove the list of filenames, the list of subdirectories, or both
|
|
Packit |
b099d7 |
from the FileSelectionBox after creation, unmanage the
|
|
Packit |
b099d7 |
appropriate widgets and their labels\&.
|
|
Packit |
b099d7 |
The list and label widgets are obtained through a call to the
|
|
Packit |
b099d7 |
\fBXmFileSelectionBoxGetChild\fP function\&.
|
|
Packit |
b099d7 |
To remove either the directory list or the file list, unmanage the
|
|
Packit |
b099d7 |
parent of the appropriate list widget and unmanage the corresponding
|
|
Packit |
b099d7 |
label\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The user can specify resources in a resource file for the automatically
|
|
Packit |
b099d7 |
created widgets and gadgets of FileSelectionBox\&. The following list
|
|
Packit |
b099d7 |
identifies the names of these widgets (or gadgets) and the associated
|
|
Packit |
b099d7 |
FileSelectionBox areas:
|
|
Packit |
b099d7 |
.IP "FilterLabel" 10
|
|
Packit |
b099d7 |
\fBFilterText\fP
|
|
Packit |
b099d7 |
.IP "Filter Text" 10
|
|
Packit |
b099d7 |
\fBTextField\fP
|
|
Packit |
b099d7 |
.IP "Directory List" 10
|
|
Packit |
b099d7 |
\fBDirList\fP
|
|
Packit |
b099d7 |
.IP "Directory List Label" 10
|
|
Packit |
b099d7 |
\fBDir\fP
|
|
Packit |
b099d7 |
.IP "DirL" 10
|
|
Packit |
b099d7 |
\fBLabel\fP
|
|
Packit |
b099d7 |
.IP "DirText" 10
|
|
Packit |
b099d7 |
\fBTextField\fP
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The directory mask is a string specifying the base directory to be
|
|
Packit |
b099d7 |
examined and a search pattern\&.
|
|
Packit |
b099d7 |
Ordinarily, the directory list displays the subdirectories of the base
|
|
Packit |
b099d7 |
directory, as well as the base directory itself and its parent
|
|
Packit |
b099d7 |
directory\&.
|
|
Packit |
b099d7 |
The file list ordinarily displays all files and/or subdirectories in the
|
|
Packit |
b099d7 |
base directory that match the search pattern\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Optionally, the search pattern mask and the base directory can be
|
|
Packit |
b099d7 |
displayed in two separate text fields\&. This option is controlled by
|
|
Packit |
b099d7 |
the \fBXmNpathMode\fP resource\&. Using this alternate
|
|
Packit |
b099d7 |
display does not change the meaning of resources that control the
|
|
Packit |
b099d7 |
content of these fields: \fBXmNdirectory\fP, \fBXmNdirMask\fP,
|
|
Packit |
b099d7 |
\fBXmNpattern\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A procedure specified by the \fBXmNqualifySearchDataProc\fP resource
|
|
Packit |
b099d7 |
extracts the base directory and search pattern from the directory mask\&.
|
|
Packit |
b099d7 |
If the directory specification is empty, the current working directory
|
|
Packit |
b099d7 |
is used\&.
|
|
Packit |
b099d7 |
If the search pattern is empty, a pattern that matches all files is
|
|
Packit |
b099d7 |
used\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
An application can supply its own \fBXmNqualifySearchDataProc\fP as well
|
|
Packit |
b099d7 |
as its own procedures to search for subdirectories and files\&.
|
|
Packit |
b099d7 |
The default \fBXmNqualifySearchDataProc\fP works as follows:
|
|
Packit |
b099d7 |
The directory mask is a pathname that can contain zero or more
|
|
Packit |
b099d7 |
\fIwildcard\fP characters in its directory portion, its file portion, or
|
|
Packit |
b099d7 |
both\&.
|
|
Packit |
b099d7 |
The directory components of the directory mask \(em up to, but not
|
|
Packit |
b099d7 |
including, the first component with a wildcard character \(em specify the
|
|
Packit |
b099d7 |
directory to be searched, relative to the current working directory\&.
|
|
Packit |
b099d7 |
The remaining components specify the search pattern\&.
|
|
Packit |
b099d7 |
If the directory mask is empty or if its first component contains a
|
|
Packit |
b099d7 |
wildcard character, the current working directory is searched\&.
|
|
Packit |
b099d7 |
If no component of the directory mask contains a wildcard character, the
|
|
Packit |
b099d7 |
entire directory mask is the directory specification, and all files in
|
|
Packit |
b099d7 |
that directory are matched\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The user can select a new directory to examine by scrolling through the
|
|
Packit |
b099d7 |
list of directories and selecting the desired directory or by editing
|
|
Packit |
b099d7 |
the directory mask\&.
|
|
Packit |
b099d7 |
Selecting a new directory from the directory list does not change the
|
|
Packit |
b099d7 |
search pattern\&.
|
|
Packit |
b099d7 |
A user can select a new search pattern by editing the directory mask
|
|
Packit |
b099d7 |
or, when the FileSelectionBox has the optional \fBXmNpathMode
|
|
Packit |
b099d7 |
XmPATH_MODE_RELATIVE\fP display, the filter text field\&.
|
|
Packit |
b099d7 |
Double clicking or pressing \fBKActivate\fP on a directory in the
|
|
Packit |
b099d7 |
directory list initiates a search for files and subdirectories in the
|
|
Packit |
b099d7 |
new directory, using the current search pattern\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The user can select a file by scrolling through the list of filenames
|
|
Packit |
b099d7 |
and selecting the desired file or by entering the filename directly into
|
|
Packit |
b099d7 |
the text edit area\&.
|
|
Packit |
b099d7 |
Selecting a file from the list causes that filename to appear in the
|
|
Packit |
b099d7 |
file selection text edit area\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The user may select a new file as many times as desired\&.
|
|
Packit |
b099d7 |
The application is not notified until the user takes one of the
|
|
Packit |
b099d7 |
following actions:
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Selects the \fBOK\fP PushButton
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Presses \fBKActivate\fP while the selection text edit area has the
|
|
Packit |
b099d7 |
keyboard focus
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Double clicks or presses \fBKActivate\fP on an item in the file list
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox initiates a directory and file search when any of the
|
|
Packit |
b099d7 |
following occurs:
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The FileSelectionBox is initialized
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The function \fBXtSetValues\fP is used to change \fBXmNdirMask\fP,
|
|
Packit |
b099d7 |
\fBXmNdirectory\fP, \fBXmNpattern\fP, or \fBXmNfileTypeMask\fP
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The user activates the \fBFilter\fP PushButton
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The user double clicks or presses \fBKActivate\fP on an item in the
|
|
Packit |
b099d7 |
directory list
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The application calls \fBXmFileSelectionDoSearch\fP
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
The user presses \fBKActivate\fP while the directory mask text edit area
|
|
Packit |
b099d7 |
has the keyboard focus
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
When a file search is initiated, the FileSelectionBox takes the
|
|
Packit |
b099d7 |
following actions:
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Constructs an \fBXmFileSelectionBoxCallbackStruct\fR structure with
|
|
Packit |
b099d7 |
values appropriate for the action that initiated the search
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Calls the \fBXmNqualifySearchDataProc\fP with the callback structure as
|
|
Packit |
b099d7 |
the data input argument
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Sets \fBXmNdirectoryValid\fP and \fBXmNlistUpdated\fP to False
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Calls the \fBXmNdirSearchProc\fP with the qualified data returned by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
If \fBXmNdirectoryValid\fP is True, the FileSelectionBox takes the
|
|
Packit |
b099d7 |
following additional actions:
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Sets \fBXmNlistUpdated\fP to False
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Calls the \fBXmNfileSearchProc\fP with the qualified data returned by
|
|
Packit |
b099d7 |
the \fBXmNqualifySearchDataProc\fP (and possibly modified by the
|
|
Packit |
b099d7 |
\fBXmNdirSearchProc\fP)
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
If \fBXmNlistUpdated\fP is True and the file list is empty, displays the
|
|
Packit |
b099d7 |
\fBXmNnoMatchString\fP in the file list and clears the selection text
|
|
Packit |
b099d7 |
and \fBXmNdirSpec\fP
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
If \fBXmNlistUpdated\fP is True and the file list is not empty, sets the
|
|
Packit |
b099d7 |
selection text and \fBXmNdirSpec\fP to the qualified \fIdir\fP returned
|
|
Packit |
b099d7 |
by the \fBXmNqualifySearchDataProc\fP (and possibly modified by the
|
|
Packit |
b099d7 |
\fBXmNdirSearchProc\fP)
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Sets the directory mask text and \fBXmNdirMask\fP to the qualified
|
|
Packit |
b099d7 |
\fImask\fP returned by the \fBXmNqualifySearchDataProc\fP (and possibly
|
|
Packit |
b099d7 |
modified by the \fBXmNdirSearchProc\fP)
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Sets \fBXmNdirectory\fP to the qualified \fIdir\fP returned by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
|
|
Packit |
b099d7 |
\fBXmNdirSearchProc\fP)
|
|
Packit |
b099d7 |
.IP " \(bu" 6
|
|
Packit |
b099d7 |
Sets \fBXmNpattern\fP to the qualified \fIpattern\fP returned by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
|
|
Packit |
b099d7 |
\fBXmNdirSearchProc\fP)
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox uses the \fBXmQTactivatable\fP trait\&.
|
|
Packit |
b099d7 |
.SS "Data Transfer Behavior"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
Child widgets of a FileSelectionBox support the data transfer operations
|
|
Packit |
b099d7 |
and targets associated with their widget classes\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
In addition, if the source of a data transfer is the directory list and
|
|
Packit |
b099d7 |
if \fBXmNdirSearchProc\fP has its default value, the directory list
|
|
Packit |
b099d7 |
supports the \fBFILE\fP and \fBFILE_NAME\fP targets\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
If the source of a data transfer is the file list and if
|
|
Packit |
b099d7 |
\fBXmNfileSearchProc\fP has its default value, the file list supports
|
|
Packit |
b099d7 |
the \fBFILE\fP and \fBFILE_NAME\fP targets\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
In either case, FileSelectionBox adds an \fBXmNconvertCallback\fP
|
|
Packit |
b099d7 |
procedure to the appropriate list\&.
|
|
Packit |
b099d7 |
This procedure adds \fBFILE\fP and \fBFILE_NAME\fP to the \fBTARGETS\fP
|
|
Packit |
b099d7 |
returned by the list\&.
|
|
Packit |
b099d7 |
It treats requests for conversion of a selection to \fBFILE\fP and
|
|
Packit |
b099d7 |
\fBFILE_NAME\fP exactly like requests for conversion to \fBTEXT\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
If an application changes \fBXmNdirSearchProc\fP or
|
|
Packit |
b099d7 |
\fBXmNfileSearchProc\fP and wants to support the \fBFILE\fP and
|
|
Packit |
b099d7 |
\fBFILE_NAME\fP targets on the corresponding list, it must provide
|
|
Packit |
b099d7 |
support itself by adding a procedure to the list\&'s
|
|
Packit |
b099d7 |
\fBXmNconvertCallback\fP list\&.
|
|
Packit |
b099d7 |
.SS "Descendants"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox automatically creates the descendants shown in the
|
|
Packit |
b099d7 |
following table\&.
|
|
Packit |
b099d7 |
An application can use \fBXtNameToWidget\fP to gain access
|
|
Packit |
b099d7 |
to the named descendant\&. In addition, a user or an application
|
|
Packit |
b099d7 |
can use the named descendant when specifying resource values\&.
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
l| l| l.
|
|
Packit |
b099d7 |
\fBNamed Descendant\fP?\fBClass\fP?\fBIdentity\fP
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
=
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBApply\fP?\fBXmPushButtonGadget\fP?Apply button
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBCancel\fP?\fBXmPushButtonGadget\fP?Cancel button
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBDir\fP?\fBXmLabelGadget\fP?title above list of directories
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBDirList\fP?\fBXmList\fP?list of directories
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBDirListSW\fP?\fBXmScrolledWindow\fP?ScrolledWindow parent of \fBDirList\fP
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBFilterLabel\fP?\fBXmLabelGadget\fP?title above filter box
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBFilterText\fP?\fBXmText\fP or \fBXmTextField\fP?text within filter box
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBHelp\fP?\fBXmPushButtonGadget\fP?Help button
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBItems\fP?\fBXmLabelGadget\fP?title above list of filenames
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBItemsList\fP?\fBXmList\fP?list of filenames
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBItemsListSW\fP?\fBXmScrolledWindow\fP?ScrolledWindow parent of \fBItemsList\fP
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBOK\fP?\fBXmPushButtonGadget\fP?OK button
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBSelection\fP?\fBXmLabelGadget\fP?title above selection box
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBSeparator\fP?\fBXmSeparatorGadget\fP?optional dividing line
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
\fBText\fP?\fBXmText\fP or \fBXmTextField\fP?text within selection box
|
|
Packit |
b099d7 |
_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.SS "Classes"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox inherits behavior,
|
|
Packit |
b099d7 |
resources, and traits from \fBCore\fP, \fBComposite\fP,
|
|
Packit |
b099d7 |
\fBConstraint\fP, \fBXmManager\fP,
|
|
Packit |
b099d7 |
\fBXmBulletinBoard\fP, and \fBXmSelectionBox\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The class pointer is \fBxmFileSelectionBoxWidgetClass\fP\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The class name is \fBXmFileSelectionBox\fP\&.
|
|
Packit |
b099d7 |
.SS "New Resources"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The following table defines a set of widget resources used by the programmer
|
|
Packit |
b099d7 |
to specify data\&. The programmer can also set the resource values for the
|
|
Packit |
b099d7 |
inherited classes to set attributes for this widget\&. To reference a
|
|
Packit |
b099d7 |
resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
|
|
Packit |
b099d7 |
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
|
|
Packit |
b099d7 |
values for a resource in a \fB\&.Xdefaults\fP file,
|
|
Packit |
b099d7 |
remove the \fBXm\fP prefix and use
|
|
Packit |
b099d7 |
the remaining letters (in either lowercase or uppercase, but include any
|
|
Packit |
b099d7 |
underscores between words)\&.
|
|
Packit |
b099d7 |
The codes in the access column indicate if the given resource can be
|
|
Packit |
b099d7 |
set at creation time (C),
|
|
Packit |
b099d7 |
set by using \fBXtSetValues\fP (S),
|
|
Packit |
b099d7 |
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBXmFileSelectionBox Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirectory?XmCDirectory?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirectoryValid?XmCDirectoryValid?Boolean?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirListItems?XmCDirListItems?XmStringTable?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirListItemCount?XmCDirListItemCount?int?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirListLabelString?XmCDirListLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirMask?XmCDirMask?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirSearchProc?XmCDirSearchProc?XmSearchProc?default procedure?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirSpec?XmCDirSpec?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdirTextLabelString?XmCDirTextLabelString?XmString?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileFilterStyle?XmCFileFilterStyle?XtEnum?XmFILTER_NONE?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileListItems?XmCItems?XmStringTable?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileListItemCount?XmCItemCount?int?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileListLabelString?XmCFileListLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileSearchProc?XmCFileSearchProc?XmSearchProc?default procedure?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfileTypeMask?XmCFileTypeMask?unsigned char?XmFILE_REGULAR?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfilterLabelString?XmCFilterLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlistUpdated?XmCListUpdated?Boolean?dynamic?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnoMatchString?XmCNoMatchString?XmString?T{
|
|
Packit |
b099d7 |
"\0[\0\0\0\0]\0"
|
|
Packit |
b099d7 |
T}?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNpathMode?XmCPathMode?XtEnum?XmPATH_MODE_FULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNpattern?XmCPattern?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNqualifySearchDataProc?XmCQualifySearchDataProc?XmQualifyProc?default procedure?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.IP "\fBXmNdirectory\fP" 10
|
|
Packit |
b099d7 |
Specifies the base directory used in combination with \fBXmNpattern\fP
|
|
Packit |
b099d7 |
in determining the files and directories to be displayed\&.
|
|
Packit |
b099d7 |
The default value is determined by the \fBXmNqualifySearchDataProc\fP
|
|
Packit |
b099d7 |
and depends on the initial values of \fBXmNdirMask\fP,
|
|
Packit |
b099d7 |
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
|
|
Packit |
b099d7 |
If the default is NULL or empty, the current working directory is used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirectoryValid\fP" 10
|
|
Packit |
b099d7 |
Specifies an attribute that is set only by the directory search
|
|
Packit |
b099d7 |
procedure\&.
|
|
Packit |
b099d7 |
The value is set to True if the directory passed to the directory search
|
|
Packit |
b099d7 |
procedure can actually be searched\&.
|
|
Packit |
b099d7 |
If this value is False the file search procedure is not called, and
|
|
Packit |
b099d7 |
\fBXmNdirMask\fP, \fBXmNdirectory\fP, and \fBXmNpattern\fP are not
|
|
Packit |
b099d7 |
changed\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirListItems\fP" 10
|
|
Packit |
b099d7 |
Specifies the items in the directory list\&.
|
|
Packit |
b099d7 |
\fBXtGetValues\fP for this resource returns the list items themselves,
|
|
Packit |
b099d7 |
not a copy of the list items\&.
|
|
Packit |
b099d7 |
The application must not free the returned items\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirListItemCount\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of items in the directory list\&.
|
|
Packit |
b099d7 |
The value must not be negative\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirListLabelString\fP" 10
|
|
Packit |
b099d7 |
Specifies the label string of the directory list\&.
|
|
Packit |
b099d7 |
The default for this resource depends on the locale\&.
|
|
Packit |
b099d7 |
In the C locale the default is \fBDirectories\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
Now that some default localized label strings are provided through
|
|
Packit |
b099d7 |
message catalogs for the children of composite widgets, the
|
|
Packit |
b099d7 |
\fBlabelString\fP resources
|
|
Packit |
b099d7 |
cannot be set on the child through default resource files\&.
|
|
Packit |
b099d7 |
Instead, the resource provided at the parent level must be used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirMask\fP" 10
|
|
Packit |
b099d7 |
Specifies the directory mask used
|
|
Packit |
b099d7 |
in determining the files and directories to be displayed\&.
|
|
Packit |
b099d7 |
The default value is determined by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP
|
|
Packit |
b099d7 |
and depends on the initial values of \fBXmNdirMask\fP,
|
|
Packit |
b099d7 |
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirSearchProc\fP" 10
|
|
Packit |
b099d7 |
Specifies a directory search procedure to replace the default
|
|
Packit |
b099d7 |
directory search procedure\&.
|
|
Packit |
b099d7 |
FileSelectionBox\&'s default directory search procedure fulfills the needs
|
|
Packit |
b099d7 |
of most applications\&.
|
|
Packit |
b099d7 |
Because it is impossible to cover the requirements of all applications,
|
|
Packit |
b099d7 |
you can replace the default search procedure\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The directory search procedure is called with two arguments:
|
|
Packit |
b099d7 |
the FileSelectionBox widget and a pointer to an
|
|
Packit |
b099d7 |
\fBXmFileSelectionBoxCallbackStruct\fR structure\&.
|
|
Packit |
b099d7 |
The callback structure is generated by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP and contains all information required to
|
|
Packit |
b099d7 |
conduct a directory search, including the directory mask and a qualified
|
|
Packit |
b099d7 |
base directory and search pattern\&.
|
|
Packit |
b099d7 |
Once called, it is up to the search routine to generate a new list of
|
|
Packit |
b099d7 |
directories and update the FileSelectionBox widget by using
|
|
Packit |
b099d7 |
\fBXtSetValues\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The search procedure must set \fBXmNdirectoryValid\fP and
|
|
Packit |
b099d7 |
\fBXmNlistUpdated\fP\&.
|
|
Packit |
b099d7 |
If it generates a new list of directories, it must also set
|
|
Packit |
b099d7 |
\fBXmNdirListItems\fP and \fBXmNdirListItemCount\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the search procedure cannot search the specified directory, it must
|
|
Packit |
b099d7 |
warn the user and set \fBXmNdirectoryValid\fP and \fBXmNlistUpdated\fP
|
|
Packit |
b099d7 |
to False, unless it prompts and subsequently obtains a valid directory\&.
|
|
Packit |
b099d7 |
If the directory is valid but is the same as the current
|
|
Packit |
b099d7 |
\fBXmNdirectory\fP, the search procedure must set
|
|
Packit |
b099d7 |
\fBXmNdirectoryValid\fP to True, but it may elect not to generate a new
|
|
Packit |
b099d7 |
list of directories\&.
|
|
Packit |
b099d7 |
In this case, it must set \fBXmNlistUpdated\fP to False\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the search procedure generates a new list of directories, it must set
|
|
Packit |
b099d7 |
\fBXmNdirListItems\fP to the new list of directories and
|
|
Packit |
b099d7 |
\fBXmNdirListItemCount\fP to the number of items in the list\&.
|
|
Packit |
b099d7 |
If there are no directories, it sets \fBXmNdirListItems\fP to NULL and
|
|
Packit |
b099d7 |
\fBXmNdirListItemCount\fP to 0 (zero)\&.
|
|
Packit |
b099d7 |
In either case, it must set \fBXmNdirectoryValid\fP and
|
|
Packit |
b099d7 |
\fBXmNlistUpdated\fP to True\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The search procedure ordinarily should not change the callback structure\&.
|
|
Packit |
b099d7 |
But if the original directory is not valid, the search procedure may
|
|
Packit |
b099d7 |
obtain a new directory from the user\&.
|
|
Packit |
b099d7 |
In this case, it should set the \fIdir\fP member of the callback structure
|
|
Packit |
b099d7 |
to the new directory,
|
|
Packit |
b099d7 |
call the \fBXmNqualifySearchDataProc\fP with the
|
|
Packit |
b099d7 |
callback struct as the input argument, and copy the qualified data
|
|
Packit |
b099d7 |
returned by the \fBXmNqualifySearchDataProc\fP into the callback struct\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirSpec\fP" 10
|
|
Packit |
b099d7 |
Specifies the full file path specification\&.
|
|
Packit |
b099d7 |
This is the \fBXmNtextString\fP resource in SelectionBox, renamed for
|
|
Packit |
b099d7 |
FileSelectionBox\&.
|
|
Packit |
b099d7 |
The default value is determined by the FileSelectionBox after conducting
|
|
Packit |
b099d7 |
the initial directory and file search\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNdirTextLabelString\fP" 10
|
|
Packit |
b099d7 |
Uses the specified \fBXmString\fR as the label above the TextField
|
|
Packit |
b099d7 |
directory\&. The resource takes effect when the \fBXmNpathMode\fP
|
|
Packit |
b099d7 |
resource has a value of \fBXmPATH_MODE_RELATIVE\fP\&. It is ignored
|
|
Packit |
b099d7 |
when the \fBXmNpathMode\fP resource has a value of \fBXmPATH_MODE_FULL\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
Now that some default localized label strings are provided through
|
|
Packit |
b099d7 |
message catalogs for the children of composite widgets, the
|
|
Packit |
b099d7 |
\fBlabelString\fP resources
|
|
Packit |
b099d7 |
cannot be set on the child through default resource files\&.
|
|
Packit |
b099d7 |
Instead, the resource provided at the parent level must be used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfileFilterStyle\fP" 10
|
|
Packit |
b099d7 |
Specifies whether or not the "hidden" files (those whose names begin
|
|
Packit |
b099d7 |
with . (period) in POSIX systems) will be listed in the file and
|
|
Packit |
b099d7 |
directory
|
|
Packit |
b099d7 |
scrolling lists (where the default directory search procedure is used)\&.
|
|
Packit |
b099d7 |
The possible values are:
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmFILTER_NONE\fP" 10
|
|
Packit |
b099d7 |
Does not filter hidden files\&.
|
|
Packit |
b099d7 |
.IP "\fBXmFILTER_HIDDEN_FILES\fP" 10
|
|
Packit |
b099d7 |
Restricts the list of possible file names, such as those beginning
|
|
Packit |
b099d7 |
with . (period)\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNfileListItems\fP" 10
|
|
Packit |
b099d7 |
Specifies the items in the file list\&.
|
|
Packit |
b099d7 |
This is the \fBXmNlistItems\fP resource in SelectionBox, renamed for
|
|
Packit |
b099d7 |
FileSelectionBox\&.
|
|
Packit |
b099d7 |
\fBXtGetValues\fP for this resource returns the list items themselves,
|
|
Packit |
b099d7 |
not a copy of the list items\&.
|
|
Packit |
b099d7 |
The application must not free the returned items\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfileListItemCount\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of items in the file list\&.
|
|
Packit |
b099d7 |
This is the \fBXmNlistItemCount\fP resource in SelectionBox, renamed for
|
|
Packit |
b099d7 |
FileSelectionBox\&.
|
|
Packit |
b099d7 |
The value must not be negative\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfileListLabelString\fP" 10
|
|
Packit |
b099d7 |
Specifies the label string of the file list\&.
|
|
Packit |
b099d7 |
This is the \fBXmNlistLabelString\fP resource in SelectionBox, renamed
|
|
Packit |
b099d7 |
for FileSelectionBox\&.
|
|
Packit |
b099d7 |
The default for this resource depends on the locale\&.
|
|
Packit |
b099d7 |
In the C locale the default is \fBFiles\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
Now that some default localized label strings are provided through
|
|
Packit |
b099d7 |
message catalogs for the children of composite widgets, the
|
|
Packit |
b099d7 |
\fBlabelString\fP resources
|
|
Packit |
b099d7 |
cannot be set on the child through default resource files\&.
|
|
Packit |
b099d7 |
Instead, the resource provided at the parent level must be used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfileSearchProc\fP" 10
|
|
Packit |
b099d7 |
Specifies a file search procedure to replace the default file search
|
|
Packit |
b099d7 |
procedure\&.
|
|
Packit |
b099d7 |
FileSelectionBox\&'s default file search procedure fulfills the needs of
|
|
Packit |
b099d7 |
most applications\&.
|
|
Packit |
b099d7 |
Because it is impossible to cover the requirements of all applications,
|
|
Packit |
b099d7 |
you can replace the default search procedure\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The file search procedure is called with two arguments:
|
|
Packit |
b099d7 |
the FileSelectionBox widget and a pointer to an
|
|
Packit |
b099d7 |
\fBXmFileSelectionBoxCallbackStruct\fR structure\&.
|
|
Packit |
b099d7 |
The callback structure is generated by the
|
|
Packit |
b099d7 |
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
|
|
Packit |
b099d7 |
\fBXmNdirSearchProc\fP)\&.
|
|
Packit |
b099d7 |
It contains all information required to conduct a file search, including
|
|
Packit |
b099d7 |
the directory mask and a qualified base directory and search pattern\&.
|
|
Packit |
b099d7 |
Once this procedure is called,
|
|
Packit |
b099d7 |
it is up to the search routine to generate a new list of
|
|
Packit |
b099d7 |
files and update the FileSelectionBox widget by using \fBXtSetValues\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The search procedure must set \fBXmNlistUpdated\fP\&.
|
|
Packit |
b099d7 |
If it generates a new list of files, it must also set
|
|
Packit |
b099d7 |
\fBXmNfileListItems\fP and \fBXmNfileListItemCount\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
It is recommended that the search procedure always generate a new list of
|
|
Packit |
b099d7 |
files\&.
|
|
Packit |
b099d7 |
If the \fImask\fP member of the callback structure is the same as the
|
|
Packit |
b099d7 |
\fImask\fP member of the callback struct in the preceding call to the
|
|
Packit |
b099d7 |
search procedure, the procedure may elect not to generate a new list of
|
|
Packit |
b099d7 |
files\&.
|
|
Packit |
b099d7 |
In this case it must set \fBXmNlistUpdated\fP to False\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the search procedure generates a new list of files, it must set
|
|
Packit |
b099d7 |
\fBXmNfileListItems\fP to the new list of files and
|
|
Packit |
b099d7 |
\fBXmNfileListItemCount\fP to the number of items in the list\&.
|
|
Packit |
b099d7 |
If there are no files, it sets \fBXmNfileListItems\fP to NULL and
|
|
Packit |
b099d7 |
\fBXmNfileListItemCount\fP to 0 (zero)\&.
|
|
Packit |
b099d7 |
In either case it must set \fBXmNlistUpdated\fP to True\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
In constructing the list of files, the search procedure should include
|
|
Packit |
b099d7 |
only files of the types specified by the widget\&'s \fBXmNfileTypeMask\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
Setting \fBXmNdirSpec\fP is optional, but recommended\&.
|
|
Packit |
b099d7 |
Set this attribute to the full file specification of the directory
|
|
Packit |
b099d7 |
searched\&.
|
|
Packit |
b099d7 |
The directory specification is displayed below the directory and file
|
|
Packit |
b099d7 |
lists\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNfileTypeMask\fP" 10
|
|
Packit |
b099d7 |
Specifies the type of files listed in the file list\&.
|
|
Packit |
b099d7 |
The possible values are
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmFILE_REGULAR\fP" 10
|
|
Packit |
b099d7 |
Restricts the file list to contain only regular
|
|
Packit |
b099d7 |
files\&.
|
|
Packit |
b099d7 |
.IP "\fBXmFILE_DIRECTORY\fP" 10
|
|
Packit |
b099d7 |
Restricts the file list to contain only
|
|
Packit |
b099d7 |
directories\&.
|
|
Packit |
b099d7 |
.IP "\fBXmFILE_ANY_TYPE\fP" 10
|
|
Packit |
b099d7 |
Allows the list to contain all file types
|
|
Packit |
b099d7 |
including directories\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNfilterLabelString\fP" 10
|
|
Packit |
b099d7 |
Specifies the label string for the text entry field for the directory
|
|
Packit |
b099d7 |
mask\&.
|
|
Packit |
b099d7 |
The default for this resource depends on the locale\&.
|
|
Packit |
b099d7 |
In the C locale the default is \fBFilter\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
Now that some default localized label strings are provided through
|
|
Packit |
b099d7 |
message catalogs for the children of composite widgets, the
|
|
Packit |
b099d7 |
\fBlabelString\fP resources
|
|
Packit |
b099d7 |
cannot be set on the child through default resource files\&.
|
|
Packit |
b099d7 |
Instead, the resource provided at the parent level must be used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNlistUpdated\fP" 10
|
|
Packit |
b099d7 |
Specifies an attribute that is set only by the directory and file search
|
|
Packit |
b099d7 |
procedures\&.
|
|
Packit |
b099d7 |
This resource is set to True if the
|
|
Packit |
b099d7 |
search procedure updated the directory or file list\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNnoMatchString\fP" 10
|
|
Packit |
b099d7 |
Specifies a string to be displayed in the file list if the list of files
|
|
Packit |
b099d7 |
is empty\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNpattern\fP" 10
|
|
Packit |
b099d7 |
Specifies the search pattern used in combination with \fBXmNdirectory\fP
|
|
Packit |
b099d7 |
in determining the files and directories to be displayed\&.
|
|
Packit |
b099d7 |
The default value is determined by \fBXmNqualifySearchDataProc\fP
|
|
Packit |
b099d7 |
and depends on the initial values of \fBXmNdirMask\fP,
|
|
Packit |
b099d7 |
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
|
|
Packit |
b099d7 |
If the default is NULL or empty, a pattern that matches all files is
|
|
Packit |
b099d7 |
used\&.
|
|
Packit |
b099d7 |
.IP "\fBXmNpathMode\fP" 10
|
|
Packit |
b099d7 |
Specifies whether or not an additional text field will be used to
|
|
Packit |
b099d7 |
display and edit the filter\&. The possible values are
|
|
Packit |
b099d7 |
.RS
|
|
Packit |
b099d7 |
.IP "\fBXmPATH_MODE_FULL\fP" 10
|
|
Packit |
b099d7 |
Specifies that no additional text field will be used to display
|
|
Packit |
b099d7 |
the filter\&. There will just be a single text field to display
|
|
Packit |
b099d7 |
\fBXmNdirMask\fP\&.
|
|
Packit |
b099d7 |
.IP "\fBXmPATH_MODE_RELATIVE\fP" 10
|
|
Packit |
b099d7 |
Specifies that there will be two text field displays, one to display
|
|
Packit |
b099d7 |
the \fBXmNdirectory\fP and one to display the \fBXmNpattern\fP\&. In
|
|
Packit |
b099d7 |
this instance, the \fBXmNfilterLabelString\fP resource applies to the
|
|
Packit |
b099d7 |
text field for
|
|
Packit |
b099d7 |
\fBXmNpattern\fP and \fBXmNdirTextLabelString\fP applies to the text
|
|
Packit |
b099d7 |
field for \fBXmNdirectory\fP\&.
|
|
Packit |
b099d7 |
.RE
|
|
Packit |
b099d7 |
.IP "\fBXmNqualifySearchDataProc\fP" 10
|
|
Packit |
b099d7 |
Specifies a search data qualification procedure to replace the default
|
|
Packit |
b099d7 |
data qualification procedure\&.
|
|
Packit |
b099d7 |
FileSelectionBox\&'s default data qualification procedure fulfills the
|
|
Packit |
b099d7 |
needs of most applications\&.
|
|
Packit |
b099d7 |
Because it is impossible to cover the requirements of all applications,
|
|
Packit |
b099d7 |
you can replace the default procedure\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The data qualification procedure is called to generate a qualified
|
|
Packit |
b099d7 |
directory mask, base directory, and search pattern for use by the
|
|
Packit |
b099d7 |
directory and file search procedures\&.
|
|
Packit |
b099d7 |
It is called with three arguments:
|
|
Packit |
b099d7 |
the FileSelectionBox widget and pointers to two
|
|
Packit |
b099d7 |
\fBXmFileSelectionBoxCallbackStruct\fR structures\&.
|
|
Packit |
b099d7 |
The first callback structure contains the input data\&.
|
|
Packit |
b099d7 |
The second callback structure contains the output data, to be filled in by
|
|
Packit |
b099d7 |
the data qualification procedure\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the input \fIdir\fP and \fIpattern\fP members are not NULL, the
|
|
Packit |
b099d7 |
procedure must copy them to the corresponding members of the output
|
|
Packit |
b099d7 |
callback structure\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the input \fIdir\fP is NULL, the procedure constructs the
|
|
Packit |
b099d7 |
output \fIdir\fP as follows:
|
|
Packit |
b099d7 |
If the input \fImask\fP member is NULL, the procedure uses the
|
|
Packit |
b099d7 |
widget\&'s \fBXmNdirectory\fP as the output \fIdir\fP; otherwise, it
|
|
Packit |
b099d7 |
extracts the output \fIdir\fP from the input \fImask\fP\&.
|
|
Packit |
b099d7 |
If the resulting output \fIdir\fP is empty, the procedure uses
|
|
Packit |
b099d7 |
the current working directory instead\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the input \fIpattern\fP is NULL, the procedure constructs
|
|
Packit |
b099d7 |
the output \fIpattern\fP as follows:
|
|
Packit |
b099d7 |
If the input \fImask\fP member is NULL, the procedure uses the
|
|
Packit |
b099d7 |
widget\&'s \fBXmNpattern\fP as the output \fIpattern\fP; otherwise, it
|
|
Packit |
b099d7 |
extracts the output \fIpattern\fP from the input \fImask\fP\&.
|
|
Packit |
b099d7 |
If the resulting output \fIpattern\fP is empty, the procedure
|
|
Packit |
b099d7 |
uses a pattern that matches all files instead\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The data qualification procedure constructs the output \fImask\fP from
|
|
Packit |
b099d7 |
the output \fIdir\fP and \fIpattern\fP\&.
|
|
Packit |
b099d7 |
The procedure must ensure that the output \fIdir\fP, \fIpattern\fP, and
|
|
Packit |
b099d7 |
\fImask\fP are fully qualified\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the input \fIvalue\fP member is not NULL, the procedure must copy it
|
|
Packit |
b099d7 |
to the output \fIvalue\fP member; otherwise, the procedure must copy the
|
|
Packit |
b099d7 |
widget\&'s \fBXmNdirSpec\fP to the output \fIvalue\fP\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The data qualification procedure must calculate the lengths of the
|
|
Packit |
b099d7 |
output \fIvalue\fP, \fImask\fP, \fIdir\fP, and \fIpattern\fP members and
|
|
Packit |
b099d7 |
must fill in the corresponding length members of the output callback
|
|
Packit |
b099d7 |
struct\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
The data qualification procedure must copy the input \fIreason\fP and
|
|
Packit |
b099d7 |
\fIevent\fP members to the corresponding output members\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The values of the \fBXmNdirSearchProc\fP and \fBXmNfileSearchProc\fP
|
|
Packit |
b099d7 |
are procedure pointers of type \fBXmSearchProc\fR, defined as
|
|
Packit |
b099d7 |
follows:
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
void (* XmSearchProc) (\fIw, search_data\fP)
|
|
Packit |
b099d7 |
Widget \fIw\fP;
|
|
Packit |
b099d7 |
XtPointer \fIsearch_data\fP;
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.IP "\fIw\fP" 10
|
|
Packit |
b099d7 |
The FileSelectionBox widget
|
|
Packit |
b099d7 |
.IP "\fIsearch_data\fP" 10
|
|
Packit |
b099d7 |
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
|
|
Packit |
b099d7 |
information for conducting a search
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The value of the \fBXmNqualifySearchDataProc\fP resource
|
|
Packit |
b099d7 |
is a procedure pointer of type \fBXmQualifyProc\fR, defined
|
|
Packit |
b099d7 |
as follows:
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
void (* XmQualifyProc) (\fIw, input_data, output_data\fP)
|
|
Packit |
b099d7 |
Widget \fIw\fP;
|
|
Packit |
b099d7 |
XtPointer \fIinput_data\fP;
|
|
Packit |
b099d7 |
XtPointer \fIoutput_data\fP;
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.IP "\fIw\fP" 10
|
|
Packit |
b099d7 |
The FileSelectionBox widget
|
|
Packit |
b099d7 |
.IP "\fIinput_data\fP" 10
|
|
Packit |
b099d7 |
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
|
|
Packit |
b099d7 |
input data to be qualified
|
|
Packit |
b099d7 |
.IP "\fIoutput_data\fP" 10
|
|
Packit |
b099d7 |
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
|
|
Packit |
b099d7 |
output data to be filled in by the qualification procedure
|
|
Packit |
b099d7 |
.SS "Inherited Resources"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
FileSelectionBox inherits behavior and resources from the
|
|
Packit |
b099d7 |
superclasses described in the following tables\&.
|
|
Packit |
b099d7 |
For a complete description of each resource, refer to the
|
|
Packit |
b099d7 |
reference page for that superclass\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBXmSelectionBox Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNapplyCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNapplyLabelString?XmCApplyLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNcancelCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNcancelLabelString?XmCCancelLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNchildPlacement?XmCChildPlacement?unsigned char?XmPLACE_ABOVE_SELECTION?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdialogType?XmCDialogType?unsigned char?XmDIALOG_FILE_SELECTION?G
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhelpLabelString?XmCHelpLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlistItemCount?XmCItemCount?int?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlistItems?XmCItems?XmStringTable?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlistLabelString?XmCListLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlistVisibleItemCount?XmCVisibleItemCount?int?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNminimizeButtons?XmCMinimizeButtons?Boolean?False?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmustMatch?XmCMustMatch?Boolean?False?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnoMatchCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNokCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNokLabelString?XmCOkLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNselectionLabelString?XmCSelectionLabelString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextAccelerators?XmCTextAccelerators?XtAccelerators?default?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextColumns?XmCColumns?short?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextString?XmCTextString?XmString?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBXmBulletinBoard Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNallowOverlap?XmCAllowOverlap?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNautoUnmanage?XmCAutoUnmanage?Boolean?False?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbuttonFontList?XmCButtonFontList?XmFontList?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbuttonRenderTable?XmCButtonRenderTable?XmRenderTable?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNcancelButton?XmCWidget?Widget?Cancel button?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdefaultButton?XmCWidget?Widget?OK button?SG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdefaultPosition?XmCDefaultPosition?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdialogStyle?XmCDialogStyle?unsigned char?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdialogTitle?XmCDialogTitle?XmString?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNfocusCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlabelFontList?XmCLabelFontList?XmFontList?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlabelRenderTable?XmCLabelRenderTable?XmRenderTable?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmapCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmarginHeight?XmCMarginHeight?Dimension?10?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmarginWidth?XmCMarginWidth?Dimension?10?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnoResize?XmCNoResize?Boolean?False?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNresizePolicy?XmCResizePolicy?unsigned char?XmRESIZE_ANY?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNshadowType?XmCShadowType?unsigned char?XmSHADOW_OUT?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextFontList?XmCTextFontList?XmFontList?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextRenderTable?XmCTextRenderTable?XmRenderTable?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtextTranslations?XmCTranslations?XtTranslations?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNunmapCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBXmManager Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbottomShadowColor?XmCBottomShadowColor?Pixel?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbottomShadowPixmap?XmCBottomShadowPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNforeground?XmCForeground?Pixel?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhelpCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhighlightColor?XmCHighlightColor?Pixel?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNhighlightPixmap?XmCHighlightPixmap?Pixmap?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNinitialFocus?XmCInitialFocus?Widget?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNlayoutDirection?XmCLayoutDirection?XmDirection?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnavigationType?XmCNavigationType?XmNavigationType?XmTAB_GROUP?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNpopupHandlerCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNshadowThickness?XmCShadowThickness?Dimension?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNstringDirection?XmCStringDirection?XmStringDirection?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtopShadowColor?XmCTopShadowColor?Pixel?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtopShadowPixmap?XmCTopShadowPixmap?Pixmap?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtraversalOn?XmCTraversalOn?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNunitType?XmCUnitType?unsigned char?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNuserData?XmCUserData?XtPointer?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBComposite Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNchildren?XmCReadOnly?WidgetList?NULL?G
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNinsertPosition?XmCInsertPosition?XtOrderProc?NULL?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNnumChildren?XmCReadOnly?Cardinal?0?G
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.TS
|
|
Packit |
b099d7 |
tab(?) box;
|
|
Packit |
b099d7 |
c s s s s
|
|
Packit |
b099d7 |
l| l| l| l| l.
|
|
Packit |
b099d7 |
\fBCore Resource Set\fP
|
|
Packit |
b099d7 |
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNaccelerators?XmCAccelerators?XtAccelerators?dynamic?N/A
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNancestorSensitive?XmCSensitive?Boolean?dynamic?G
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbackground?XmCBackground?Pixel?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNbackgroundPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNborderColor?XmCBorderColor?Pixel?XtDefaultForeground?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNborderPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNborderWidth?XmCBorderWidth?Dimension?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNcolormap?XmCColormap?Colormap?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdepth?XmCDepth?int?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNdestroyCallback?XmCCallback?XtCallbackList?NULL?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNheight?XmCHeight?Dimension?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNinitialResourcesPersistent?XmCInitialResourcesPersistent?Boolean?True?C
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNmappedWhenManaged?XmCMappedWhenManaged?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNscreen?XmCScreen?Screen *?dynamic?CG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNsensitive?XmCSensitive?Boolean?True?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNtranslations?XmCTranslations?XtTranslations?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNwidth?XmCWidth?Dimension?dynamic?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNx?XmCPosition?Position?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
XmNy?XmCPosition?Position?0?CSG
|
|
Packit |
b099d7 |
_?_?_?_?_?
|
|
Packit |
b099d7 |
.TE
|
|
Packit |
b099d7 |
.SS "Callback Information"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
A pointer to the following structure is passed to each callback:
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
typedef struct
|
|
Packit |
b099d7 |
{
|
|
Packit |
b099d7 |
int \fIreason\fP;
|
|
Packit |
b099d7 |
XEvent \fI* event\fP;
|
|
Packit |
b099d7 |
XmString \fIvalue\fP;
|
|
Packit |
b099d7 |
int \fIlength\fP;
|
|
Packit |
b099d7 |
XmString \fImask\fP;
|
|
Packit |
b099d7 |
int \fImask_length\fP;
|
|
Packit |
b099d7 |
XmString \fIdir\fP;
|
|
Packit |
b099d7 |
int \fIdir_length\fP;
|
|
Packit |
b099d7 |
XmString \fIpattern\fP;
|
|
Packit |
b099d7 |
int \fIpattern_length\fP;
|
|
Packit |
b099d7 |
} XmFileSelectionBoxCallbackStruct;
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.IP "\fIreason\fP" 10
|
|
Packit |
b099d7 |
Indicates why the callback was invoked
|
|
Packit |
b099d7 |
.IP "\fIevent\fP" 10
|
|
Packit |
b099d7 |
Points to the \fBXEvent\fP that triggered the callback
|
|
Packit |
b099d7 |
.IP "\fIvalue\fP" 10
|
|
Packit |
b099d7 |
Specifies the current value of \fBXmNdirSpec\fP
|
|
Packit |
b099d7 |
.IP "\fIlength\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of bytes in \fIvalue\fP
|
|
Packit |
b099d7 |
This member is obsolete and exists for compatibility with
|
|
Packit |
b099d7 |
earlier releases\&.
|
|
Packit |
b099d7 |
.IP "\fImask\fP" 10
|
|
Packit |
b099d7 |
Specifies the current value of \fBXmNdirMask\fP
|
|
Packit |
b099d7 |
.IP "\fImask_length\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of bytes in \fImask\fP
|
|
Packit |
b099d7 |
This member is obsolete and exists for compatibility with
|
|
Packit |
b099d7 |
earlier releases\&.
|
|
Packit |
b099d7 |
.IP "\fIdir\fP" 10
|
|
Packit |
b099d7 |
Specifies the current base directory
|
|
Packit |
b099d7 |
.IP "\fIdir_length\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of bytes in \fIdir\fP
|
|
Packit |
b099d7 |
This member is obsolete and exists for compatibility with
|
|
Packit |
b099d7 |
earlier releases\&.
|
|
Packit |
b099d7 |
.IP "\fIpattern\fP" 10
|
|
Packit |
b099d7 |
Specifies the current search pattern
|
|
Packit |
b099d7 |
.IP "\fIpattern_length\fP" 10
|
|
Packit |
b099d7 |
Specifies the number of bytes in \fIpattern\fP
|
|
Packit |
b099d7 |
This member is obsolete and exists for compatibility with
|
|
Packit |
b099d7 |
earlier releases\&.
|
|
Packit |
b099d7 |
.SS "Translations"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
XmFileSelectionBox inherits translations from XmSelectionBox\&.
|
|
Packit |
b099d7 |
.SS "Accelerators"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The \fBXmNtextAccelerators\fP from XmSelectionBox are added to the
|
|
Packit |
b099d7 |
selection and directory mask (filter) Text descendants of
|
|
Packit |
b099d7 |
XmFileSelectionBox\&.
|
|
Packit |
b099d7 |
.SS "Action Routines"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The XmFileSelectionBox action routines are
|
|
Packit |
b099d7 |
.IP "SelectionBoxUpOrDown(\fBPrevious|Next|First|Last\fP):" 10
|
|
Packit |
b099d7 |
If neither the selection text nor the directory mask (filter) text has
|
|
Packit |
b099d7 |
the focus, this action does nothing\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the selection text has the focus, the term \fIlist\fP in the
|
|
Packit |
b099d7 |
following description refers to the file list, and the term \fItext\fP
|
|
Packit |
b099d7 |
refers to the selection text\&.
|
|
Packit |
b099d7 |
If the directory mask text has the focus, \fIlist\fP refers to the
|
|
Packit |
b099d7 |
directory list, and \fItext\fP refers to the directory mask text\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When called with an argument of \fBPrevious\fP, or 0 (zero) for
|
|
Packit |
b099d7 |
compatibility, this action
|
|
Packit |
b099d7 |
selects the previous item in the
|
|
Packit |
b099d7 |
list and replaces the text with that item\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When called with an argument of \fBNext\fP, or 1 for
|
|
Packit |
b099d7 |
compatibility, this action
|
|
Packit |
b099d7 |
selects the next item in the
|
|
Packit |
b099d7 |
list and replaces the text with that item\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When called with an argument of \fBFirst\fP, or 2 for
|
|
Packit |
b099d7 |
compatibility, this action
|
|
Packit |
b099d7 |
selects the first item in the
|
|
Packit |
b099d7 |
list and replaces the text with that item\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
When called with an argument of \fBLast\fP, or 3 for
|
|
Packit |
b099d7 |
compatibility, this action
|
|
Packit |
b099d7 |
selects the last item in the
|
|
Packit |
b099d7 |
list and replaces the text with that item\&.
|
|
Packit |
b099d7 |
.IP "SelectionBoxRestore():" 10
|
|
Packit |
b099d7 |
If neither the selection text nor the directory mask (filter) text has
|
|
Packit |
b099d7 |
the focus, this action does nothing\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the selection text has the focus, this action
|
|
Packit |
b099d7 |
replaces the selection text with
|
|
Packit |
b099d7 |
the selected item in the file list\&.
|
|
Packit |
b099d7 |
If no item in the file list is selected, it clears the selection text\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
If the directory mask text has the focus, this action
|
|
Packit |
b099d7 |
replaces the directory mask
|
|
Packit |
b099d7 |
text with a new directory mask constructed from the \fBXmNdirectory\fP
|
|
Packit |
b099d7 |
and \fBXmNpattern\fP resources\&.
|
|
Packit |
b099d7 |
.SS "Additional Behavior"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The FileSelectionBox widget has the following additional behavior:
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfCancel>\fP:" 10
|
|
Packit |
b099d7 |
Calls the activate callbacks for the cancel button if it is sensitive\&.
|
|
Packit |
b099d7 |
If no cancel button exists and the parent of the FileSelectionBox is a manager,
|
|
Packit |
b099d7 |
it passes the event to the parent\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfActivate>\fP\ in\ Selection\ Text:" 10
|
|
Packit |
b099d7 |
Calls the selection text widget\&'s \fBXmNactivateCallback\fP callbacks\&.
|
|
Packit |
b099d7 |
If \fBXmNmustMatch\fP is True and the selection text does not match an
|
|
Packit |
b099d7 |
item in the file list, it calls the \fBXmNnoMatchCallback\fP
|
|
Packit |
b099d7 |
callbacks with
|
|
Packit |
b099d7 |
reason \fBXmCR_NO_MATCH\fP\&.
|
|
Packit |
b099d7 |
Otherwise, it calls the \fBXmNokCallback\fP callbacks with reason
|
|
Packit |
b099d7 |
\fBXmCR_OK\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfActivate>\fP\ in\ Directory\ Mask\ Text:" 10
|
|
Packit |
b099d7 |
Calls the directory mask text widget\&'s \fBXmNactivateCallback\fP
|
|
Packit |
b099d7 |
callbacks,
|
|
Packit |
b099d7 |
initiates a directory and file search, and
|
|
Packit |
b099d7 |
calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn1Down>\fP\fB(2+)\fP\ or\ \fB<Key>\fP\fB<osfActivate>\fP\ in\ Directory\ List:" 10
|
|
Packit |
b099d7 |
Calls the directory list widget\&'s \fBXmNdefaultActionCallback\fP
|
|
Packit |
b099d7 |
callbacks,
|
|
Packit |
b099d7 |
initiates a directory and file search,
|
|
Packit |
b099d7 |
and calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn1Down>\fP\fB(2+)\fP\ or\ \fB<Key>\fP\fB<osfActivate>\fP\ in\ File\ List:" 10
|
|
Packit |
b099d7 |
Calls the file list widget\&'s \fBXmNdefaultActionCallback\fP
|
|
Packit |
b099d7 |
callbacks and
|
|
Packit |
b099d7 |
calls the \fBXmNokCallback\fP callbacks with reason \fBXmCR_OK\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfSelect>\fP\ in\ Directory\ List:" 10
|
|
Packit |
b099d7 |
Generates a new directory mask, using the selected list item as the
|
|
Packit |
b099d7 |
directory and the pattern extracted from the current directory mask text
|
|
Packit |
b099d7 |
as the search pattern\&.
|
|
Packit |
b099d7 |
If the search pattern is empty, it uses a pattern that matches all files in
|
|
Packit |
b099d7 |
the directory\&.
|
|
Packit |
b099d7 |
Replaces the directory mask text with the new directory mask\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfSelect>\fP\ in\ File\ List:" 10
|
|
Packit |
b099d7 |
Replaces the selection text with the selected list item\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn2Down>\fP in File List:" 10
|
|
Packit |
b099d7 |
Drags the content of one or more selected list items using the drag
|
|
Packit |
b099d7 |
and drop facility\&. If \fB
|
|
Packit |
b099d7 |
drags only that item, excluding any other selected items\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
This action sets the \fBXmNconvertProc\fP of the DragContext to a
|
|
Packit |
b099d7 |
function that calls the \fBXmNconvertCallback\fP procedures of the file
|
|
Packit |
b099d7 |
list, possibly multiple times, for the \fB_MOTIF_DROP\fP selection\&.
|
|
Packit |
b099d7 |
.IP "\fB<Btn2Down>\fP in Directory List:" 10
|
|
Packit |
b099d7 |
Drags the content of one or more selected list items using the drag
|
|
Packit |
b099d7 |
and drop facility\&. If \fB
|
|
Packit |
b099d7 |
it drags only that item, excluding any other selected items\&.
|
|
Packit |
b099d7 |
.IP "" 10
|
|
Packit |
b099d7 |
This action sets the \fBXmNconvertProc\fP of the DragContext to a
|
|
Packit |
b099d7 |
function that calls the \fBXmNconvertCallback\fP procedures of the
|
|
Packit |
b099d7 |
directory list, possibly multiple times, for the \fB_MOTIF_DROP\fP
|
|
Packit |
b099d7 |
selection\&.
|
|
Packit |
b099d7 |
.IP "\fB<Apply\ Button\ Activated>\fP:" 10
|
|
Packit |
b099d7 |
Initiates a directory and file search\&.
|
|
Packit |
b099d7 |
Calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<OK\ Button\ Activated>\fP:" 10
|
|
Packit |
b099d7 |
If \fBXmNmustMatch\fP is True and the selection text does not match an
|
|
Packit |
b099d7 |
item in the file list, calls the \fBXmNnoMatchCallback\fP callbacks with
|
|
Packit |
b099d7 |
reason \fBXmCR_NO_MATCH\fP\&.
|
|
Packit |
b099d7 |
Otherwise, calls the \fBXmNokCallback\fP callbacks with reason
|
|
Packit |
b099d7 |
\fBXmCR_OK\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Cancel\ Button\ Activated>\fP:" 10
|
|
Packit |
b099d7 |
Calls the \fBXmNcancelCallback\fP callbacks with reason
|
|
Packit |
b099d7 |
\fBXmCR_CANCEL\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Help\ Button\ Activated>\fP:" 10
|
|
Packit |
b099d7 |
Calls the \fBXmNhelpCallback\fP callbacks with reason \fBXmCR_HELP\fP\&.
|
|
Packit |
b099d7 |
.IP "\fB<Key>\fP\fB<osfActivate>\fP:" 10
|
|
Packit |
b099d7 |
If no button, list widget, or text widget has the keyboard focus,
|
|
Packit |
b099d7 |
if \fBXmNmustMatch\fP is True and the selection text does not match an
|
|
Packit |
b099d7 |
item in the file list, it calls the \fBXmNnoMatchCallback\fP callbacks with
|
|
Packit |
b099d7 |
reason \fBXmCR_NO_MATCH\fP\&.
|
|
Packit |
b099d7 |
Otherwise, it calls the \fBXmNokCallback\fP callbacks with reason
|
|
Packit |
b099d7 |
\fBXmCR_OK\fP\&.
|
|
Packit |
b099d7 |
.SS "Virtual Bindings"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
The bindings for virtual keys are vendor specific\&.
|
|
Packit |
b099d7 |
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
|
|
Packit |
b099d7 |
.SH "RELATED"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
\fBComposite\fP(3),
|
|
Packit |
b099d7 |
\fBConstraint\fP(3),
|
|
Packit |
b099d7 |
\fBCore\fP(3),
|
|
Packit |
b099d7 |
\fBXmBulletinBoard\fP(3),
|
|
Packit |
b099d7 |
\fBXmCreateFileSelectionBox\fP(3),
|
|
Packit |
b099d7 |
\fBXmCreateFileSelectionDialog\fP(3),
|
|
Packit |
b099d7 |
\fBXmFileSelectionBoxGetChild\fP(3),
|
|
Packit |
b099d7 |
\fBXmFileSelectionDoSearch\fP(3),
|
|
Packit |
b099d7 |
\fBXmManager\fP(3),
|
|
Packit |
b099d7 |
\fBXmSelectionBox\fP(3)
|
|
Packit |
b099d7 |
\fBXmVaCreateFileSelectionBox\fP(3), and
|
|
Packit |
b099d7 |
\fBXmVaCreateManagedFileSelectionBox\fP(3),\&.
|