summaryrefslogtreecommitdiffstats
path: root/src/libs/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-29 03:17:06 +0000
committerDavid Robillard <d@drobilla.net>2008-09-29 03:17:06 +0000
commit8ef6955d43a441a5873abaa27049041dea18f79e (patch)
treee8f7c61e586939f64336ed67c5a0921702159106 /src/libs/gui
parent3593abd69807674d9949134f1ad2b7f5a9f69dc2 (diff)
downloadingen-8ef6955d43a441a5873abaa27049041dea18f79e.tar.gz
ingen-8ef6955d43a441a5873abaa27049041dea18f79e.tar.bz2
ingen-8ef6955d43a441a5873abaa27049041dea18f79e.zip
* Context extension work.
* Better support for set_port_value on event ports. * Don't pop audio ports when clicking in event mode. * Clicking an event port in event mode will 'bang' the event port (example 'bang' plugin prints when it receives one). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1534 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui')
-rw-r--r--src/libs/gui/Configuration.cpp5
-rw-r--r--src/libs/gui/Port.cpp3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/gui/Configuration.cpp b/src/libs/gui/Configuration.cpp
index a442b37c..758dc744 100644
--- a/src/libs/gui/Configuration.cpp
+++ b/src/libs/gui/Configuration.cpp
@@ -36,9 +36,10 @@ using namespace Ingen::Client;
Configuration::Configuration()
// Colours from the Tango palette with modified V and alpha
- : _audio_port_color( 0x244678C0)
+ : _name_style(HUMAN)
+ , _audio_port_color( 0x244678C0)
, _control_port_color(0x4A8A0EC0)
- , _event_port_color( 0x960909C0)
+ , _event_port_color( 0x960909C0)
// , _midi_port_color( 0x960909C0)
// , _osc_port_color( 0x5C3566C0)
{
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp
index fd35ff90..031c74c5 100644
--- a/src/libs/gui/Port.cpp
+++ b/src/libs/gui/Port.cpp
@@ -126,7 +126,8 @@ Port::set_control(float value, bool signal)
if (_port_model->type() == DataType::CONTROL) {
App::instance().engine()->set_port_value(_port_model->path(), Atom(value));
} else if (_port_model->type() == DataType::EVENT) {
- cout << "EVENT CONTROL" << endl;
+ App::instance().engine()->set_port_value(_port_model->path(),
+ Atom("<http://example.org/ev#BangEvent>", 0, NULL));
}
}