Cross-platform file selection box. More...
#include <Inventor/Xt/SoXtFileSelectionDialog.h>
Public Types | |
enum | Dialog_Mode { OPEN_FILE , SAVE_FILE } |
Enum to set the dialog box mode (Open file / Save file). More... | |
Public Member Functions | |
SoXtFileSelectionDialog () | |
Constructor. | |
~SoXtFileSelectionDialog () | |
Destructor. | |
void | setSize (const SbVec2s &size) |
Sets the dialog box size (UNIX only). | |
SbVec2s | getSize (void) |
Gets the dialog box size (UNIX only). | |
void | setTitle (char *title) |
Sets the file selection dialog box title. | |
char * | getTitle (void) |
Gets the file selection dialog box title. | |
void | setFilter (char *suffix, char *title) |
Sets the suffix filter and the filter title. | |
void | getFilter (char **suffix, char **title) |
Gets the suffix filter and the filter title. | |
void | setFileDirectory (char *directory) |
Sets the file directory. | |
char * | getFileDirectory () |
Gets the file directory. | |
void | setFileName (char *fName) |
Sets the file name. | |
char * | getFileName (void) |
Gets the file name. | |
char * | getFilePath (void) |
Retrieves the full file path. | |
void | setMode (Dialog_Mode dMode) |
Sets the mode (Open or Close) of the file selection box. | |
Dialog_Mode | getMode (void) |
Gets the mode (Open or Close) of the file selection box. | |
void | show () |
Shows the file selection box dialog. | |
void | setAcceptCallback (SoXtFileSelectionDialogCB *f, void *data) |
Set the callback associated with the OK button. | |
void | setAbortCallback (SoXtFileSelectionDialogCB *f, void *data) |
Set the callback associated with the Cancel button. | |
void | keepDialog (SbBool) |
Sets the persistency property, if TRUE, the dialog box will not be deleted after buttons are pressed. | |
Cross-platform file selection box.
This class provides an interactive widget for file selection. Files can be selected in open file mode or in close file mode.
Definition at line 64 of file SoXtFileSelectionDialog.h.
enum SoXtFileSelectionDialog::Dialog_Mode |
Enum to set the dialog box mode (Open file / Save file).
Enumerator | |
---|---|
OPEN_FILE | Open file mode. |
SAVE_FILE | Save file mode. |
Definition at line 134 of file SoXtFileSelectionDialog.h.
SoXtFileSelectionDialog::SoXtFileSelectionDialog | ( | ) |
Constructor.
SoXtFileSelectionDialog::~SoXtFileSelectionDialog | ( | ) |
Destructor.
char * SoXtFileSelectionDialog::getFileDirectory | ( | ) |
Gets the file directory.
char * SoXtFileSelectionDialog::getFileName | ( | void | ) |
Gets the file name.
char * SoXtFileSelectionDialog::getFilePath | ( | void | ) |
Retrieves the full file path.
void SoXtFileSelectionDialog::getFilter | ( | char ** | suffix, |
char ** | title | ||
) |
Gets the suffix filter and the filter title.
Dialog_Mode SoXtFileSelectionDialog::getMode | ( | void | ) |
Gets the mode (Open or Close) of the file selection box.
SbVec2s SoXtFileSelectionDialog::getSize | ( | void | ) |
Gets the dialog box size (UNIX only).
char * SoXtFileSelectionDialog::getTitle | ( | void | ) |
Gets the file selection dialog box title.
void SoXtFileSelectionDialog::keepDialog | ( | SbBool | ) |
Sets the persistency property, if TRUE, the dialog box will not be deleted after buttons are pressed.
void SoXtFileSelectionDialog::setAbortCallback | ( | SoXtFileSelectionDialogCB * | f, |
void * | data | ||
) |
Set the callback associated with the Cancel button.
void SoXtFileSelectionDialog::setAcceptCallback | ( | SoXtFileSelectionDialogCB * | f, |
void * | data | ||
) |
Set the callback associated with the OK button.
void SoXtFileSelectionDialog::setFileDirectory | ( | char * | directory | ) |
Sets the file directory.
void SoXtFileSelectionDialog::setFileName | ( | char * | fName | ) |
Sets the file name.
void SoXtFileSelectionDialog::setFilter | ( | char * | suffix, |
char * | title | ||
) |
Sets the suffix filter and the filter title.
void SoXtFileSelectionDialog::setMode | ( | Dialog_Mode | dMode | ) |
Sets the mode (Open or Close) of the file selection box.
void SoXtFileSelectionDialog::setSize | ( | const SbVec2s & | size | ) |
Sets the dialog box size (UNIX only).
void SoXtFileSelectionDialog::setTitle | ( | char * | title | ) |
Sets the file selection dialog box title.
void SoXtFileSelectionDialog::show | ( | ) |
Shows the file selection box dialog.