diff options
author | David Robillard <d@drobilla.net> | 2007-10-04 01:28:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-04 01:28:27 +0000 |
commit | 2f991988c6b3d91652461fe70447e343fb3aa916 (patch) | |
tree | e4cd972696c68e6a4758f6df74401b9147c53e41 /src/libs/gui/PatchPortModule.cpp | |
parent | 93197523aaf7b35350a2a26430be7301ad0502b8 (diff) | |
download | ingen-2f991988c6b3d91652461fe70447e343fb3aa916.tar.gz ingen-2f991988c6b3d91652461fe70447e343fb3aa916.tar.bz2 ingen-2f991988c6b3d91652461fe70447e343fb3aa916.zip |
Fixed port menu (load fancy dynamic menu from Glade).
Renaming of JACK ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@820 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchPortModule.cpp')
-rw-r--r-- | src/libs/gui/PatchPortModule.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libs/gui/PatchPortModule.cpp b/src/libs/gui/PatchPortModule.cpp index 863fc55e..f686079d 100644 --- a/src/libs/gui/PatchPortModule.cpp +++ b/src/libs/gui/PatchPortModule.cpp @@ -15,8 +15,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "PatchPortModule.hpp" #include <cassert> +#include "PatchPortModule.hpp" #include "interface/EngineInterface.hpp" #include "client/PatchModel.hpp" #include "client/NodeModel.hpp" @@ -27,6 +27,7 @@ #include "RenameWindow.hpp" #include "PatchWindow.hpp" #include "WindowFactory.hpp" +#include "PortMenu.hpp" namespace Ingen { namespace GUI { @@ -85,6 +86,17 @@ PatchPortModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<PortMod void +PatchPortModule::create_menu() +{ + Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference(); + xml->get_widget_derived("object_menu", _menu); + _menu->init(_port); + + set_menu(_menu); +} + + +void PatchPortModule::store_location() { const float x = static_cast<float>(property_x()); |