gui-tool: qt wrapping work.
[fail.git] / gui / tool / Button.h
blob8b4ca61a5cd6e71286a07728eba8602a9b1e3ede
1 #ifndef AWFUL_GUI_TOOL_BUTTON_H_
2 #define AWFUL_GUI_TOOL_BUTTON_H_
4 #include "core/core.h"
5 #include "Container.h"
6 #include "gui/Button_i.h"
7 #include <QPushButton>
9 namespace awful { namespace gui { namespace tool
11 class Button : public Button_i, public Widget
13 public:
14 Button( Container* pParent, const std::string& Label ) :
15 m_QButton( Label.c_str(), &pParent->getQWidget() )
19 virtual QWidget& getQWidget()
21 return m_QButton;
24 virtual const std::string& getLabel() const { return lulz; }
25 virtual void setLabel( const std::string& Label ) { lulz = Label; }
27 private:
28 QPushButton m_QButton;
29 std::string lulz;
31 }}}
33 #endif