summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchCanvas.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 21:15:56 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 21:15:56 +0000
commit558083f6c0e9eda930f0a970836ebf2597840f39 (patch)
tree721dcaecc5bd4be8b115574f3282eb1d8bd56cfd /src/gui/PatchCanvas.hpp
parentef4179afb8e8c917c2fa355900fd30e24857c7db (diff)
downloadingen-558083f6c0e9eda930f0a970836ebf2597840f39.tar.gz
ingen-558083f6c0e9eda930f0a970836ebf2597840f39.tar.bz2
ingen-558083f6c0e9eda930f0a970836ebf2597840f39.zip
Pop up patch context menu on space or menu key press (i.e. ability to add stuff without mouse).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2520 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchCanvas.hpp')
-rw-r--r--src/gui/PatchCanvas.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/PatchCanvas.hpp b/src/gui/PatchCanvas.hpp
index a301f680..03018f5a 100644
--- a/src/gui/PatchCanvas.hpp
+++ b/src/gui/PatchCanvas.hpp
@@ -81,7 +81,7 @@ public:
void paste();
void select_all();
- void show_menu(GdkEvent* event);
+ void show_menu(bool position, unsigned button, uint32_t time);
bool canvas_event(GdkEvent* event);
@@ -107,6 +107,8 @@ private:
void build_internal_menu();
void build_classless_menu();
+ void auto_menu_position(int& x, int& y, bool& push_in);
+
#ifdef HAVE_SLV2
typedef std::multimap<const std::string, SLV2PluginClass> LV2Children;
void build_plugin_menu();