#ifndef T2DLL_T2HALLEVENTTABLE_H #define T2DLL_T2HALLEVENTTABLE_H #include "../common.h" #include "T2VerticalTable.h" class AFX_CLASS_EXPORT T2HallEventTable : public T2VerticalTable { public: T2HallEventTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2HallEventTable(); virtual void Add(T2HallEventPlugin* inPlugin); virtual void Add(CFilePluginList* inList); virtual void Add(const char* inStr); virtual void SetCellData(const TableCellT& inCell, T2HallEventPlugin* inPlugin, const char* inStr); void SetUserCon(int inUserCon) { mUserCon = inUserCon; } protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); virtual void DrawCell(CDC* pDC, const TableCellT& inCell); virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); virtual void ClickCell(const TableCellT& inCell, const CPoint& inPt); int GetUserCon() { return mUserCon; } int mUserCon; }; class AFX_CLASS_EXPORT T2HallEventItem { public: T2HallEventItem(T2HallEventPlugin *inPlugin, const char *inStr) { mPlugin = inPlugin; if (inStr) strcpy(mStr, inStr); else mStr[0] = 0; } virtual ~T2HallEventItem() {} T2HallEventPlugin *mPlugin; char mStr[64]; }; class AFX_CLASS_EXPORT T2MonthlyTable : public T2VerticalTable { public: T2MonthlyTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2MonthlyTable(); void SetStartMonth(T2TowerDoc* inDoc, int inMonth); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); virtual void DrawCell(CDC* pDC, const TableCellT& inCell); virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); void ClickCell(const TableCellT& inCell, const CPoint& inPt); int mStartMonth; BOOL mIsHoliday[12]; }; #endif