.
|
Public Member Functions |
|
std::string | directory () const |
| | Returns the dialog's current directory.
|
|
void | directory (std::string p) |
| | Sets the dialog's current directory.
|
|
void | clearPatterns () |
| | Removes all the defined file name paterns.
|
| void | setPattern (std::string patternName) |
| void | addPattern (std::string patternName, std::string pattern) |
|
std::string | pattern () const |
| | Returns currently selected pattern.
|
| void | refreshDirectory (std::string dirName="") |
| std::string | fileName () const |
| std::string | fullFileName () const |
| void | fileName (std::string fileName) |
|
bool | execute () |
| | Initializes the dialog and shows it in the modal mode.
|
Protected Member Functions |
|
void | createFolder () |
| | Creates a new folder. The folder name is asked interactively.
|
| | CFileDialog (std::string label, bool saveMode) |
Static Protected Member Functions |
| static std::string | removeTrailingSlash (std::string dirname) |
| | Removes a trailing slash in the directory name.
|
|
static void | new_folder_cb (Fl_Widget *, void *) |
| | Internal create folder button callback.
|
|
static void | home_cb (Fl_Widget *, void *) |
| | Internal home button callback.
|
|
static void | up_cb (Fl_Widget *, void *) |
| | Internal go up button callback.
|
|
static void | dirview_cb (Fl_Widget *w, void *) |
| | Internal directory double-clicked callback.
|
|
static void | lookin_cb (Fl_Widget *w, void *) |
| | Internal look-in combo callback.
|
|
static void | pattern_cb (Fl_Widget *w, void *) |
| | Internal pattern combo callback.
|
Protected Attributes |
|
CDirectoryDS | m_directory |
| | Directory Dataset.
|
|
CListView * | m_directoryView |
| | File list in the directory.
|
|
CComboBox * | m_lookInCombo |
| | The combo with the list of the lookup directories.
|
|
CInput * | m_fileNameInput |
| | The file name input box.
|
|
CComboBox * | m_patternCombo |
| | The file mask (pattern) selection combo.
|
Static Protected Attributes |
|
static const char | slashChar |
| | Default slash character, '\' on Windows and '/' on Unux.
|
|
static const char | slashStr [] |
| | Default slash character string, "\\" on Windows and "/" on Unux.
|
.
Actually implements most of these classes functionality. Can't be used by itself, only as a base class.