![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXFileSelector.h>
Static Public Member Functions | |
| static FXString | patternFromText (const FXString &pattern) |
| static FXString | extensionFromPattern (const FXString &pattern) |
Static Public Member Functions inherited from FX::FXWindow | |
| static FXWindow * | commonAncestor (FXWindow *a, FXWindow *b) |
| static bool | before (const FXWindow *a, const FXWindow *b) |
| static bool | after (const FXWindow *a, const FXWindow *b) |
| FX::FXFileSelector::FXFileSelector | ( | FXComposite * | p, |
| FXObject * | tgt = NULL, |
||
| FXSelector | sel = 0, |
||
| FXuint | opts = 0, |
||
| FXint | x = 0, |
||
| FXint | y = 0, |
||
| FXint | w = 0, |
||
| FXint | h = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
inline |
Return a pointer to the "Accept" button.
|
inline |
Return a pointer to the "Cancel" button.
| void FX::FXFileSelector::setFilename | ( | const FXString & | path | ) |
Change file name.
| FXString FX::FXFileSelector::getFilename | ( | ) | const |
Return file name, if any.
| FXString* FX::FXFileSelector::getFilenames | ( | ) | const |
Return array of strings containing the selected file names, terminated by an empty string.
This string array must be freed using delete []. If no files were selected, a NULL is returned.
| void FX::FXFileSelector::setPattern | ( | const FXString & | ptrn | ) |
Change file pattern.
| FXString FX::FXFileSelector::getPattern | ( | ) | const |
Return file pattern.
| void FX::FXFileSelector::setPatternList | ( | const FXString & | patterns | ) |
Change the list of file patterns shown in the file dialog.
Each pattern comprises an optional name, followed by a pattern in parentheses. The patterns are separated by newlines. For example,
"*\n*.cpp,*.cc\n*.hpp,*.hh,*.h"
and
"All Files (*)\nC++ Sources (*.cpp,*.cc)\nC++ Headers (*.hpp,*.hh,*.h)"
will set the same three patterns, but the former shows no pattern names.
| FXString FX::FXFileSelector::getPatternList | ( | ) | const |
Return list of patterns.
| void FX::FXFileSelector::setCurrentPattern | ( | FXint | n | ) |
After setting the list of patterns, this call will initially select pattern n as the active one.
| FXint FX::FXFileSelector::getCurrentPattern | ( | ) | const |
Return current pattern number.
Get pattern text for given pattern number.
Change pattern text for pattern number.
| FXint FX::FXFileSelector::getNumPatterns | ( | ) | const |
Return number of patterns.
| void FX::FXFileSelector::allowPatternEntry | ( | FXbool | allow | ) |
Allow pattern entry.
| FXbool FX::FXFileSelector::allowPatternEntry | ( | ) | const |
Return TRUE if pattern entry is allowed.
Given filename pattern of the form "GIF Format (*.gif)", returns the pattern only, i.e.
"*.gif" in this case. If the parentheses are not found then returns the entire input pattern.
Given a pattern of the form "*.gif,*.GIF", return the first extension of the pattern, i.e.
"gif" in this example. Returns empty string if it doesn't work out.
| void FX::FXFileSelector::setDirectory | ( | const FXString & | path | ) |
Change directory.
| FXString FX::FXFileSelector::getDirectory | ( | ) | const |
Return directory.
| void FX::FXFileSelector::setItemSpace | ( | FXint | s | ) |
Set the inter-item spacing (in pixels)
| FXint FX::FXFileSelector::getItemSpace | ( | ) | const |
Return the inter-item spacing (in pixels)
| void FX::FXFileSelector::setFileBoxStyle | ( | FXuint | style | ) |
Change file list style.
| FXuint FX::FXFileSelector::getFileBoxStyle | ( | ) | const |
Return file list style.
| void FX::FXFileSelector::setSelectMode | ( | FXuint | mode | ) |
Change file selection mode.
|
inline |
Return file selection mode.
| void FX::FXFileSelector::setMatchMode | ( | FXuint | mode | ) |
Change wildcard matching mode.
| FXuint FX::FXFileSelector::getMatchMode | ( | ) | const |
Return wildcard matching mode.
| FXbool FX::FXFileSelector::showHiddenFiles | ( | ) | const |
Return TRUE if showing hidden files.
| void FX::FXFileSelector::showHiddenFiles | ( | FXbool | showing | ) |
Show or hide hidden files.
| FXbool FX::FXFileSelector::showImages | ( | ) | const |
Return TRUE if image preview on.
| void FX::FXFileSelector::showImages | ( | FXbool | showing | ) |
Show or hide preview images.
| FXint FX::FXFileSelector::getImageSize | ( | ) | const |
Return images preview size.
| void FX::FXFileSelector::setImageSize | ( | FXint | size | ) |
Change images preview size.
| void FX::FXFileSelector::showReadOnly | ( | FXbool | show | ) |
Show readonly button.
| FXbool FX::FXFileSelector::shownReadOnly | ( | ) | const |
Return TRUE if readonly is shown.
| void FX::FXFileSelector::setReadOnly | ( | FXbool | state | ) |
Set initial state of readonly button.
| FXbool FX::FXFileSelector::getReadOnly | ( | ) | const |
Get readonly state.
|
inline |
Allow or disallow navigation.
|
inline |
Is navigation allowed?
|
virtual |
Save object to a stream.
Reimplemented from FX::FXPacker.
|
virtual |
Load object from a stream.
Reimplemented from FX::FXPacker.
|
|