KeyGrabPopupBox Class Reference

#include <keygrabber.h>

Inheritance diagram for KeyGrabPopupBox:

MythPopupBox MythDialog

List of all members.


Detailed Description

Captures a key.

NOTE: This popup box takes control over the keyboard until a key is released.

Definition at line 38 of file keygrabber.h.


Public Member Functions

 KeyGrabPopupBox (MythMainWindow *window)
QString GetCapturedKey (void) const
 Get the string containing the captured key event plus modifier keys.
virtual void deleteLater (void)

Protected Member Functions

void Teardown (void)
 ~KeyGrabPopupBox ()
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)

Private Attributes

bool m_waitingForKeyRelease
bool m_keyReleaseSeen
QString m_capturedKey
QButton * m_ok
QButton * m_cancel
QLabel * m_label

Constructor & Destructor Documentation

KeyGrabPopupBox::KeyGrabPopupBox ( MythMainWindow window  ) 

Definition at line 35 of file keygrabber.cpp.

KeyGrabPopupBox::~KeyGrabPopupBox (  )  [protected]

Definition at line 49 of file keygrabber.cpp.


Member Function Documentation

QString KeyGrabPopupBox::GetCapturedKey ( void   )  const

Get the string containing the captured key event plus modifier keys.

Definition at line 71 of file keygrabber.cpp.

Referenced by MythControls::AddKeyToAction().

void KeyGrabPopupBox::deleteLater ( void   )  [virtual]

Reimplemented from MythDialog.

Definition at line 54 of file keygrabber.cpp.

Referenced by MythControls::AddKeyToAction().

void KeyGrabPopupBox::Teardown ( void   )  [protected]

Definition at line 60 of file keygrabber.cpp.

Referenced by deleteLater(), and ~KeyGrabPopupBox().

void KeyGrabPopupBox::keyPressEvent ( QKeyEvent *  e  )  [protected]

Reimplemented from MythPopupBox.

Definition at line 121 of file keygrabber.cpp.

void KeyGrabPopupBox::keyReleaseEvent ( QKeyEvent *  e  )  [protected]

Definition at line 76 of file keygrabber.cpp.


Member Data Documentation

Definition at line 56 of file keygrabber.h.

Referenced by keyPressEvent(), and keyReleaseEvent().

Definition at line 57 of file keygrabber.h.

Referenced by keyPressEvent(), and keyReleaseEvent().

QString KeyGrabPopupBox::m_capturedKey [private]

Definition at line 58 of file keygrabber.h.

Referenced by GetCapturedKey(), keyReleaseEvent(), and Teardown().

QButton* KeyGrabPopupBox::m_ok [private]

Definition at line 59 of file keygrabber.h.

Referenced by KeyGrabPopupBox(), keyReleaseEvent(), and Teardown().

QButton* KeyGrabPopupBox::m_cancel [private]

Definition at line 60 of file keygrabber.h.

Referenced by KeyGrabPopupBox(), keyReleaseEvent(), and Teardown().

QLabel* KeyGrabPopupBox::m_label [private]

Definition at line 61 of file keygrabber.h.

Referenced by KeyGrabPopupBox(), keyReleaseEvent(), and Teardown().


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

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