8 #ifndef Guit_FileDialog_hpp
9 #define Guit_FileDialog_hpp
10 #include <gdialog.hpp>
28 GType& type()
const override {
return Type();}
75 bool alert_file_exist_{}, alert_file_dont_exist_{};
76 void selectEntry(GString fname);
77 void dblClick(
bool isdir);
78 void setResult(
int result,
bool hide)
override;
84 GFileDialog& FileDialog(GString
const& css_and_title =
"");
90 class GOpenDialog :
public GFileDialog {
92 GOpenDialog(GString
const& css_and_title =
"");
94 GOpenDialog& clone(GClone
const&)
override;
96 using GType = GadgetType_<GOpenDialog,GFileDialog>;
98 GType& type()
const override {
return Type();}
102 GOpenDialog& OpenDialog(GString
const& title =
"", GString
const& directory =
"");
108 class GSaveDialog :
public GFileDialog {
110 GSaveDialog(GString
const& css_and_title =
"");
112 GSaveDialog& clone(GClone
const&)
override;
114 using GType = GadgetType_<GSaveDialog,GFileDialog>;
115 static GType& Type();
116 GType& type()
const override {
return Type();}
120 GSaveDialog& SaveDialog(GString
const& title =
"", GString
const& directory =
"");