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"
31 class YQWizardButton : public YQGenericButton
39 YQWizardButton( YQWizard * wizard,
40 QWidget * buttonParent,
41 const string & label );
46 virtual ~YQWizardButton();
49 * Returns a descriptive name of this widget class for logging,
52 virtual const char *widgetClass() const { return "YQWizardButton"; }
55 * Hide the associated QPushButton.
60 * Show the associated QPushButton - not this widget itself (!).
61 * This widget itself will never become visible.
66 * Returns 'true' if the associated QPushButton (!) is shown.
71 * Returns 'true' if the associated QPushButton (!) is hidden.
73 bool isHidden() const;
76 * Preferred width of the widget.
78 * Reimplemented from YWidget.
80 virtual int preferredWidth();
83 * Preferred height of the widget.
85 * Reimplemented from YWidget.
87 virtual int preferredHeight();
90 * Set the new size of the widget.
92 * Reimplemented from YWidget.
94 virtual void setSize( int newWidth, int newHeight );
97 * Returns the wizard this wizard button belongs to.
99 YQWizard * wizard() const { return _wizard; }
104 * Emitted when the button is clicked or otherwise activated.
114 #endif // YQWizardButton_h