(new in Rev4.00)
MQFileDialogBase is a base class for a dialog to select files. MQOpenFileDialog and MQSaveFileDialog classes inherit the MQFileDialogBase class.
| Class | |
| MQFileDialogBase | Constructor |
| ~MQFileDialogBase | Destructor |
| Member function | |
| AddFilter | Add a type of a file |
| GetFilterCount | Get a number of types of files |
| GetFilter | Get a type of a file |
| SetFilter | Set a type of a file |
| ClearFilters | Clear all types of files |
| GetTitle | Get a title |
| SetTitle | Set a title |
| GetFileName | Get a filename |
| SetFileName | Set a filename |
| GetInitialDir | Get an initial directory |
| SetInitialDir | Set an initial directory |
| GetDefaultExt | Get a default extension |
| SetDefaultExt | Set a default extension |
| GetFilterIndex | Get an index of a type of a file |
| SetFilterIndex | Set an index of a type of a file |
| GetNoChangeDir | Get a changable of a directory |
| SetNoChangeDir | Set a changable of a directory |
MQFileDialogBase::MQFileDialogBase();
It is a constructor.
virtual MQFileDialogBase::~MQFileDialogBase();
This method is a destructor. It is defined as a virtual function.
int MQFileDialogBase::AddFilter(const std::wstring& val);
It adds a type of a file.
'val' contains a description and an extension like as "Text file (*.txt)|*.txt".
int MQFileDialogBase::GetFilterCount() const;
It returns a number of types of files.
std::wstring MQFileDialogBase::GetFilter(int index) const;
It returns a type of a file by the speicified index.
void MQFileDialogBase::SetFilter(int index, const std::wstring& val);
It specifies a type of a file with the specified index.
bool MQFileDialogBase::ClearFilters();
It erases all types of files for a file dialog.
std::wstring MQFileDialogBase::GetTitle();
It returns a title displayed on a title bar in a file dialog.
void MQFileDialogBase::SetTitle(const std::wstring& val);
It specifies a title displayed on a title bar in a file dialog.
std::wstring MQFileDialogBase::GetFileName();
It returns a filename of the selected file in a full path.
The value is an initial filename displayed in a file dialog before opening a file dialog, and it is a selected filename after opening a file dialog.
void MQFileDialogBase::SetFileName(const std::wstring& val);
It specifies an initial filename.
std::wstring MQFileDialogBase::GetInitialDir();
It return a directory displayed initially after opening a file dialog.
void MQFileDialogBase::SetInitialDir(const std::wstring& val);
It specified a directory displayed initially after opening a file dialog.
std::wstring MQFileDialogBase::GetDefaultExt();
It returns a default extension.
void MQFileDialogBase::SetDefaultExt(const std::wstring& val);
It specifies a default extension.
The extension is specified like as "txt".
int MQFileDialogBase::GetFilterIndex();
It returns a selected index of a type of a file.
The value is an initial type before opening a file dialog, and it is a selected type after opening a file dialog.
void MQFileDialogBase::SetFilterIndex(int val);
It specifies a selected index of a type of a file.
The value is an initial type before opening a file dialog, and it is a selected type after opening a file dialog.
bool MQFileDialogBase::GetNoChangeDir();
It returns whether to change a directory in a file dialog.
void MQFileDialogBase::SetNoChangeDir(bool val);
It specifies whether to change a directory in a file dialog.