mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
916 B
28 lines
916 B
|
8 years ago
|
#pragma once
|
||
|
10 years ago
|
#include <boost/filesystem.hpp>
|
||
|
10 years ago
|
#include <gtkmm.h>
|
||
|
8 years ago
|
#include <string>
|
||
|
|
#include <vector>
|
||
|
10 years ago
|
|
||
|
|
class Dialog {
|
||
|
10 years ago
|
public:
|
||
|
10 years ago
|
static std::string open_folder(const boost::filesystem::path &path);
|
||
|
|
static std::string open_file(const boost::filesystem::path &path);
|
||
|
|
static std::string new_file(const boost::filesystem::path &path);
|
||
|
|
static std::string new_folder(const boost::filesystem::path &path);
|
||
|
|
static std::string save_file_as(const boost::filesystem::path &path);
|
||
|
8 years ago
|
|
||
|
8 years ago
|
class Message : public Gtk::Window {
|
||
|
10 years ago
|
public:
|
||
|
|
Message(const std::string &text);
|
||
|
8 years ago
|
|
||
|
10 years ago
|
protected:
|
||
|
|
bool on_delete_event(GdkEventAny *event) override;
|
||
|
10 years ago
|
};
|
||
|
8 years ago
|
|
||
|
10 years ago
|
private:
|
||
|
10 years ago
|
static std::string gtk_dialog(const boost::filesystem::path &path, const std::string &title,
|
||
|
8 years ago
|
const std::vector<std::pair<std::string, Gtk::ResponseType>> &buttons,
|
||
|
|
Gtk::FileChooserAction gtk_options);
|
||
|
10 years ago
|
};
|