summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-02 17:26:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-02 17:27:56 +0000
commit4b7435e31ac821d1738eda23a6688461efcbd311 (patch)
treed12844cfea09981a10858dfffd82e74518d18f8c /include
parent4f6028ad7610d36379aba36470e47e701f8a87d5 (diff)
let menu button launch arbitrary floating windows
and not just menus, this is like how the gtk equivalent can launch popovers Change-Id: I53ae96aab0c51d75405dba15ab8080d7315471e3
Diffstat (limited to 'include')
-rw-r--r--include/vcl/menubtn.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx
index e6b701553797..5bff050fb196 100644
--- a/include/vcl/menubtn.hxx
+++ b/include/vcl/menubtn.hxx
@@ -23,6 +23,7 @@
#include <vcl/button.hxx>
#include <vcl/dllapi.h>
+class FloatingWindow;
class Timer;
class PopupMenu;
class VclBuilder;
@@ -35,6 +36,7 @@ private:
Timer* mpMenuTimer;
VclPtr<PopupMenu> mpMenu;
+ VclPtr<FloatingWindow> mpFloatingWindow;
sal_uInt16 mnCurItemId;
bool mbDelayMenu;
Link<MenuButton*,void> maActivateHdl;
@@ -70,9 +72,12 @@ public:
//before being shown
void SetDelayMenu(bool bDelay) { mbDelayMenu = bDelay; }
- void SetPopupMenu( PopupMenu* pNewMenu );
+ void SetPopupMenu(PopupMenu* pNewMenu);
PopupMenu* GetPopupMenu() const { return mpMenu; }
+ void SetPopover(FloatingWindow* pFloatingWindow);
+ FloatingWindow* GetPopover() const { return mpFloatingWindow; }
+
sal_uInt16 GetCurItemId() const { return mnCurItemId; }
OString GetCurItemIdent() const;