diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/util/savefile.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/util/savefile.h')
-rw-r--r-- | Src/Wasabi/api/util/savefile.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Src/Wasabi/api/util/savefile.h b/Src/Wasabi/api/util/savefile.h new file mode 100644 index 00000000..3df65287 --- /dev/null +++ b/Src/Wasabi/api/util/savefile.h @@ -0,0 +1,31 @@ +#ifndef _SAVEFILE_H +#define _SAVEFILE_H + +#include "common.h" + +#include "modal.h" +#include "../bfc/string.h" + +class ifc_window; + +class SaveFileWnd : public Modal { +public: + SaveFileWnd(const char *ident=NULL); +/** + Sets the initial directory for the picker. If force is FALSE, this directory + will only be used if no previous directory has been saved for the indent. + If TRUE, it will always be used. +*/ + void setInitialDir(const char *dir, int force=FALSE); + int getSaveFile(ifc_window *parent, const char *ext, const char *suggext); + int getSaveFileW(ifc_window *parent, const char *ext, const char *suggext); + const char *getFilename() { return filename; } + +private: + String identifier; + String filename; + String initial_dir; + int force_initial_dir; +}; + +#endif |