From 9605d7438ff0a4788fb516161db3051fce700c69 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 30 Nov 2012 22:55:04 +0100 Subject: [PATCH] CComponentsHeader: add member 'setHeaderButtons()' Gives possibility to set default button types, possible parameter types are: CC_BTN_HELP, CC_BTN_INFO, CC_BTN_MENU, CC_BTN_EXIT --- src/gui/components/cc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 2be90bf75..c6cd59dbc 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -545,6 +545,7 @@ class CComponentsHeader : public CComponentsForm void setHeaderIcon(const char* icon_name); void addHeaderButton(const std::string& button_name); void removeHeaderButtons(); + void setHeaderButtons(const int buttons){cch_buttons = buttons;}; }; class CComponentsWindow : public CComponentsForm