1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQWizardButton.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQWizardButton_h
21 #define YQWizardButton_h
24 #include "YQGenericButton.h"
32 class YQWizardButton : public YQGenericButton
40 YQWizardButton( YQWizard * wizard,
41 QWidget * buttonParent,
48 virtual ~YQWizardButton();
51 * Returns a descriptive name of this widget class for logging,
54 virtual const char *widgetClass() const { return "YQWizardButton"; }
57 * Hide the associated QPushButton.
62 * Show the associated QPushButton - not this widget itself (!).
63 * This widget itself will never become visible.
68 * Returns 'true' if the associated QPushButton (!) is shown.
73 * Returns 'true' if the associated QPushButton (!) is hidden.
75 bool isHidden() const;
78 * Preferred width of the widget.
80 * Reimplemented from YWidget.
82 virtual int preferredWidth();
85 * Preferred height of the widget.
87 * Reimplemented from YWidget.
89 virtual int preferredHeight();
92 * Set the new size of the widget.
94 * Reimplemented from YWidget.
96 virtual void setSize( int newWidth, int newHeight );
99 * Returns the wizard this wizard button belongs to.
101 YQWizard * wizard() const { return _wizard; }
106 * Emitted when the button is clicked or otherwise activated.
116 #endif // YQWizardButton_h