Public Types | |
| typedef WidgetChooseFolder< Parent > | ObjectType |
| Object type. | |
|
typedef WidgetChooseFolder< Parent > | ThisType |
| Class type. | |
Public Member Functions | |
| void | setRootDirectory (const int CSIDL=CSIDL_DESKTOPDIRECTORY) |
| Sets the root directory in the WidgetChooseFolder Widget. | |
| void | setStartDirectory (SmartUtil::tstring startDir) |
| Sets the starting directory selected in the WidgetChooseFolder widget. | |
| SmartUtil::tstring | showDialog () |
| Shows the dialog. | |
| typedef WidgetChooseFolder< Parent > ObjectType |
Object type.
Note, not a pointer!!!!
| void setRootDirectory | ( | const int | CSIDL = CSIDL_DESKTOPDIRECTORY |
) |
Sets the root directory in the WidgetChooseFolder Widget.
If given your dialog will try to start with the given directory as root, otherwise it will use the desktop directory.
| void setStartDirectory | ( | SmartUtil::tstring | startDir | ) |
Sets the starting directory selected in the WidgetChooseFolder widget.
If given your dialog will try to start with the given directory selected.
| SmartUtil::tstring showDialog | ( | ) |
Shows the dialog.
Returns string() or "empty string" if user press cancel.
Returns a "folder path" if user presses ok.
Use the inherited functions AspectfolderFilter::addFilter and AspectfolderFilter::activeFilter
before calling this function, if you wish the dialog to show only certain types of folders.