/* o_modemap.h * * Copyright (c) 1994-1996, Marko Macek * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * */ #ifndef __MAPVIEW_H__ #define __MAPVIEW_H__ class EventMapView: public EList { public: char **BList; int BCount; EEventMap *EMap; void AddLine(const char *Line); void DumpKey(const char *aPrefix, EKey *Key); void DumpMap(const char *aPrefix, EKeyMap *aKeyMap); void DumpEventMap(EEventMap *aEventMap); EventMapView(int createFlags, EModel **ARoot, EEventMap *Map); virtual ~EventMapView(); void FreeView(); void ViewMap(EEventMap *Map); virtual int ExecCommand(int Command, ExState &State); virtual EEventMap *GetEventMap(); virtual int GetContext(); virtual void DrawLine(PCell B, int Line, int Col, ChColor color, int Width); virtual char* FormatLine(int Line); virtual void UpdateList(); virtual int CanActivate(int Line); virtual void GetName(char *AName, int MaxLen); virtual void GetInfo(char *AInfo, int MaxLen); virtual void GetTitle(char *ATitle, int MaxLen, char *ASTitle, int SMaxLen); }; extern EventMapView *TheEventMapView; #endif