![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXFileDialog.h>
FX::FXFileDialog::FXFileDialog | ( | FXWindow * | owner, | |
const FXString & | name, | |||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 500 , |
|||
FXint | h = 300 | |||
) |
Construct file dialog box.
FX::FXFileDialog::FXFileDialog | ( | FXApp * | a, | |
const FXString & | name, | |||
FXuint | opts = 0 , |
|||
FXint | x = 0 , |
|||
FXint | y = 0 , |
|||
FXint | w = 500 , |
|||
FXint | h = 300 | |||
) |
Construct free-floating file dialog box.
virtual FX::FXFileDialog::~FXFileDialog | ( | ) | [virtual] |
Destructor.
virtual void FX::FXFileDialog::hide | ( | ) | [virtual] |
void FX::FXFileDialog::setFilename | ( | const FXString & | path | ) |
Change file name.
FXString FX::FXFileDialog::getFilename | ( | ) | const |
Return file name, if any.
FXString* FX::FXFileDialog::getFilenames | ( | ) | const |
Return empty-string terminated list of selected file names, or NULL if none selected.
void FX::FXFileDialog::setPattern | ( | const FXString & | ptrn | ) |
Change file pattern.
FXString FX::FXFileDialog::getPattern | ( | ) | const |
Return file pattern.
void FX::FXFileDialog::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::FXFileDialog::getPatternList | ( | ) | const |
Return list of patterns.
void FX::FXFileDialog::setCurrentPattern | ( | FXint | n | ) |
After setting the list of patterns, this call will initially select pattern n as the active one.
FXint FX::FXFileDialog::getCurrentPattern | ( | ) | const |
Return current pattern number.
Get pattern text for given pattern number.
Change pattern text for pattern number.
FXint FX::FXFileDialog::getNumPatterns | ( | ) | const |
Return number of patterns.
void FX::FXFileDialog::allowPatternEntry | ( | FXbool | flag | ) |
Allow pattern entry.
FXbool FX::FXFileDialog::allowPatternEntry | ( | ) | const |
Return true if pattern entry is allowed.
void FX::FXFileDialog::setDirectory | ( | const FXString & | path | ) |
Change directory.
FXString FX::FXFileDialog::getDirectory | ( | ) | const |
Return directory.
void FX::FXFileDialog::setItemSpace | ( | FXint | s | ) |
Set the inter-item spacing (in pixels).
FXint FX::FXFileDialog::getItemSpace | ( | ) | const |
Return the inter-item spacing (in pixels).
void FX::FXFileDialog::setSelectMode | ( | FXuint | mode | ) |
Change file selection mode.
FXuint FX::FXFileDialog::getSelectMode | ( | ) | const |
Return file selection mode.
void FX::FXFileDialog::setMatchMode | ( | FXuint | mode | ) |
Change wildcard matching mode.
FXuint FX::FXFileDialog::getMatchMode | ( | ) | const |
Return wildcard matching mode.
FXbool FX::FXFileDialog::showHiddenFiles | ( | ) | const |
Return true if showing hidden files.
void FX::FXFileDialog::showHiddenFiles | ( | FXbool | flag | ) |
Show or hide hidden files.
FXbool FX::FXFileDialog::showImages | ( | ) | const |
Return true if image preview on.
void FX::FXFileDialog::showImages | ( | FXbool | flag | ) |
Show or hide preview images.
FXint FX::FXFileDialog::getImageSize | ( | ) | const |
Return images preview size.
void FX::FXFileDialog::setImageSize | ( | FXint | size | ) |
Change images preview size.
void FX::FXFileDialog::showReadOnly | ( | FXbool | flag | ) |
Show readonly button.
FXbool FX::FXFileDialog::shownReadOnly | ( | ) | const |
Return true if readonly is shown.
void FX::FXFileDialog::setReadOnly | ( | FXbool | flag | ) |
Set initial state of readonly button.
FXbool FX::FXFileDialog::getReadOnly | ( | ) | const |
Get readonly state.
void FX::FXFileDialog::setFileBoxStyle | ( | FXuint | style | ) |
Change File List style.
FXuint FX::FXFileDialog::getFileBoxStyle | ( | ) | const |
Return File List style.
void FX::FXFileDialog::allowNavigation | ( | FXbool | flag | ) |
Allow or disallow navigation.
FXbool FX::FXFileDialog::allowNavigation | ( | ) | const |
Is navigation allowed?
void FX::FXFileDialog::setDraggableFiles | ( | FXbool | flag | ) |
Set draggable files.
FXbool FX::FXFileDialog::getDraggableFiles | ( | ) | const |
Are draggable files.
void FX::FXFileDialog::setAssociations | ( | FXFileDict * | assoc, | |
FXbool | owned = false | |||
) |
Change file associations; delete old ones if owned.
FXFileDict* FX::FXFileDialog::getAssociations | ( | ) | const |
Return file associations.
static FXString FX::FXFileDialog::getOpenFilename | ( | FXWindow * | owner, | |
const FXString & | caption, | |||
const FXString & | path, | |||
const FXString & | patterns = "*" , |
|||
FXint | initial = 0 | |||
) | [static] |
Open existing filename.
static FXString* FX::FXFileDialog::getOpenFilenames | ( | FXWindow * | owner, | |
const FXString & | caption, | |||
const FXString & | path, | |||
const FXString & | patterns = "*" , |
|||
FXint | initial = 0 | |||
) | [static] |
Open multiple existing files.
static FXString FX::FXFileDialog::getSaveFilename | ( | FXWindow * | owner, | |
const FXString & | caption, | |||
const FXString & | path, | |||
const FXString & | patterns = "*" , |
|||
FXint | initial = 0 | |||
) | [static] |
Save to filename.
static FXString FX::FXFileDialog::getOpenDirectory | ( | FXWindow * | owner, | |
const FXString & | caption, | |||
const FXString & | path | |||
) | [static] |
Open directory name.
virtual void FX::FXFileDialog::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXFileDialog::load | ( | FXStream & | store | ) | [virtual] |
![]() |