SoXtFileSelectionDialog Class Reference
[Xt]

Cross-platform file selection box. More...

#include <Inventor/Xt/SoXtFileSelectionDialog.h>

List of all members.

Public Types

enum  Dialog_Mode {
  OPEN_FILE,
  SAVE_FILE
}

Public Member Functions

 SoXtFileSelectionDialog ()
 ~SoXtFileSelectionDialog ()
void setSize (const SbVec2s &size)
SbVec2s getSize (void)
void setTitle (char *title)
char * getTitle (void)
void setFilter (char *suffix, char *title)
void getFilter (char **suffix, char **title)
void setFileDirectory (char *directory)
char * getFileDirectory ()
void setFileName (char *fName)
char * getFileName (void)
char * getFilePath (void)
void setMode (Dialog_Mode dMode)
Dialog_Mode getMode (void)
void show ()
void setAcceptCallback (SoXtFileSelectionDialogCB *f, void *data)
void setAbortCallback (SoXtFileSelectionDialogCB *f, void *data)
void keepDialog (SbBool)

Detailed Description

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.

See related examples:

FileSelectionBox


Member Enumeration Documentation

Enum to set the dialog box mode (Open file / Save file).

Enumerator:
OPEN_FILE 

Open file mode.

SAVE_FILE 

Save file mode.


Constructor & Destructor Documentation

SoXtFileSelectionDialog::SoXtFileSelectionDialog (  ) 

Constructor.

SoXtFileSelectionDialog::~SoXtFileSelectionDialog (  ) 

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 16 Jul 2020
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/