diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2HallEventTable.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2HallEventTable.h | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/src/T2DLL/T2HallEventTable.h b/src/T2DLL/T2HallEventTable.h index d46219f..99ec0bf 100644 --- a/src/T2DLL/T2HallEventTable.h +++ b/src/T2DLL/T2HallEventTable.h @@ -1,39 +1,42 @@ #pragma once #include "common.h" +#include "T2VerticalTable.h" -class T2HallEventTable { -protected: - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); +class AFX_EXT_CLASS T2HallEventTable : public T2VerticalTable { public: - T2HallEventTable(T2TowerDoc*, T2ImageObj*, CPalette*); + T2HallEventTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2HallEventTable(); - virtual void Add(T2HallEventPlugin*); - virtual void Add(const char*); - virtual void Add(CFilePluginList*); - virtual void SetCellData(const TableCellT&, T2HallEventPlugin*, const char*); + 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 void DrawCellSelf(CDC*, const TableCellT&, int); - virtual void DrawCell(CDC*, const TableCellT&); - virtual void ClickCell(const TableCellT&, const CPoint&); - virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint); - virtual int OnT2DlgItemEraseBkgnd(CDC*); + 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; } -public: - void SetUserCon(int) {} -protected: - int GetUserCon() {} + int mUserCon; }; -class T2MonthlyTable { -protected: - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); + +class AFX_EXT_CLASS T2MonthlyTable : public T2VerticalTable { public: - T2MonthlyTable(T2TowerDoc*, T2ImageObj*, CPalette*); + T2MonthlyTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2MonthlyTable(); - void SetStartMonth(T2TowerDoc*, int); + void SetStartMonth(T2TowerDoc* inDoc, int inMonth); + protected: - virtual void DrawCellSelf(CDC*, const TableCellT&, int); - virtual void DrawCell(CDC*, const TableCellT&); - void ClickCell(const TableCellT&, const CPoint&); - virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint); - virtual int OnT2DlgItemEraseBkgnd(CDC*); + 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]; }; |