summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-12 04:59:38 +0000
committerDavid Robillard <d@drobilla.net>2009-05-12 04:59:38 +0000
commitf230de56d33171a45588af91d31a3ea09c840933 (patch)
tree4f70ec9de4452c690ec30d406264d7c5f9fe2f07 /src
parent0fd55176b99cd6bd3230afdf350687a04702bd92 (diff)
downloadingen-f230de56d33171a45588af91d31a3ea09c840933.tar.gz
ingen-f230de56d33171a45588af91d31a3ea09c840933.tar.bz2
ingen-f230de56d33171a45588af91d31a3ea09c840933.zip
Fix internal node names.
Update glade file. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1986 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/client/PluginModel.cpp2
-rw-r--r--src/engine/InternalController.cpp2
-rw-r--r--src/engine/InternalNote.cpp2
-rw-r--r--src/engine/InternalPlugin.hpp6
-rw-r--r--src/engine/InternalTransport.cpp2
-rw-r--r--src/engine/InternalTrigger.cpp2
-rw-r--r--src/gui/ingen_gui.glade96
7 files changed, 74 insertions, 38 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index f733087e..02d68330 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -49,6 +49,8 @@ PluginModel::PluginModel(const string& uri, const string& type_uri)
_slv2_plugin = slv2_plugins_get_by_uri(_slv2_plugins, plugin_uri);
slv2_value_free(plugin_uri);
#endif
+ if (_type == Internal)
+ set_property("doap:name", Raul::Atom(uri.substr(uri.find_last_of("#") + 1).c_str()));
}
diff --git a/src/engine/InternalController.cpp b/src/engine/InternalController.cpp
index e2dede41..7b1d6bc3 100644
--- a/src/engine/InternalController.cpp
+++ b/src/engine/InternalController.cpp
@@ -31,7 +31,7 @@
namespace Ingen {
-static InternalPlugin controller_plugin(NS_INTERNALS "Controller", "controller", "Controller");
+static InternalPlugin controller_plugin(NS_INTERNALS "Controller", "controller");
ControllerNode::ControllerNode(const string& path,
bool polyphonic,
diff --git a/src/engine/InternalNote.cpp b/src/engine/InternalNote.cpp
index f5b22c1a..0e5807a0 100644
--- a/src/engine/InternalNote.cpp
+++ b/src/engine/InternalNote.cpp
@@ -35,7 +35,7 @@ using namespace std;
namespace Ingen {
-static InternalPlugin note_plugin(NS_INTERNALS "Note", "note", "Note");
+static InternalPlugin note_plugin(NS_INTERNALS "Note", "note");
NoteNode::NoteNode(const string& path, bool polyphonic, PatchImpl* parent, SampleRate srate, size_t buffer_size)
: NodeBase(&note_plugin, path, polyphonic, parent, srate, buffer_size)
diff --git a/src/engine/InternalPlugin.hpp b/src/engine/InternalPlugin.hpp
index 1ada28a1..095899eb 100644
--- a/src/engine/InternalPlugin.hpp
+++ b/src/engine/InternalPlugin.hpp
@@ -47,11 +47,9 @@ class InternalPlugin : public PluginImpl
{
public:
InternalPlugin(const std::string& uri,
- const std::string& symbol,
- const std::string& name)
+ const std::string& symbol)
: PluginImpl(Plugin::Internal, uri)
, _symbol(symbol)
- , _name(name)
{}
NodeImpl* instantiate(const std::string& name,
@@ -60,11 +58,9 @@ public:
Engine& engine);
const string symbol() const { return _symbol; }
- const string name() const { return _name; }
private:
const string _symbol;
- const string _name;
};
diff --git a/src/engine/InternalTransport.cpp b/src/engine/InternalTransport.cpp
index 90b8db28..9ef94ee8 100644
--- a/src/engine/InternalTransport.cpp
+++ b/src/engine/InternalTransport.cpp
@@ -26,7 +26,7 @@
namespace Ingen {
-static InternalPlugin transport_plugin(NS_INTERNALS "Transport", "transport", "Transport");
+static InternalPlugin transport_plugin(NS_INTERNALS "Transport", "transport");
TransportNode::TransportNode(const string& path, bool polyphonic, PatchImpl* parent, SampleRate srate, size_t buffer_size)
: NodeBase(&transport_plugin, path, false, parent, srate, buffer_size)
diff --git a/src/engine/InternalTrigger.cpp b/src/engine/InternalTrigger.cpp
index 623b0bc2..abd205d1 100644
--- a/src/engine/InternalTrigger.cpp
+++ b/src/engine/InternalTrigger.cpp
@@ -30,7 +30,7 @@ using namespace std;
namespace Ingen {
-static InternalPlugin trigger_plugin(NS_INTERNALS "Trigger", "trigger", "Trigger");
+static InternalPlugin trigger_plugin(NS_INTERNALS "Trigger", "trigger");
TriggerNode::TriggerNode(const string& path, bool polyphonic, PatchImpl* parent, SampleRate srate, size_t buffer_size)
: NodeBase(&trigger_plugin, path, false, parent, srate, buffer_size)
diff --git a/src/gui/ingen_gui.glade b/src/gui/ingen_gui.glade
index c5a2fb6e..6f47feee 100644
--- a/src/gui/ingen_gui.glade
+++ b/src/gui/ingen_gui.glade
@@ -25,9 +25,15 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Load a patch into the current patch (merge with existing contents).</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_import_menuitem_activate"/>
<accelerator key="I" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="stock">gtk-open</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
@@ -36,9 +42,15 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Import a patch from a URI</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_import_location1_activate"/>
<accelerator key="L" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image2">
+ <property name="visible">True</property>
+ <property name="stock">gtk-open</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
@@ -62,9 +74,15 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Save this patch to a specific file name</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_save_as_menuitem_activate"/>
<accelerator key="S" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image3">
+ <property name="visible">True</property>
+ <property name="stock">gtk-save-as</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
@@ -72,7 +90,7 @@
<property name="label">_Upload...</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_upload_menuitem_activate"/>
<accelerator key="U" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</widget>
@@ -82,7 +100,7 @@
<property name="label">_Draw...</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_draw_menuitem_activate"/>
<accelerator key="P" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</widget>
@@ -205,7 +223,7 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Automatically arrange canvas</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<accelerator key="G" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</widget>
</child>
@@ -230,14 +248,14 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">View/Edit controls for this patch</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_view_control_window_menuitem_activate"/>
<accelerator key="O" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="patch_properties_menuitem">
- <property name="label">P_roperties...</property>
+ <property name="label">gtk-properties</property>
<property name="visible">True</property>
<property name="tooltip" translatable="yes">View/Edit properties for this patch</property>
<property name="use_underline">True</property>
@@ -310,35 +328,53 @@
<widget class="GtkMenu" id="view1_menu">
<child>
<widget class="GtkImageMenuItem" id="patch_view_engine_window_menuitem">
- <property name="label">_Engine...</property>
+ <property name="label">_Engine</property>
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Connect to, Disconnect from, or Launch Engine</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_view_engine_window_menuitem_activate"/>
<accelerator key="E" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image6">
+ <property name="visible">True</property>
+ <property name="stock">gtk-execute</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="patch_view_patch_tree_window_menuitem">
- <property name="label">_Patch Tree...</property>
+ <property name="label">_Patch Tree</property>
<property name="visible">True</property>
<property name="tooltip" translatable="yes">View all patches in the engine as a heirarchial list</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_view_tree_window_menuitem_activate"/>
<accelerator key="T" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image5">
+ <property name="visible">True</property>
+ <property name="stock">gtk-index</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="patch_view_messages_window_menuitem">
- <property name="label">_Messages...</property>
+ <property name="label">_Messages</property>
<property name="visible">True</property>
<property name="tooltip" translatable="yes">View error messages from the engine</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_patch_view_messages_window_menuitem_activate"/>
<accelerator key="M" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image4">
+ <property name="visible">True</property>
+ <property name="stock">gtk-info</property>
+ </widget>
+ </child>
</widget>
</child>
</widget>
@@ -358,7 +394,7 @@
<property name="label">Right-click the canvas to add objects</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -366,7 +402,7 @@
<property name="label">Press 'e' to toggle edit mode</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -1379,6 +1415,7 @@
<widget class="GtkToolbar" id="toolbar6">
<property name="visible">True</property>
<property name="toolbar_style">icons</property>
+ <property name="icon_size">1</property>
<child>
<widget class="GtkToolItem" id="patch_view_breadcrumb_container">
<property name="visible">True</property>
@@ -1400,6 +1437,7 @@
<property name="visible">True</property>
<property name="toolbar_style">icons</property>
<property name="show_arrow">False</property>
+ <property name="icon_size">1</property>
<child>
<widget class="GtkToggleToolButton" id="patch_view_process_but">
<property name="visible">True</property>
@@ -2729,7 +2767,7 @@ Contributors:
<property name="label">_Input</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<child>
<widget class="GtkMenu" id="input1_menu">
<child>
@@ -2768,7 +2806,7 @@ Contributors:
<property name="label">_Output</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<child>
<widget class="GtkMenu" id="output1_menu">
<child>
@@ -2808,7 +2846,7 @@ Contributors:
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Load a plugin as a child of this patch</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_canvas_menu_add_plugin_activate"/>
</widget>
</child>
@@ -2818,7 +2856,7 @@ Contributors:
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Load a patch as a child of this patch</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_canvas_menu_load_patch_activate"/>
</widget>
</child>
@@ -2828,7 +2866,7 @@ Contributors:
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Create a new (empty) patch as a child of this patch</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_canvas_menu_new_patch_activate"/>
</widget>
</child>
@@ -3136,10 +3174,10 @@ Thank you for contributing.</property>
<widget class="GtkMenu" id="port_control_menu">
<child>
<widget class="GtkImageMenuItem" id="port_control_menu_properties">
- <property name="label">_Properties...</property>
+ <property name="label">gtk-properties</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
<signal name="activate" handler="on_port_control_menu_properties_activate"/>
</widget>
</child>
@@ -3285,7 +3323,7 @@ Thank you for contributing.</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip" translatable="yes">Disconnect all connections</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -3295,7 +3333,7 @@ Thank you for contributing.</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip" translatable="yes">Rename this object</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -3334,7 +3372,7 @@ Thank you for contributing.</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip" translatable="yes">Learn from the next received event</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -3344,7 +3382,7 @@ Thank you for contributing.</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip" translatable="yes">Manipulate controls in a separate window</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -3354,7 +3392,7 @@ Thank you for contributing.</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip" translatable="yes">Show this node's custom graphical interface in a separate window</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
<child>
@@ -3372,7 +3410,7 @@ Thank you for contributing.</property>
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Set all controls on this node to random values</property>
<property name="use_underline">True</property>
- <property name="use_stock">True</property>
+ <property name="use_stock">False</property>
</widget>
</child>
</widget>