system file picker anyone? DO NOT COMPILE!
This commit is contained in:
parent
3be56d50ab
commit
5e77b47467
8 changed files with 180 additions and 13 deletions
31
src/gui/fileDialog.h
Normal file
31
src/gui/fileDialog.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "../ta-utils.h"
|
||||
#include "imgui.h"
|
||||
|
||||
namespace pfd {
|
||||
class open_file;
|
||||
class save_file;
|
||||
}
|
||||
|
||||
class FurnaceGUIFileDialog {
|
||||
bool sysDialog;
|
||||
bool opened;
|
||||
bool saving;
|
||||
String curPath;
|
||||
String fileName;
|
||||
pfd::open_file* dialogO;
|
||||
pfd::save_file* dialogS;
|
||||
public:
|
||||
bool openLoad(String header, std::vector<String> filter, String path, double dpiScale);
|
||||
bool openSave(String header, std::vector<String> filter, String path, double dpiScale);
|
||||
bool accepted();
|
||||
void close();
|
||||
bool render(const ImVec2& min, const ImVec2& max);
|
||||
String getPath();
|
||||
String getFileName();
|
||||
FurnaceGUIFileDialog(bool system):
|
||||
sysDialog(system),
|
||||
opened(false),
|
||||
saving(false),
|
||||
dialogO(NULL),
|
||||
dialogS(NULL) {}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue