summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-16 22:27:16 +0000
committerDavid Robillard <d@drobilla.net>2012-03-16 22:27:16 +0000
commitbc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 (patch)
treeb42f56620ce85f6207568eadfb901360436c6f74 /src/gui/Port.cpp
parent7126f005be3e49818dafe0d2666b6745e09f8aff (diff)
downloadingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.tar.gz
ingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.tar.bz2
ingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.zip
Preliminary work towards native LV2 UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4074 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 7bf3412d..aa3786e3 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -154,9 +154,9 @@ Port::on_value_changed(const Glib::VariantBase& value)
world->uris()->ingen_value,
_app.forge().make(fval));
- PatchWindow* pw = get_patch_window();
- if (pw) {
- pw->show_port_status(model().get(), _app.forge().make(fval));
+ PatchBox* box = get_patch_box();
+ if (box) {
+ box->show_port_status(model().get(), _app.forge().make(fval));
}
}
@@ -171,18 +171,18 @@ Port::value_changed(const Atom& value)
bool
Port::on_event(GdkEvent* ev)
{
- PatchWindow* win = NULL;
+ PatchBox* box = NULL;
switch (ev->type) {
case GDK_ENTER_NOTIFY:
- win = get_patch_window();
- if (win) {
- win->object_entered(model().get());
+ box = get_patch_box();
+ if (box) {
+ box->object_entered(model().get());
}
break;
case GDK_LEAVE_NOTIFY:
- win = get_patch_window();
- if (win) {
- win->object_left(model().get());
+ box = get_patch_box();
+ if (box) {
+ box->object_left(model().get());
}
break;
case GDK_BUTTON_PRESS:
@@ -263,15 +263,15 @@ Port::activity(const Raul::Atom& value)
}
}
-PatchWindow*
-Port::get_patch_window() const
+PatchBox*
+Port::get_patch_box() const
{
SharedPtr<const PatchModel> patch = PtrCast<const PatchModel>(model()->parent());
if (!patch) {
patch = PtrCast<const PatchModel>(model()->parent()->parent());
}
- return _app.window_factory()->patch_window(patch);
+ return _app.window_factory()->patch_box(patch);
}
void