1 /* 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 4 */ 5 6 #ifndef GENERICMULTILINENOTESDLG_H 7 #define GENERICMULTILINENOTESDLG_H 8 9 #include "scrollingdialog.h" 10 #include <wx/intl.h> 11 12 13 class GenericMultiLineNotesDlg : public wxScrollingDialog 14 { 15 public: 16 GenericMultiLineNotesDlg(wxWindow* parent, const wxString& caption = _("Notes"), const wxString& notes = wxEmptyString, bool readOnly = true); 17 ~GenericMultiLineNotesDlg() override; 18 GenericMultiLineNotesDlg& operator=(const GenericMultiLineNotesDlg&){ return *this; } // just to satisfy script bindings (never used) 19 GetNotes()20 const wxString& GetNotes(){ return m_Notes; } 21 void EndModal(int retCode) override; 22 protected: 23 wxString m_Notes; 24 bool m_ReadOnly; 25 private: 26 DECLARE_EVENT_TABLE() 27 }; 28 29 30 31 #endif // GENERICMULTILINENOTESDLG_H 32