19 #ifndef __gtk2_ardour_library_download_dialog_h__
20 #define __gtk2_ardour_library_download_dialog_h__
24 #include <ytkmm/cellrendererprogress.h>
25 #include <ytkmm/cellrenderertext.h>
26 #include <ytkmm/entry.h>
27 #include <ytkmm/liststore.h>
28 #include <ytkmm/scrolledwindow.h>
29 #include <ytkmm/treeview.h>
30 #include <ytkmm/textview.h>
40 class LibraryDescription;
70 Gtk::TreeModelColumn<std::string>
name;
71 Gtk::TreeModelColumn<std::string>
author;
72 Gtk::TreeModelColumn<std::string>
license;
73 Gtk::TreeModelColumn<std::string>
size;
74 Gtk::TreeModelColumn<std::string>
install;
77 Gtk::TreeModelColumn<std::string>
url;
91 Gtk::TreeViewColumn*
append_col (Gtk::TreeModelColumn<T>
const& col,
int width = 0)
93 Gtk::TreeViewColumn* c = manage (
new Gtk::TreeViewColumn (
"", col));
95 c->set_fixed_width (width);
96 c->set_sizing (Gtk::TREE_VIEW_COLUMN_FIXED);
114 void install (std::string
const & path, Gtk::TreePath
const & treepath);
Gtk::TreeModelColumn< std::string > install
Gtk::TreeModelColumn< std::string > author
Gtk::TreeModelColumn< std::string > size
Gtk::TreeModelColumn< std::string > toplevel
Gtk::TreeModelColumn< PBD::Downloader * > downloader
Gtk::TreeModelColumn< int > progress
Gtk::TreeModelColumn< std::string > description
Gtk::TreeModelColumn< bool > installed
Gtk::TreeModelColumn< std::string > license
Gtk::TreeModelColumn< std::string > name
Gtk::TreeModelColumn< std::string > url
Gtk::CellRendererProgress * progress_renderer
void append_progress_column()
PBD::ScopedConnection install_connection
void append_install_column()
Gtk::TextView description_view
Gtk::CellRendererText * install_renderer
void install(std::string const &path, Gtk::TreePath const &treepath)
void install_progress(float, std::string, Gtk::TreePath)
Gtk::TreeViewColumn * append_col(Gtk::TreeModelColumn< T > const &col, int width=0)
bool dl_timer_callback(PBD::Downloader *, Gtk::TreePath)
void add_library(ARDOUR::LibraryDescription const &)
void download(Gtk::TreePath const &)
bool display_button_press(GdkEventButton *ev)
Glib::RefPtr< Gtk::ListStore > _model
void install_finished(Gtk::TreeModel::iterator row, std::string path, int status)
Gtk::ScrolledWindow scroller