summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PluginModel.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-29 07:36:10 +0000
committerDavid Robillard <d@drobilla.net>2007-04-29 07:36:10 +0000
commitf25115ca85bc95e1147b582a1137dbb44b86fc83 (patch)
tree794dfcbf2a3f1feaef01d802168829d8bf39df96 /src/libs/client/PluginModel.h
parentcef54205d4a3776822cbf6726fa6cfb2a6e9bee4 (diff)
downloadingen-f25115ca85bc95e1147b582a1137dbb44b86fc83.tar.gz
ingen-f25115ca85bc95e1147b582a1137dbb44b86fc83.tar.bz2
ingen-f25115ca85bc95e1147b582a1137dbb44b86fc83.zip
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
Diffstat (limited to 'src/libs/client/PluginModel.h')
-rw-r--r--src/libs/client/PluginModel.h10
1 files changed, 5 insertions, 5 deletions
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 "";
}