diff options
author | David Robillard <d@drobilla.net> | 2007-04-12 03:40:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-12 03:40:37 +0000 |
commit | aa309115304f1cae1938787bd487822687d499a4 (patch) | |
tree | 135264036a53421fd6d33a358a68e0affd13d672 /src/progs/ingenuity/LoadRemotePatchWindow.h | |
parent | 533402f16f6a7e6a9aa6df4186055690bce8e3ac (diff) | |
download | ingen-aa309115304f1cae1938787bd487822687d499a4.tar.gz ingen-aa309115304f1cae1938787bd487822687d499a4.tar.bz2 ingen-aa309115304f1cae1938787bd487822687d499a4.zip |
Remote patch indexing, loading from online patch repository.
git-svn-id: http://svn.drobilla.net/lad/ingen@446 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/LoadRemotePatchWindow.h')
-rw-r--r-- | src/progs/ingenuity/LoadRemotePatchWindow.h | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/src/progs/ingenuity/LoadRemotePatchWindow.h b/src/progs/ingenuity/LoadRemotePatchWindow.h index c7a8ee22..5c399888 100644 --- a/src/progs/ingenuity/LoadRemotePatchWindow.h +++ b/src/progs/ingenuity/LoadRemotePatchWindow.h @@ -28,7 +28,25 @@ using Ingen::Client::PatchModel; using Ingen::Client::MetadataMap; namespace Ingenuity { - + + +/** Columns for the remote patch list. + * + * \ingroup Ingenuity + */ +class PatchColumns : public Gtk::TreeModel::ColumnRecord +{ +public: + PatchColumns() { + add(_col_name); + add(_col_uri); + } + + Gtk::TreeModelColumn<Glib::ustring> _col_name; + Gtk::TreeModelColumn<Glib::ustring> _col_uri; +}; + + /* Load remote patch ("import location") dialog. * @@ -47,6 +65,9 @@ public: void present(SharedPtr<PatchModel> patch, MetadataMap data); private: + void patch_activated(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* col); + void patch_selected(); + void uri_changed(); void open_clicked(); void cancel_clicked(); @@ -54,10 +75,15 @@ private: SharedPtr<PatchModel> _patch; bool _replace; + + Glib::RefPtr<Gtk::TreeSelection> _selection; + Glib::RefPtr<Gtk::ListStore> _liststore; + PatchColumns _columns; - Gtk::Entry* _uri_entry; - Gtk::Button* _open_button; - Gtk::Button* _cancel_button; + Gtk::TreeView* _treeview; + Gtk::Entry* _uri_entry; + Gtk::Button* _open_button; + Gtk::Button* _cancel_button; }; |