#include "wx/univ/textctrl.h"
#else
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "textctrl.h"
-#endif
-
#include "wx/scrolwin.h"
#include "wx/arrstr.h"
#include "wx/datetime.h"
// classes
//-----------------------------------------------------------------------------
-class wxTextCtrl;
+class WXDLLIMPEXP_CORE wxTextCtrl;
//-----------------------------------------------------------------------------
// helpers
// wxTextCtrl
//-----------------------------------------------------------------------------
-class wxTextCtrl: public wxTextCtrlBase, public wxScrollHelper
+class WXDLLIMPEXP_CORE wxTextCtrl: public wxTextCtrlBase, public wxScrollHelper
{
public:
wxTextCtrl() { Init(); }
// implement base class pure virtuals
// ----------------------------------
- virtual wxString GetValue() const;
- virtual void SetValue(const wxString& value);
+ virtual void ChangeValue(const wxString &value);
virtual int GetLineLength(long lineNo) const;
virtual wxString GetLineText(long lineNo) const;
// more readable flag testing methods
// ----------------------------------
-#if 0
- // it seems now in wxTextCtrlBase
- bool IsSingleLine() const { return !(GetWindowStyle() & wxTE_MULTILINE); }
-#endif
bool IsPassword() const { return (GetWindowStyle() & wxTE_PASSWORD) != 0; }
bool WrapLines() const { return false; }
virtual wxSize DoGetBestSize() const;
+ virtual void DoSetValue(const wxString& value, int flags = 0);
+
friend class wxSourceUndoStep;
wxSourceLineArray m_lines;