00001 // -*- Mode: c++ -*- 00002 #ifndef KEYGRABBER_H_ 00003 #define KEYGRABBER_H_ 00004 00005 // MythUI 00006 #include "mythscreentype.h" 00007 00008 class MythUIText; 00009 class MythUIButton; 00010 00015 class KeyGrabPopupBox : public MythScreenType 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 KeyGrabPopupBox(MythScreenStack *parent); 00021 ~KeyGrabPopupBox(); 00022 00023 bool keyPressEvent(QKeyEvent *); 00024 bool Create(void); 00025 00026 signals: 00027 void HaveResult(QString); 00028 00029 private slots: 00030 void SendResult(); 00031 00032 private: 00033 bool m_waitingForKeyRelease; 00034 bool m_keyReleaseSeen; 00035 QString m_capturedKey; 00036 00037 MythUIText *m_messageText; 00038 MythUIButton *m_okButton; 00039 MythUIButton *m_cancelButton; 00040 }; 00041 00042 #endif // KEYGRABBER_H_
1.6.3