added wxTextCtrl::ChangeValue() which is the same as SetValue() but doesn't send the text changed event (first part of patch 1553551)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-08 17:46:12 +00:00
parent 1d6fcbcc70
commit f6519b40fe
24 changed files with 191 additions and 45 deletions

View File

@@ -300,6 +300,8 @@ public:
virtual wxString GetValue() const = 0;
virtual void SetValue(const wxString& value) = 0;
virtual void ChangeValue(const wxString &value) = 0;
virtual wxString GetRange(long from, long to) const;
virtual int GetLineLength(long lineNo) const = 0;
@@ -429,6 +431,18 @@ protected:
int overflow(int i);
#endif // wxHAS_TEXT_WINDOW_STREAM
// typically, wxTextCtrl classes will use a DoSetValue() function to
// implement both SetValue() and ChangeValue() functions and these
// flags are meant to be passed to such DoSetValue()
enum
{
SetValue_SendEvent = 1,
SetValue_SelectionOnly = 2
};
// generate the wxEVT_COMMAND_TEXT_UPDATED event
void SendTextUpdatedEvent();
// the name of the last file loaded with LoadFile() which will be used by
// SaveFile() by default
wxString m_filename;