summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
committerDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
commit6ec390d53a3dbea90e7308c9e40e03266f5d5127 (patch)
tree964973527778b5b2b28f8a5ebf63057fb7651d36 /src/gui
parent1a725c0811fd15900464e1eff429c6ead90805d4 (diff)
downloadingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.gz
ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.bz2
ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.zip
Rename DataType to PortType (since that's what it really means).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2273 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/ConnectWindow.cpp2
-rw-r--r--src/gui/Port.cpp4
-rw-r--r--src/gui/PortMenu.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index 69687b32..c939f5ea 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -271,7 +271,7 @@ ConnectWindow::connect(bool existing)
bool found = _engine_jack_module->get_symbol(
"new_jack_audio_driver", (void*&)(new_driver));
if (found) {
- world->local_engine->set_driver(DataType::AUDIO,
+ world->local_engine->set_driver(PortType::AUDIO,
SharedPtr<Driver>(new_driver(*world->local_engine, "default", "", 0)));
}
}
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index c4f5de5e..012e8fcd 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -125,9 +125,9 @@ void
Port::set_control(float value, bool signal)
{
if (signal) {
- if (model()->type() == DataType::CONTROL) {
+ if (model()->type() == PortType::CONTROL) {
App::instance().engine()->set_port_value(model()->path(), Atom(value));
- } else if (model()->type() == DataType::EVENTS) {
+ } else if (model()->type() == PortType::EVENTS) {
App::instance().engine()->set_port_value(model()->path(),
Atom("<http://example.org/ev#BangEvent>", 0, NULL));
}
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index 647dac8b..bbf5cbbd 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -48,7 +48,7 @@ PortMenu::init(SharedPtr<PortModel> port, bool patch_port)
_destroy_menuitem->hide();
}
- if (port->type() == DataType::EVENTS || port->type() == DataType::VALUE)
+ if (port->type() == PortType::EVENTS || port->type() == PortType::VALUE)
_polyphonic_menuitem->hide();
_enable_signal = true;