4 #ifndef ELIST_H_7BDB6D9539FC19CC7C7DA4A0140965B0
5 #define ELIST_H_7BDB6D9539FC19CC7C7DA4A0140965B0
9 /// List of todo entries.
10 class CTodoList
: public CListbox
{
12 typedef const todolist_t
* pctodolist_t
;
15 void SetList (pctodolist_t pl
);
16 virtual void OnDrawItem (CGC
& gc
, rcpos_t pos
, uint32_t ii
);
17 virtual void OnKey (wchar_t key
);
19 virtual void OnUpdate (void);
21 typedef CTodoDocument
* pdoc_t
;
22 typedef const CTodoDocument
* pcdoc_t
;
23 typedef CTodoEntry::id_t itemid_t
;
25 inline pdoc_t
Document (void) { return (TDocument
<CTodoDocument
>()); }
26 inline pcdoc_t
Document (void) const { return (TDocument
<CTodoDocument
>()); }
27 inline void EditEntry (void);
29 pctodolist_t m_pTodos
; ///< Link to the data.
30 itemid_t m_CopiedId
; ///< Cut-n-paste link buffer.