mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
SelectDirectory
git-svn-id: svn://ultimatepp.org/upp/trunk@2608 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f51955968a
commit
f7a4980847
2 changed files with 11 additions and 0 deletions
|
|
@ -265,6 +265,7 @@ public:
|
|||
|
||||
String SelectFileOpen(const char *types);
|
||||
String SelectFileSaveAs(const char *types);
|
||||
String SelectDirectory();
|
||||
String SelectLoadFile(const char *types);
|
||||
bool SelectSaveFile(const char *types, const String& data);
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,16 @@ String SelectFileSaveAs(const char *types)
|
|||
return b ? ~fs : String::GetVoid();
|
||||
}
|
||||
|
||||
String SelectDirectory()
|
||||
{
|
||||
FileSel fs;
|
||||
fs.ActiveDir(GetHomeDirectory());
|
||||
LoadFromGlobal(fs, "GlobalDirSelector");
|
||||
bool b = fs.ExecuteSelectDir();
|
||||
StoreToGlobal(fs, "GlobalDirSelector");
|
||||
return b ? ~fs : String::GetVoid();
|
||||
}
|
||||
|
||||
SelectFileIn::SelectFileIn(const char *types)
|
||||
{
|
||||
for(;;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue