MythTV  0.28pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MythPushButton Class Reference

#include <mythwidgets.h>

Inheritance diagram for MythPushButton:
Inheritance graph
[legend]
Collaboration diagram for MythPushButton:
Collaboration graph
[legend]

Signals

void changeHelpText (QString)
 

Public Member Functions

 MythPushButton (QWidget *parent, const char *name="MythPushButton")
 
 MythPushButton (const QString &text, QWidget *parent)
 
 MythPushButton (const QString &ontext, const QString &offtext, QWidget *parent, bool isOn=true)
 
void setHelpText (const QString &help)
 
void keyPressEvent (QKeyEvent *e)
 
void keyReleaseEvent (QKeyEvent *e)
 
void toggleText (void)
 

Protected Member Functions

void focusInEvent (QFocusEvent *e)
 
void focusOutEvent (QFocusEvent *e)
 

Private Attributes

QColor origcolor
 
QString helptext
 
QString onText
 
QString offText
 
QStringList keyPressActions
 

Detailed Description

Definition at line 243 of file mythwidgets.h.

Constructor & Destructor Documentation

MythPushButton::MythPushButton ( QWidget *  parent,
const char *  name = "MythPushButton" 
)

Definition at line 1092 of file mythwidgets.cpp.

MythPushButton::MythPushButton ( const QString &  text,
QWidget *  parent 
)

Definition at line 1099 of file mythwidgets.cpp.

MythPushButton::MythPushButton ( const QString &  ontext,
const QString &  offtext,
QWidget *  parent,
bool  isOn = true 
)

Definition at line 1106 of file mythwidgets.cpp.

Member Function Documentation

void MythPushButton::setHelpText ( const QString &  help)

Definition at line 1123 of file mythwidgets.cpp.

Referenced by ButtonSetting::configWidget(), and ButtonSetting::setHelpText().

void MythPushButton::keyPressEvent ( QKeyEvent *  e)

Definition at line 1131 of file mythwidgets.cpp.

void MythPushButton::keyReleaseEvent ( QKeyEvent *  e)

Definition at line 1161 of file mythwidgets.cpp.

void MythPushButton::toggleText ( void  )

Definition at line 1181 of file mythwidgets.cpp.

Referenced by keyPressEvent().

void MythPushButton::changeHelpText ( QString  )
signal

Referenced by focusInEvent(), and setHelpText().

void MythPushButton::focusInEvent ( QFocusEvent *  e)
protected

Definition at line 1192 of file mythwidgets.cpp.

void MythPushButton::focusOutEvent ( QFocusEvent *  e)
protected

Definition at line 1204 of file mythwidgets.cpp.

Member Data Documentation

QColor MythPushButton::origcolor
private

Definition at line 270 of file mythwidgets.h.

QString MythPushButton::helptext
private

Definition at line 271 of file mythwidgets.h.

Referenced by focusInEvent(), and setHelpText().

QString MythPushButton::onText
private

Definition at line 272 of file mythwidgets.h.

Referenced by MythPushButton(), and toggleText().

QString MythPushButton::offText
private

Definition at line 273 of file mythwidgets.h.

Referenced by MythPushButton(), and toggleText().

QStringList MythPushButton::keyPressActions
private

Definition at line 275 of file mythwidgets.h.

Referenced by keyPressEvent(), and keyReleaseEvent().


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