Build plugin menu only when plugins change, and build the first version of it before it is required to ensure that the first processor box popup menu appears fairly quickly.

git-svn-id: svn://localhost/ardour2/branches/3.0@6092 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-16 01:06:33 +00:00
parent 0aaa08a3d2
commit 1e8f2693f7
5 changed files with 34 additions and 12 deletions

View file

@ -37,6 +37,7 @@ class PluginSelector : public ArdourDialog
{
public:
PluginSelector (ARDOUR::PluginManager *);
~PluginSelector ();
void set_interested_object (PluginInterestedObject&);
@ -114,6 +115,7 @@ class PluginSelector : public ArdourDialog
void vst_refiller (const std::string&);
void au_refiller (const std::string&);
Gtk::Menu* _plugin_menu;
ARDOUR::PluginManager *manager;
void row_clicked(GdkEventButton *);
@ -136,6 +138,7 @@ class PluginSelector : public ArdourDialog
Gtk::Menu* create_favs_menu (ARDOUR::PluginInfoList&);
Gtk::Menu* create_by_creator_menu (ARDOUR::PluginInfoList&);
Gtk::Menu* create_by_category_menu (ARDOUR::PluginInfoList&);
void build_plugin_menu ();
};
#endif // __ardour_plugin_selector_h__