summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-18 23:05:06 +0000
committerDavid Robillard <d@drobilla.net>2012-08-18 23:05:06 +0000
commit317627ef40f7654c298aa1ac707851c852259e3a (patch)
tree38f7ed57aafb7b3b8e21e6caa3429a39207e4a9a /src/gui/Port.cpp
parent160b2baf7df8b960f22619c013b3197c0dc51c2b (diff)
downloadingen-317627ef40f7654c298aa1ac707851c852259e3a.tar.gz
ingen-317627ef40f7654c298aa1ac707851c852259e3a.tar.bz2
ingen-317627ef40f7654c298aa1ac707851c852259e3a.zip
Node => Block
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4720 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 265b4caf..88d81fcd 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -50,7 +50,7 @@ Port::create(App& app,
if (name.type() == app.forge().String) {
label = name.get_string();
} else {
- const SharedPtr<const NodeModel> parent(PtrCast<const NodeModel>(pm->parent()));
+ const SharedPtr<const BlockModel> parent(PtrCast<const BlockModel>(pm->parent()));
if (parent && parent->plugin_model())
label = parent->plugin_model()->port_human_name(pm->index());
}
@@ -111,7 +111,7 @@ Port::update_metadata()
{
SharedPtr<const PortModel> pm = _port_model.lock();
if (_app.can_control(pm.get()) && pm->is_numeric()) {
- boost::shared_ptr<const NodeModel> parent = PtrCast<const NodeModel>(pm->parent());
+ boost::shared_ptr<const BlockModel> parent = PtrCast<const BlockModel>(pm->parent());
if (parent) {
float min = 0.0f;
float max = 1.0f;
@@ -182,10 +182,10 @@ Port::on_scale_point_activated(float f)
Gtk::Menu*
Port::build_enum_menu()
{
- SharedPtr<const NodeModel> node = PtrCast<NodeModel>(model()->parent());
- Gtk::Menu* menu = Gtk::manage(new Gtk::Menu());
+ SharedPtr<const BlockModel> block = PtrCast<BlockModel>(model()->parent());
+ Gtk::Menu* menu = Gtk::manage(new Gtk::Menu());
- PluginModel::ScalePoints points = node->plugin_model()->port_scale_points(
+ PluginModel::ScalePoints points = block->plugin_model()->port_scale_points(
model()->index());
for (PluginModel::ScalePoints::iterator i = points.begin();
i != points.end(); ++i) {
@@ -354,10 +354,10 @@ Port::set_selected(gboolean b)
Ganv::Port::set_selected(b);
SharedPtr<const PortModel> pm = _port_model.lock();
if (pm && b) {
- SharedPtr<const NodeModel> node = PtrCast<NodeModel>(pm->parent());
- PatchWindow* win = _app.window_factory()->parent_patch_window(node);
- if (win && node->plugin_model()) {
- const std::string& doc = node->plugin_model()->port_documentation(
+ SharedPtr<const BlockModel> block = PtrCast<BlockModel>(pm->parent());
+ PatchWindow* win = _app.window_factory()->parent_patch_window(block);
+ if (win && block->plugin_model()) {
+ const std::string& doc = block->plugin_model()->port_documentation(
pm->index());
if (!doc.empty()) {
win->show_documentation(doc, false);