Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KeyHelper.h

Go to the documentation of this file.
00001 #ifndef _KEY_HELPER_H_
00002 #define _KEY_HELPER_H_
00003 
00004 #include <qdir.h>
00005 #include <qwindowsystem_qws.h>
00006 #include "KeyNames.h"
00007 #include "KeyMappings.h"
00008 #include "KeyModifiers.h"
00009 #include "KeyExtensions.h"
00010 #include "KeyRepeater.h"
00011 #include "KeyAction.h"
00012 #include "KeycfgReader.h"
00013 
00014 class KeyHelper : public QWSServer::KeyboardFilter
00015 {
00016 public:
00017     KeyHelper();
00018     virtual ~KeyHelper();
00019     bool filter(int unicode, int keycode, int modifiers,
00020             bool isPress, bool autoRepeat);
00021 
00022     void enable();
00023     void disable();
00024     void set();
00025     void unset();
00026     void statistics();
00027     void dumpkeymap();
00028     bool reload(const QString& file=QString::null);
00029 private:
00030     friend class KeyHelperWidget;
00031 
00032     bool load(const QString& file=QString::null);
00033     void setDefault();
00034 
00035     KeyAction m_oAction;
00036     KeyMappings m_oMappings;
00037     KeyModifiers m_oModifiers;
00038     KeyExtensions m_oExtensions;
00039     KeyRepeater m_oRepeater;
00040 };
00041 
00042 #endif /* _KEY_HELPER_H_ */

Generated on Sat Nov 5 16:16:42 2005 for OPIE by  doxygen 1.4.2