From bed36eab339f79dde17e73ecd04fc825546ba75b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 11 May 2014 18:49:03 +0200 Subject: [PATCH] CComponentsHeader: add member getContextBtnObject() Allow access directly to methods and properties of context button object. --- src/gui/components/cc_frm_header.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_header.h b/src/gui/components/cc_frm_header.h index 76d015df5..f85c85300 100644 --- a/src/gui/components/cc_frm_header.h +++ b/src/gui/components/cc_frm_header.h @@ -150,7 +150,10 @@ class CComponentsHeader : public CComponentsForm ///sets a single context button icon or combined button icons to the header object, possible types are for example: CC_BTN_HELP, CC_BTN_INFO, CC_BTN_MENU, CC_BTN_EXIT ///existing buttons are removed virtual void setContextButton(const int& buttons){removeContextButtons(); addContextButton(buttons);}; - + + ///gets the embedded context button object, so it's possible to get access directly to its methods and properties + virtual CComponentsIconForm* getContextBtnObject() { return cch_btn_obj;}; + enum { CC_BTN_HELP = 0x02,