Bumped copyright dates for 2013
[barry.git] / desktop / src / MemoEditDlg.h
blob82933d94d658134ed1fa546d8ac09b5975abff28
1 ///
2 /// \file MemoEditDlg.h
3 /// Dialog class to handle the editing of the Memo record
4 ///
6 /*
7 Copyright (C) 2012-2013, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __BARRYDESKTOP_MEMO_EDIT_DLG_H__
23 #define __BARRYDESKTOP_MEMO_EDIT_DLG_H__
26 #include "StringSync.h"
27 #include <wx/wx.h>
28 #include <barry/barry.h>
29 // begin wxGlade: ::dependencies
30 // end wxGlade
33 // begin wxGlade: ::extracode
34 // end wxGlade
37 class MemoEditDlg : public wxDialog
39 private:
40 Barry::Memo &m_rec;
41 std::string m_category_list;
42 StringSync m_strings;
44 // begin wxGlade: MemoEditDlg::methods
45 void set_properties();
46 void do_layout();
47 // end wxGlade
49 protected:
50 // begin wxGlade: MemoEditDlg::attributes
51 wxStaticText* label_1;
52 wxTextCtrl* text_ctrl_2;
53 wxStaticText* label_2;
54 wxTextCtrl* text_ctrl_3;
55 wxTextCtrl* text_ctrl_1;
56 // end wxGlade
58 wxSizer *bottom_buttons;
60 public:
61 // begin wxGlade: MemoEditDlg::ids
62 // end wxGlade
64 MemoEditDlg(wxWindow* parent, Barry::Memo &rec, bool editable);
66 // in case any validation is required:
67 virtual bool TransferDataFromWindow();
68 }; // wxGlade: end class
71 #endif // MEMOEDITDLG_H