diff options
Diffstat (limited to 'src/progs')
-rw-r--r-- | src/progs/ingenuity/PatchCanvas.cpp | 10 | ||||
-rw-r--r-- | src/progs/ingenuity/PatchCanvas.h | 1 | ||||
-rw-r--r-- | src/progs/ingenuity/ingenuity.glade | 19 |
3 files changed, 21 insertions, 9 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp index 2279a053..13ceaac0 100644 --- a/src/progs/ingenuity/PatchCanvas.cpp +++ b/src/progs/ingenuity/PatchCanvas.cpp @@ -120,6 +120,16 @@ PatchCanvas::build() void +PatchCanvas::arrange() +{ + LibFlowCanvas::FlowCanvas::arrange(); + + for (list<boost::shared_ptr<Item> >::iterator i = _items.begin(); i != _items.end(); ++i) + (*i)->store_location(); +} + + +void PatchCanvas::add_node(SharedPtr<NodeModel> nm) { boost::shared_ptr<PatchCanvas> shared_this = diff --git a/src/progs/ingenuity/PatchCanvas.h b/src/progs/ingenuity/PatchCanvas.h index f76e0c94..64f72881 100644 --- a/src/progs/ingenuity/PatchCanvas.h +++ b/src/progs/ingenuity/PatchCanvas.h @@ -61,6 +61,7 @@ public: }*/ void build(); + void arrange(); void add_node(SharedPtr<NodeModel> nm); void remove_node(SharedPtr<NodeModel> nm); diff --git a/src/progs/ingenuity/ingenuity.glade b/src/progs/ingenuity/ingenuity.glade index 3e578e36..16b2bd9a 100644 --- a/src/progs/ingenuity/ingenuity.glade +++ b/src/progs/ingenuity/ingenuity.glade @@ -49,9 +49,10 @@ <property name="label" translatable="yes">_Import</property> <property name="use_underline">True</property> <signal name="activate" handler="on_patch_import_menuitem_activate" last_modification_time="Mon, 06 Feb 2006 06:20:27 GMT"/> + <accelerator key="I" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1979"> + <widget class="GtkImage" id="image1987"> <property name="visible">True</property> <property name="stock">gtk-open</property> <property name="icon_size">1</property> @@ -106,7 +107,7 @@ <accelerator key="G" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1980"> + <widget class="GtkImage" id="image1988"> <property name="visible">True</property> <property name="stock">gtk-preferences</property> <property name="icon_size">1</property> @@ -239,7 +240,7 @@ <accelerator key="A" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1981"> + <widget class="GtkImage" id="image1989"> <property name="visible">True</property> <property name="stock">gtk-sort-ascending</property> <property name="icon_size">1</property> @@ -262,7 +263,7 @@ <accelerator key="C" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1982"> + <widget class="GtkImage" id="image1990"> <property name="visible">True</property> <property name="stock">gtk-preferences</property> <property name="icon_size">1</property> @@ -304,7 +305,7 @@ <signal name="activate" handler="on_patch_destroy_menuitem_activate" last_modification_time="Wed, 25 May 2005 00:22:00 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image1983"> + <widget class="GtkImage" id="image1991"> <property name="visible">True</property> <property name="stock">gtk-delete</property> <property name="icon_size">1</property> @@ -341,7 +342,7 @@ <accelerator key="E" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1984"> + <widget class="GtkImage" id="image1992"> <property name="visible">True</property> <property name="stock">gtk-connect</property> <property name="icon_size">1</property> @@ -364,7 +365,7 @@ <accelerator key="T" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1985"> + <widget class="GtkImage" id="image1993"> <property name="visible">True</property> <property name="stock">gtk-index</property> <property name="icon_size">1</property> @@ -387,7 +388,7 @@ <accelerator key="M" modifiers="GDK_CONTROL_MASK" signal="activate"/> <child internal-child="image"> - <widget class="GtkImage" id="image1986"> + <widget class="GtkImage" id="image1994"> <property name="visible">True</property> <property name="stock">gtk-dialog-error</property> <property name="icon_size">1</property> @@ -422,7 +423,7 @@ <signal name="activate" handler="on_right-click_the_canvas_to_add_objects1_activate" last_modification_time="Fri, 16 Jun 2006 17:51:05 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image1987"> + <widget class="GtkImage" id="image1995"> <property name="visible">True</property> <property name="stock">gtk-info</property> <property name="icon_size">1</property> |