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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9605d7438f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)



------------------
This commit was generated by Migit
This commit is contained in:
2012-11-30 22:55:04 +01:00
parent 37e41b539e
commit 31ea6e09dc

View File

@@ -545,6 +545,7 @@ class CComponentsHeader : public CComponentsForm
void setHeaderIcon(const char* icon_name); void setHeaderIcon(const char* icon_name);
void addHeaderButton(const std::string& button_name); void addHeaderButton(const std::string& button_name);
void removeHeaderButtons(); void removeHeaderButtons();
void setHeaderButtons(const int buttons){cch_buttons = buttons;};
}; };
class CComponentsWindow : public CComponentsForm class CComponentsWindow : public CComponentsForm