From a14d80f83aebe75241bf63b4f3ffca3a5d952577 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 6 Oct 2008 18:22:32 +0000 Subject: libui updates, support menu .ini files --- src/ui/button.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/ui/button.h') diff --git a/src/ui/button.h b/src/ui/button.h index eac5f1d..a9fee13 100644 --- a/src/ui/button.h +++ b/src/ui/button.h @@ -14,9 +14,17 @@ namespace ui { class Button : public Label { public: - Button (Widget *parent, char const *text=0, char const *command=0); + Button (Widget *parent, const char *text=0, const char *command=0); ~Button(); + void set_command(std::string const &command); + void set_command(const char *command); + + inline std::string const & command() const { return button_command; } + + /// print button description + virtual void print(size_t indent); + protected: virtual void draw(); -- cgit v1.2.3