summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-03 01:52:12 +0000
committerDavid Robillard <d@drobilla.net>2009-06-03 01:52:12 +0000
commit69ad5f645fbc1ac5c4f886a7f2daa6c354b4afe3 (patch)
treec318574581c7fcdb373414170759925fb491efe6 /src/gui
parent100d4f66654f8b11c73186e22c600a69d94aebe5 (diff)
downloadingen-69ad5f645fbc1ac5c4f886a7f2daa6c354b4afe3.tar.gz
ingen-69ad5f645fbc1ac5c4f886a7f2daa6c354b4afe3.tar.bz2
ingen-69ad5f645fbc1ac5c4f886a7f2daa6c354b4afe3.zip
Make plugin dialog tree model junk local classes (hide from documentation).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2074 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/LoadPluginWindow.hpp74
1 files changed, 31 insertions, 43 deletions
diff --git a/src/gui/LoadPluginWindow.hpp b/src/gui/LoadPluginWindow.hpp
index faae29b5..f4a0a074 100644
--- a/src/gui/LoadPluginWindow.hpp
+++ b/src/gui/LoadPluginWindow.hpp
@@ -38,49 +38,6 @@ using Ingen::Client::PatchModel;
namespace GUI {
-// Gtkmm _really_ needs to add some helper to abstract away this stupid nonsense
-
-/** Columns for the plugin list in the load plugin window.
- *
- * \ingroup GUI
- */
-class ModelColumns : public Gtk::TreeModel::ColumnRecord
-{
-public:
- ModelColumns() {
- add(_col_icon);
- add(_col_name);
- add(_col_type);
- add(_col_uri);
- add(_col_plugin);
- }
-
- Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > _col_icon;
- Gtk::TreeModelColumn<Glib::ustring> _col_name;
- Gtk::TreeModelColumn<Glib::ustring> _col_type;
- Gtk::TreeModelColumn<Glib::ustring> _col_uri;
-
- // Not displayed:
- Gtk::TreeModelColumn<SharedPtr<PluginModel> > _col_plugin;
-};
-
-
-/** Column for the criteria combo box in the load plugin window.
- *
- * \ingroup GUI
- */
-class CriteriaColumns : public Gtk::TreeModel::ColumnRecord
-{
-public:
- enum Criteria { NAME, TYPE, URI, };
-
- CriteriaColumns() { add(_col_label); add(_col_criteria); }
-
- Gtk::TreeModelColumn<Glib::ustring> _col_label;
- Gtk::TreeModelColumn<Criteria> _col_criteria;
-};
-
-
/** 'Load Plugin' window.
*
* Loaded by glade as a derived object.
@@ -104,6 +61,37 @@ protected:
bool on_key_press_event(GdkEventKey* event);
private:
+ /** Columns for the plugin list */
+ class ModelColumns : public Gtk::TreeModel::ColumnRecord {
+ public:
+ ModelColumns() {
+ add(_col_icon);
+ add(_col_name);
+ add(_col_type);
+ add(_col_uri);
+ add(_col_plugin);
+ }
+
+ Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > _col_icon;
+ Gtk::TreeModelColumn<Glib::ustring> _col_name;
+ Gtk::TreeModelColumn<Glib::ustring> _col_type;
+ Gtk::TreeModelColumn<Glib::ustring> _col_uri;
+
+ // Not displayed:
+ Gtk::TreeModelColumn<SharedPtr<PluginModel> > _col_plugin;
+ };
+
+ /** Column for the filter criteria combo box. */
+ class CriteriaColumns : public Gtk::TreeModel::ColumnRecord {
+ public:
+ enum Criteria { NAME, TYPE, URI, };
+
+ CriteriaColumns() { add(_col_label); add(_col_criteria); }
+
+ Gtk::TreeModelColumn<Glib::ustring> _col_label;
+ Gtk::TreeModelColumn<Criteria> _col_criteria;
+ };
+
void add_clicked();
//void close_clicked();
//void ok_clicked();