advance compilation to include plugin_ui.cc

git-svn-id: svn://localhost/trunk/ardour2@111 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2005-11-25 03:36:42 +00:00
parent aca31b078b
commit 2dd3c9578f
7 changed files with 32 additions and 31 deletions

View file

@ -30,14 +30,12 @@
#include <ardour/plugin_state.h>
#include <ardour/cycles.h>
#include <list>
#include <vector>
#include <set>
#include <map>
using std::string;
using std::vector;
using std::list;
using std::set;
using std::map;
@ -128,7 +126,7 @@ class Plugin : public Stateful, public sigc::trackable
virtual bool save_preset(string name) = 0;
virtual bool load_preset (const string preset_label);
virtual list<string> get_presets();
virtual std::vector<std::string> get_presets();
virtual bool has_editor() const = 0;

View file

@ -265,10 +265,10 @@ Plugin::write_midi_feedback (MIDI::byte* buf, int32_t& bufsize)
return buf;
}
list<string>
vector<string>
Plugin::get_presets()
{
list<string> labels;
vector<string> labels;
lrdf_uris* set_uris = lrdf_get_setting_uris(unique_id());
if (set_uris) {
@ -281,7 +281,8 @@ Plugin::get_presets()
lrdf_free_uris(set_uris);
}
labels.unique();
// GTK2FIX find an equivalent way to do this with a vector (needed by GUI apis)
// labels.unique();
return labels;
}