1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPushButton_h
21 #define YQPushButton_h
23 #include "YQGenericButton.h"
28 class YQPushButton : public YQGenericButton
36 YQPushButton( YWidget * parent,
37 const std::string & label );
42 virtual ~YQPushButton();
45 * Preferred width of the widget.
47 * Reimplemented from YWidget.
49 virtual int preferredWidth();
52 * Preferred height of the widget.
54 * Reimplemented from YWidget.
56 virtual int preferredHeight();
59 * Set the new size of the widget.
61 * Reimplemented from YWidget.
63 virtual void setSize( int newWidth, int newHeight );
69 * Triggered when the button is activated (clicked or via keyboard).
70 * Notifies the the ui about this.
75 #endif // YQPushButton_h