[SCM] calf/master: + GUI: make LED and different knob modes available in XML-based GUIs

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:23 UTC 2013


The following commit has been merged in the master branch:
commit a9020d6985a3622acede20367f82ec93afad2abf
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Nov 6 21:55:53 2008 +0000

    + GUI: make LED and different knob modes available in XML-based GUIs

diff --git a/src/gui.cpp b/src/gui.cpp
index 271769e..7613901 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -240,6 +240,7 @@ GtkWidget *vumeter_param_control::create(plugin_gui *_gui, int _param_no)
     gui = _gui, param_no = _param_no;
     // parameter_properties &props = get_props();
     widget = calf_vumeter_new ();
+    calf_vumeter_set_mode (CALF_VUMETER (widget), (CalfVUMeterMode)get_int("mode", 0));
     return widget;
 }
 
@@ -773,6 +774,8 @@ param_control *plugin_gui::create_control_from_xml(const char *element, const ch
         return new keyboard_param_control;
     if (!strcmp(element, "curve"))
         return new curve_param_control;
+    if (!strcmp(element, "led"))
+        return new led_param_control;
     return NULL;
 }
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list