OpendTect
6.6
|
Dialog to get a file or directory name from user. More...
Public Types | |
enum | Mode { AnyFile , ExistingFile , Directory , DirectoryOnly , ExistingFiles } |
File selection mode. More... | |
enum | Type { Gen , Img , Txt , Html } |
Public Member Functions | |
uiFileDialog (uiParent *, bool forread, const char *fname=0, const char *filter=0, const uiString &caption=uiString::emptyString()) | |
uiFileDialog (uiParent *, Mode mode=AnyFile, const char *fname=0, const char *filter=0, const uiString &caption=uiString::emptyString()) | |
uiFileDialog (uiParent *, Type, const char *fname=0, const uiString &caption=uiString::emptyString()) | |
Always AnyFile. More... | |
uiFileDialog (uiParent *p, bool forread, const char *fname, const char *filter, const char *caption) | |
uiFileDialog (uiParent *p, Mode mode, const char *fname, const char *filter, const char *caption) | |
uiFileDialog (uiParent *p, Type typ, const char *fname, const char *caption) | |
const char * | fileName () const |
const char * | getDefaultExtension () const |
void | getFileNames (BufferStringSet &) const |
int | go () |
Mode | mode () const |
int | processExternalFilenames (const char *dir=0, const char *filters=0) |
const char * | selectedFilter () const |
void | setAllowAllExts (bool yn) |
default true for read, false for write More... | |
void | setConfirmOverwrite (bool yn) |
void | setDefaultExtension (const char *) |
void | setDirectory (const char *dir) |
void | setMode (Mode m) |
void | setSelectedFilter (const char *fltr) |
Static Public Member Functions | |
static const char * | getExternalFilenamesErrMsg () |
static void | list2String (const BufferStringSet &, BufferString &) |
static void | setExternalFilenames (const FileMultiString &) |
static void | string2List (const BufferString &, BufferStringSet &) |
Static Public Attributes | |
static const char * | filesep_ |
Protected Attributes | |
bool | addallexts_ |
uiString | caption_ |
bool | confirmoverwrite_ |
BufferString | currentdir_ |
BufferString | defaultextension_ |
BufferStringSet | filenames_ |
BufferString | filter_ |
BufferString | fn |
BufferString | fname_ |
bool | forread_ |
Mode | mode_ |
uiParent * | parnt_ |
BufferString | selectedfilter_ |
Static Protected Attributes | |
static FileMultiString * | externalfilenames_ |
static BufferString | extfilenameserrmsg_ |
Private Member Functions | |
int | beginCmdRecEvent (const char *wintitle) |
void | endCmdRecEvent (int refnr, bool ok) |
void | setDefaultCaption () |
Dialog to get a file or directory name from user.
<>
enum uiFileDialog::Mode |
File selection mode.
enum uiFileDialog::Type |
uiFileDialog::uiFileDialog | ( | uiParent * | , |
bool | forread, | ||
const char * | fname = 0 , |
||
const char * | filter = 0 , |
||
const uiString & | caption = uiString::emptyString() |
||
) |
uiFileDialog::uiFileDialog | ( | uiParent * | , |
Mode | mode = AnyFile , |
||
const char * | fname = 0 , |
||
const char * | filter = 0 , |
||
const uiString & | caption = uiString::emptyString() |
||
) |
uiFileDialog::uiFileDialog | ( | uiParent * | , |
Type | , | ||
const char * | fname = 0 , |
||
const uiString & | caption = uiString::emptyString() |
||
) |
Always AnyFile.
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
inline |
const char* uiFileDialog::getDefaultExtension | ( | ) | const |
|
static |
void uiFileDialog::getFileNames | ( | BufferStringSet & | ) | const |
int uiFileDialog::go | ( | ) |
|
static |
|
inline |
int uiFileDialog::processExternalFilenames | ( | const char * | dir = 0 , |
const char * | filters = 0 |
||
) |
|
inline |
|
inline |
default true for read, false for write
|
inline |
|
private |
void uiFileDialog::setDefaultExtension | ( | const char * | ) |
|
inline |
|
static |
|
inline |
|
inline |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022