libyui-qt
2.43.5
|
#include <YQGenericButton.h>
Public Slots | |
void | activate () |
Public Member Functions | |
virtual | ~YQGenericButton () |
virtual void | setEnabled (bool enabled) |
bool | isEnabled () const |
void | setLabel (const QString &label) |
virtual void | setLabel (const std::string &label) |
void | showAsDefault (bool show=true) |
bool | isShownAsDefault () const |
virtual bool | setKeyboardFocus () |
virtual void | setIcon (const std::string &iconName) |
QString | text () const |
QPushButton * | qPushButton () const |
YQDialog * | yQDialog () const |
Protected Member Functions | |
YQGenericButton (YWidget *parent, const std::string &label) | |
void | setQPushButton (QPushButton *pb) |
bool | eventFilter (QObject *obj, QEvent *event) |
YQDialog * | dialog () |
void | forgetDialog () |
Friends | |
class | YQDialog |
Abstract base class for push button and similar widgets - all that can become a YQDialog's "default button".
Definition at line 44 of file YQGenericButton.h.
YQGenericButton::YQGenericButton | ( | YWidget * | parent, |
const std::string & | label | ||
) | [protected] |
Constructor.
Definition at line 42 of file YQGenericButton.cc.
YQGenericButton::~YQGenericButton | ( | ) | [virtual] |
Destructor.
Definition at line 63 of file YQGenericButton.cc.
void YQGenericButton::activate | ( | ) | [slot] |
Activate (animated) this button.
Definition at line 187 of file YQGenericButton.cc.
YQDialog * YQGenericButton::dialog | ( | ) | [protected] |
Returns the corresponding YQDialog. Throws an exception if there is none.
Definition at line 83 of file YQGenericButton.cc.
bool YQGenericButton::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) | [protected] |
Redirect events from the _qPushButton member to this object.
Overwritten from QObject.
Definition at line 194 of file YQGenericButton.cc.
bool YQGenericButton::isEnabled | ( | ) | const |
Returns 'true' if this button is enabled, 'false' otherwise.
Definition at line 108 of file YQGenericButton.cc.
bool YQGenericButton::isShownAsDefault | ( | ) | const |
Returns 'true' if this button is shown as a default button - which may mean that this really is the dialogs's default button or it is the dialog's focus button (a button that currently has the keyboard focus).
Don't confuse this with YPushButton::isDefaultButton()!
Definition at line 174 of file YQGenericButton.cc.
QPushButton* YQGenericButton::qPushButton | ( | ) | const [inline] |
Returns the internal Qt PushButton.
Definition at line 124 of file YQGenericButton.h.
void YQGenericButton::setEnabled | ( | bool | enabled | ) | [virtual] |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 99 of file YQGenericButton.cc.
void YQGenericButton::setIcon | ( | const std::string & | iconName | ) | [virtual] |
Set this button's icon.
Reimplemented from YPushButton.
Definition at line 114 of file YQGenericButton.cc.
bool YQGenericButton::setKeyboardFocus | ( | ) | [virtual] |
Accept the keyboard focus.
Definition at line 225 of file YQGenericButton.cc.
void YQGenericButton::setLabel | ( | const QString & | label | ) |
Changes the label (the text) of the button.
Definition at line 141 of file YQGenericButton.cc.
void YQGenericButton::setLabel | ( | const std::string & | label | ) | [virtual] |
Changes the label (the text) of the button.
Reimplemented from YWidget.
Definition at line 152 of file YQGenericButton.cc.
void YQGenericButton::setQPushButton | ( | QPushButton * | pb | ) | [protected] |
Set the corresponding QPushButton.
Definition at line 53 of file YQGenericButton.cc.
void YQGenericButton::showAsDefault | ( | bool | show = true | ) |
Show this button as the dialog's default button. The button never calls this by itself - the parent dialog is responsible for that.
Definition at line 163 of file YQGenericButton.cc.
QString YQGenericButton::text | ( | ) | const |
Returns the button's text (label) - useful for log messages etc.
Definition at line 181 of file YQGenericButton.cc.
YQDialog* YQGenericButton::yQDialog | ( | ) | const [inline] |
Returns the internal parent dialog.
Definition at line 129 of file YQGenericButton.h.