00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_CSKEYACC_H__
00021 #define __CS_CSKEYACC_H__
00022
00031 #include "csutil/csvector.h"
00032 #include "cscomp.h"
00033
00034 class csEvent;
00035
00041 class csKeyboardAccelerator : public csComponent
00042 {
00044 class csAccVector : public csVector
00045 {
00046 public:
00048 csAccVector ();
00050 virtual ~csAccVector ();
00052 virtual bool FreeItem (void* Item);
00053 };
00054
00056 csAccVector Accelerators;
00057
00058 public:
00060 csKeyboardAccelerator (csComponent *iParent);
00062 virtual ~csKeyboardAccelerator ();
00063
00065 void Event (int iKey, int iShifts, csEvent &iEv);
00067 void Command (int iKey, int iShifts, int iCommand, void *iInfo = NULL);
00069 void Broadcast (int iKey, int iShifts, int iCommand, void *iInfo = NULL);
00070
00072 virtual bool PostHandleEvent (iEvent &Event);
00073 };
00074
00077 #endif // __CS_CSKEYACC_H__