1 // This file is part of a terminal todo application.
3 // Copyright (C) 2006 by Mike Sharov <msharov@users.sourceforge.net>
4 // This file is free software, distributed under the MIT License.
9 #ifndef IEDIT_H_2D55AEF271DA70232C96241A36B8EA24
10 #define IEDIT_H_2D55AEF271DA70232C96241A36B8EA24
14 /// \class CItemEditDialog editdlg.h editdlg.h
15 class CItemEditDialog
: public CDialog
{
17 typedef const CTodoItem
& rcentry_t
;
19 CItemEditDialog (void);
20 void SetItem (rcentry_t e
);
21 inline rcentry_t
Item (void) const { return (m_Item
); }
22 virtual void OnResize (rcrect_t wr
);
24 virtual void OnKey (wchar_t key
);
25 virtual void OnUpdate (void);
33 typedef CCurlistDocument
* pdoc_t
;
34 typedef const CCurlistDocument
* pcdoc_t
;
36 inline pdoc_t
Document (void) { return (TDocument
<CCurlistDocument
>()); }
37 inline pcdoc_t
Document (void) const { return (TDocument
<CCurlistDocument
>()); }
38 inline CEditBox
& ItemText (void) { return (TCW
<CEditBox
>(ctrl_Text
)); }
39 inline CLabel
& CreatedDate (void) { return (TCW
<CLabel
>(ctrl_CreatedDate
)); }
40 inline CLabel
& DoneDate (void) { return (TCW
<CLabel
>(ctrl_DoneDate
)); }