Horizon
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
horizon::PoolManagerAppWindow Class Reference
Inheritance diagram for horizon::PoolManagerAppWindow:

Public Member Functions

 PoolManagerAppWindow (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &refBuilder, class PoolManagerApplication *app)
 
void open_file_view (const Glib::RefPtr< Gio::File > &file)
 
bool close_pool ()
 
void set_pool_updating (bool v, bool success)
 
void set_pool_update_status_text (const std::string &txt)
 
void set_pool_update_progress (float progress)
 

Static Public Member Functions

static PoolManagerAppWindowcreate (class PoolManagerApplication *app)
 

Public Attributes

zmq::context_t & zctx
 

Protected Types

enum  ViewMode { OPEN, POOL, DOWNLOAD }
 

Protected Member Functions

void set_view_mode (ViewMode mode)
 
void update_recent_items ()
 
void handle_open ()
 
void handle_close ()
 
void handle_recent ()
 
void handle_update ()
 
void handle_download ()
 
void handle_do_download ()
 
void handle_cancel ()
 
json handle_req (const json &j)
 
bool on_delete_event (GdkEventAny *ev) override
 
void download_thread (std::string gh_username, std::string gh_repo, std::string dest_dir)
 

Protected Attributes

Glib::RefPtr< Gtk::Builder > builder
 
Gtk::Stack * stack = nullptr
 
Gtk::Button * button_open = nullptr
 
Gtk::Button * button_close = nullptr
 
Gtk::Button * button_update = nullptr
 
Gtk::Button * button_download = nullptr
 
Gtk::Button * button_do_download = nullptr
 
Gtk::Button * button_cancel = nullptr
 
Gtk::Spinner * spinner_update = nullptr
 
Gtk::Revealer * download_revealer = nullptr
 
Gtk::Label * download_label = nullptr
 
Gtk::Entry * download_gh_username_entry = nullptr
 
Gtk::Entry * download_gh_repo_entry = nullptr
 
Gtk::FileChooserButton * download_dest_dir_button = nullptr
 
Gtk::HeaderBar * header = nullptr
 
Gtk::ListBox * recent_listbox = nullptr
 
Gtk::Label * label_gitversion = nullptr
 
Gtk::Box * pool_box = nullptr
 
class PoolNotebookpool_notebook = nullptr
 
Gtk::Label * pool_update_status_label = nullptr
 
Gtk::Revealer * pool_update_status_rev = nullptr
 
Gtk::Button * pool_update_status_close_button = nullptr
 
Gtk::ProgressBar * pool_update_progress = nullptr
 
std::string pool_base_path
 
Glib::Dispatcher download_dispatcher
 
bool downloading = false
 
bool download_error = false
 
std::string download_status
 
std::mutex download_mutex
 
WindowStateStore state_store
 

Friends

class ProjectManagerViewProject
 

The documentation for this class was generated from the following files: