4 #include "util/uuid.hpp" 6 #include "nlohmann/json_fwd.hpp" 7 #include "util/editor_process.hpp" 8 #include "util/window_state_store.hpp" 23 void open_file_view(
const Glib::RefPtr<Gio::File> &file);
27 Glib::RefPtr<Gtk::Builder> builder;
28 Gtk::Stack *stack =
nullptr;
29 Gtk::Button *button_open =
nullptr;
30 Gtk::Button *button_close =
nullptr;
31 Gtk::Button *button_update =
nullptr;
32 Gtk::Button *button_download =
nullptr;
33 Gtk::Button *button_do_download =
nullptr;
34 Gtk::Button *button_cancel =
nullptr;
35 Gtk::Spinner *spinner_update =
nullptr;
36 Gtk::Revealer *download_revealer =
nullptr;
37 Gtk::Label *download_label =
nullptr;
39 Gtk::Entry *download_gh_username_entry =
nullptr;
40 Gtk::Entry *download_gh_repo_entry =
nullptr;
41 Gtk::FileChooserButton *download_dest_dir_button =
nullptr;
43 Gtk::HeaderBar *header =
nullptr;
44 Gtk::ListBox *recent_listbox =
nullptr;
45 Gtk::Label *label_gitversion =
nullptr;
46 Gtk::Box *pool_box =
nullptr;
49 Gtk::Label *pool_update_status_label =
nullptr;
50 Gtk::Revealer *pool_update_status_rev =
nullptr;
51 Gtk::Button *pool_update_status_close_button =
nullptr;
52 Gtk::ProgressBar *pool_update_progress =
nullptr;
54 std::string pool_base_path;
56 enum class ViewMode { OPEN, POOL, DOWNLOAD };
57 void set_view_mode(ViewMode mode);
59 void update_recent_items();
65 void handle_download();
66 void handle_do_download();
70 bool on_delete_event(GdkEventAny *ev)
override;
72 void download_thread(std::string gh_username, std::string gh_repo, std::string dest_dir);
74 Glib::Dispatcher download_dispatcher;
76 bool downloading =
false;
77 bool download_error =
false;
78 std::string download_status;
79 std::mutex download_mutex;
86 void set_pool_updating(
bool v,
bool success);
87 void set_pool_update_status_text(
const std::string &txt);
88 void set_pool_update_progress(
float progress);
a class to store JSON values
Definition: json.hpp:161
Definition: pool_notebook.hpp:38
Definition: window_state_store.hpp:20
Definition: pool-mgr-app_win.hpp:13
Definition: pool-mgr-app.hpp:12
Definition: prj-mgr-app_win.hpp:35
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61