Allow marking items complete
[ttodo.git] / eedit.h
blobfbd9b046acafc0020dcb14f33bc73e4e1d6f9628
1 // Copyright (c) 2006 by Mike Sharov <msharov@users.sourceforge.net>
2 //
3 // eedit.h
4 //
6 #ifndef EEDIT_H_2D55AEF271DA70232C96241A36B8EA24
7 #define EEDIT_H_2D55AEF271DA70232C96241A36B8EA24
9 #include "ui/editbox.h"
10 #include "tde.h"
12 /// \class CEntryEditDialog editdlg.h editdlg.h
13 class CEntryEditDialog : public CWindow {
14 public:
15 typedef const CTodoEntry& rcentry_t;
16 public:
17 CEntryEditDialog (void);
18 virtual void OnCreate (void);
19 virtual void OnResize (rcrect_t wr);
20 virtual void OnDraw (CGC& gc);
21 virtual void OnKey (wchar_t key);
22 void SetEntry (rcentry_t e);
23 inline rcentry_t Entry (void) const { return (m_Entry); }
24 private:
25 inline CEditBox& EntryText (void) { return (static_cast<CEditBox&>(CW(0))); }
26 private:
27 CTodoEntry m_Entry;
30 #endif