MythTV  0.26-pre
Signals | Public Member Functions | Protected Slots | Protected Attributes
ButtonSetting Class Reference

#include <settings.h>

Inheritance diagram for ButtonSetting:
Setting Configurable StorageUser TransButtonSetting DataDirectButton

List of all members.

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 setLabel (QString)
virtual void setHelpText (const QString &)

Protected Slots

void SendPressedString ()

Protected Attributes

QString name
MythPushButtonbutton

Detailed Description

Definition at line 528 of file settings.h.


Constructor & Destructor Documentation

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

Definition at line 533 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 1140 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 1161 of file settings.cpp.

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

Referenced by configWidget(), and SendPressedString().

void ButtonSetting::pressed ( QString  name) [signal]
void ButtonSetting::SendPressedString ( void  ) [protected, slot]

Definition at line 1166 of file settings.cpp.

Referenced by configWidget().


Member Data Documentation

QString ButtonSetting::name [protected]

Definition at line 554 of file settings.h.

Referenced by SendPressedString().

Definition at line 555 of file settings.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends