From 69ad5f645fbc1ac5c4f886a7f2daa6c354b4afe3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Jun 2009 01:52:12 +0000 Subject: 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 --- src/gui/LoadPluginWindow.hpp | 74 +++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 43 deletions(-) (limited to 'src') 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 > _col_icon; - Gtk::TreeModelColumn _col_name; - Gtk::TreeModelColumn _col_type; - Gtk::TreeModelColumn _col_uri; - - // Not displayed: - Gtk::TreeModelColumn > _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 _col_label; - Gtk::TreeModelColumn _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 > _col_icon; + Gtk::TreeModelColumn _col_name; + Gtk::TreeModelColumn _col_type; + Gtk::TreeModelColumn _col_uri; + + // Not displayed: + Gtk::TreeModelColumn > _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 _col_label; + Gtk::TreeModelColumn _col_criteria; + }; + void add_clicked(); //void close_clicked(); //void ok_clicked(); -- cgit v1.2.1