kcheckaccelerators.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 #ifndef KCHECKACCELERATORS_H_
00024 #define KCHECKACCELERATORS_H_
00025 
00026 #include <qguardedptr.h>
00027 #include <qobject.h>
00028 #include <qkeysequence.h>
00029 #include <qmap.h>
00030 #include <qstring.h>
00031 #include <qtimer.h>
00032 
00033 class QMenuData;
00034 class QTextView;
00035 
00066 class KCheckAccelerators : public QObject
00067 {
00068     Q_OBJECT
00069 public:
00074     KCheckAccelerators( QObject* parent );
00078     bool eventFilter( QObject * , QEvent * e);
00079 
00080 private:
00081     void checkAccelerators( bool automatic );
00082     int key;
00083     bool alwaysShow;
00084     bool autoCheck;
00085     bool block;
00086     QTimer autoCheckTimer;
00087     void createDialog(QWidget *parent, bool automatic);
00088     QGuardedPtr<QDialog> drklash;
00089     QTextView *drklash_view;
00090 
00091 private slots:
00092     void autoCheckSlot();
00093     void slotDisableCheck(bool);
00094 };
00095 
00096 #endif
 
This file is part of the documentation for kdecore Library Version 3.2.0.