From f25115ca85bc95e1147b582a1137dbb44b86fc83 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2007 07:36:10 +0000 Subject: Replace URIs in load plugin dialog with user friendly strings. Sort plugins in plugin dialog in a sane default order (internals first). git-svn-id: http://svn.drobilla.net/lad/ingen@484 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginModel.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libs') diff --git a/src/libs/client/PluginModel.h b/src/libs/client/PluginModel.h index 6614a3b6..d15d0ff4 100644 --- a/src/libs/client/PluginModel.h +++ b/src/libs/client/PluginModel.h @@ -41,7 +41,7 @@ class PatchModel; class PluginModel { public: - enum Type { LV2, LADSPA, DSSI, Internal, Patch }; + enum Type { Internal=0, LV2, DSSI, LADSPA, Patch }; PluginModel(const string& uri, const string& type_uri, const string& name) : _uri(uri) @@ -78,10 +78,10 @@ public: }*/ const char* const type_uri() const { - if (_type == LV2) return "ingen:LV2Plugin"; - else if (_type == LADSPA) return "ingen:LADSPAPlugin"; - else if (_type == DSSI) return "ingen:DSSIPlugin"; - else if (_type == Internal) return "ingen:InternalPlugin"; + if (_type == LV2) return "ingen:LV2"; + else if (_type == LADSPA) return "ingen:LADSPA"; + else if (_type == DSSI) return "ingen:DSSI"; + else if (_type == Internal) return "ingen:Internal"; else if (_type == Patch) return "ingen:Patch"; else return ""; } -- cgit v1.2.1