summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-19 02:24:38 +0000
committerDavid Robillard <d@drobilla.net>2012-08-19 02:24:38 +0000
commit800c329a0b77f9044923885abe0728028eca8350 (patch)
treef2d4a9d06fd6978e193de95ba60bfffe3d15a998 /src/gui/Port.cpp
parent317627ef40f7654c298aa1ac707851c852259e3a (diff)
downloadingen-800c329a0b77f9044923885abe0728028eca8350.tar.gz
ingen-800c329a0b77f9044923885abe0728028eca8350.tar.bz2
ingen-800c329a0b77f9044923885abe0728028eca8350.zip
Patch => Graph
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4721 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 88d81fcd..f747234a 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -20,12 +20,12 @@
#include "ganv/Module.hpp"
#include "ingen/Interface.hpp"
#include "ingen/Log.hpp"
-#include "ingen/client/PatchModel.hpp"
+#include "ingen/client/GraphModel.hpp"
#include "ingen/client/PortModel.hpp"
#include "App.hpp"
#include "Configuration.hpp"
-#include "PatchWindow.hpp"
+#include "GraphWindow.hpp"
#include "Port.hpp"
#include "PortMenu.hpp"
#include "WidgetFactory.hpp"
@@ -156,7 +156,7 @@ Port::on_value_changed(GVariant* value)
}
if (_entered) {
- PatchBox* box = get_patch_box();
+ GraphBox* box = get_graph_box();
if (box) {
box->show_port_status(model().get(), atom);
}
@@ -202,17 +202,17 @@ Port::build_enum_menu()
bool
Port::on_event(GdkEvent* ev)
{
- PatchBox* box = NULL;
+ GraphBox* box = NULL;
switch (ev->type) {
case GDK_ENTER_NOTIFY:
_entered = true;
- if ((box = get_patch_box())) {
+ if ((box = get_graph_box())) {
box->object_entered(model().get());
}
break;
case GDK_LEAVE_NOTIFY:
_entered = false;
- if ((box = get_patch_box())) {
+ if ((box = get_graph_box())) {
box->object_left(model().get());
}
break;
@@ -306,15 +306,15 @@ Port::disconnected_from(SharedPtr<PortModel> port)
}
}
-PatchBox*
-Port::get_patch_box() const
+GraphBox*
+Port::get_graph_box() const
{
- SharedPtr<const PatchModel> patch = PtrCast<const PatchModel>(model()->parent());
- if (!patch) {
- patch = PtrCast<const PatchModel>(model()->parent()->parent());
+ SharedPtr<const GraphModel> graph = PtrCast<const GraphModel>(model()->parent());
+ if (!graph) {
+ graph = PtrCast<const GraphModel>(model()->parent()->parent());
}
- return _app.window_factory()->patch_box(patch);
+ return _app.window_factory()->graph_box(graph);
}
void
@@ -355,7 +355,7 @@ Port::set_selected(gboolean b)
SharedPtr<const PortModel> pm = _port_model.lock();
if (pm && b) {
SharedPtr<const BlockModel> block = PtrCast<BlockModel>(pm->parent());
- PatchWindow* win = _app.window_factory()->parent_patch_window(block);
+ GraphWindow* win = _app.window_factory()->parent_graph_window(block);
if (win && block->plugin_model()) {
const std::string& doc = block->plugin_model()->port_documentation(
pm->index());