#ifndef JUCI_DIALOG_H_ #define JUCI_DIALOG_H_ #include #include #include #include class Dialog { public: static std::string open_folder(); static std::string open_file(); static std::string new_file(); static std::string new_folder(); static std::string save_file_as(const boost::filesystem::path &file_path); class Message : public Gtk::Window { public: Message(const std::string &text); void wait_until_drawn(); private: Gtk::Label label; bool label_drawn=false; }; private: static std::string gtk_dialog(const std::string &title, const std::vector> &buttons, Gtk::FileChooserAction gtk_options, const std::string &file_name = ""); }; #endif //JUCI_DIALOG_H_