Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
31
Src/Wasabi/api/util/savefile.h
Normal file
31
Src/Wasabi/api/util/savefile.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue