00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CSKEYACC_H__
00021 #define __CSKEYACC_H__
00022
00023 #include "csutil/csvector.h"
00024 #include "cscomp.h"
00025
00026 class csEvent;
00027
00033 class csKeyboardAccelerator : public csComponent
00034 {
00035 class csAccVector : public csVector
00036 {
00037 public:
00039 csAccVector ();
00041 virtual ~csAccVector ();
00043 virtual bool FreeItem (csSome Item);
00044 };
00045
00047 csAccVector Accelerators;
00048
00049 public:
00051 csKeyboardAccelerator (csComponent *iParent);
00053 virtual ~csKeyboardAccelerator ();
00054
00056 void Event (int iKey, int iShifts, csEvent &iEv);
00058 void Command (int iKey, int iShifts, int iCommand, void *iInfo = NULL);
00060 void Broadcast (int iKey, int iShifts, int iCommand, void *iInfo = NULL);
00061
00063 virtual bool PostHandleEvent (iEvent &Event);
00064 };
00065
00066 #endif // __CSKEYACC_H__