2
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
* http://www.gnu.org/licenses/lgpl-3.0.html
10
#include "sdk_precomp.h"
13
#include <wx/xrc/xmlres.h>
16
#include "genericmultilinenotesdlg.h"
17
#include <wx/textctrl.h>
19
BEGIN_EVENT_TABLE(GenericMultiLineNotesDlg, wxDialog)
23
GenericMultiLineNotesDlg::GenericMultiLineNotesDlg(wxWindow* parent, const wxString& caption, const wxString& notes, bool readOnly)
28
wxXmlResource::Get()->LoadDialog(this, parent, _T("dlgGenericMultiLineNotes"));
31
XRCCTRL(*this, "txtNotes", wxTextCtrl)->SetValue(m_Notes);
32
XRCCTRL(*this, "txtNotes", wxTextCtrl)->SetEditable(!m_ReadOnly);
36
wxWindow* win = FindWindowById(wxID_OK, this);
42
GenericMultiLineNotesDlg::~GenericMultiLineNotesDlg()
47
void GenericMultiLineNotesDlg::EndModal(int retCode)
49
if (retCode == wxID_OK)
50
m_Notes = XRCCTRL(*this, "txtNotes", wxTextCtrl)->GetValue();
51
wxDialog::EndModal(retCode);