ButtonSetting Class Reference

#include <settings.h>

Inheritance diagram for ButtonSetting:

Setting Configurable TransButtonSetting DataDirectButton

List of all members.


Detailed Description

Definition at line 557 of file settings.h.


Signals

void pressed ()
void pressed (QString name)

Public Member Functions

 ButtonSetting (Storage *_storage, QString _name="button")
virtual QWidget * configWidget (ConfigurationGroup *cg, QWidget *parent, const char *widgetName=0)
 Create and return a QWidget for configuring this entity Note: Any class calling this should call widgetInvalid() before configWidget() is called on the class again, and before the class is deleted; just before removing the instance from a layout or scheduling the delete of a parent container is a good time.
virtual void widgetInvalid (QObject *obj)
 Tell any Configurable keeping a pointer to a widget, that the pointer returned by an earlier configWidget call is invalid.
virtual void setEnabled (bool b)
virtual void setHelpText (const QString &)

Protected Slots

void SendPressedString ()

Protected Attributes

QString name
MythPushButtonbutton

Constructor & Destructor Documentation

ButtonSetting::ButtonSetting ( Storage _storage,
QString  _name = "button" 
) [inline]

Definition at line 562 of file settings.h.


Member Function Documentation

QWidget * ButtonSetting::configWidget ( ConfigurationGroup cg,
QWidget *  parent,
const char *  widgetName = 0 
) [virtual]

Create and return a QWidget for configuring this entity Note: Any class calling this should call widgetInvalid() before configWidget() is called on the class again, and before the class is deleted; just before removing the instance from a layout or scheduling the delete of a parent container is a good time.

Some UI classes depend on this for properly updating the UI.

Reimplemented from Configurable.

Definition at line 1136 of file settings.cpp.

void ButtonSetting::widgetInvalid ( QObject *   )  [virtual]

Tell any Configurable keeping a pointer to a widget, that the pointer returned by an earlier configWidget call is invalid.

Note: It is possible that this may be called after configWidget() has been called another time so you must check the pointer param.

Reimplemented from Configurable.

Definition at line 1157 of file settings.cpp.

void ButtonSetting::setEnabled ( bool  b  )  [virtual]

void ButtonSetting::setHelpText ( const QString &  str  )  [virtual]

void ButtonSetting::pressed (  )  [signal]

Referenced by configWidget(), and SendPressedString().

void ButtonSetting::pressed ( QString  name  )  [signal]

void ButtonSetting::SendPressedString ( void   )  [protected, slot]

Definition at line 1162 of file settings.cpp.

Referenced by configWidget().


Member Data Documentation

QString ButtonSetting::name [protected]

Definition at line 581 of file settings.h.

Referenced by SendPressedString().

Definition at line 582 of file settings.h.

Referenced by configWidget(), setEnabled(), setHelpText(), and widgetInvalid().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:00 2010 for MythTV by  doxygen 1.5.5