1 // Copyright (c) 2006 by Mike Sharov <msharov@users.sourceforge.net>
6 #ifndef EEDIT_H_2D55AEF271DA70232C96241A36B8EA24
7 #define EEDIT_H_2D55AEF271DA70232C96241A36B8EA24
11 /// \class CEntryEditDialog editdlg.h editdlg.h
12 class CEntryEditDialog
: public CDialog
{
14 typedef const CTodoEntry
& rcentry_t
;
16 CEntryEditDialog (void);
17 void SetEntry (rcentry_t e
);
18 inline rcentry_t
Entry (void) const { return (m_Entry
); }
19 virtual void OnResize (rcrect_t wr
);
21 virtual void OnKey (wchar_t key
);
22 virtual void OnGainFocus (void);
23 virtual void OnUpdate (void);
31 typedef CTodoDocument
* pdoc_t
;
32 typedef const CTodoDocument
* pcdoc_t
;
34 inline pdoc_t
Document (void) { return (TDocument
<CTodoDocument
>()); }
35 inline pcdoc_t
Document (void) const { return (TDocument
<CTodoDocument
>()); }
36 inline CEditBox
& EntryText (void) { return (TCW
<CEditBox
>(ctrl_Text
)); }
37 inline CLabel
& CreatedDate (void) { return (TCW
<CLabel
>(ctrl_CreatedDate
)); }
38 inline CLabel
& DoneDate (void) { return (TCW
<CLabel
>(ctrl_DoneDate
)); }