enum {
wxOutOfRangeTextCoord,
- wxInvalidTextCoord
+ wxInvalidTextCoord,
+
+ wxTEXT_TYPE_ANY
};
//---------------------------------------------------------------------------
virtual wxString GetValue() const;
virtual void SetValue(const wxString& value);
+ virtual bool IsEmpty() const;
+
+ virtual void ChangeValue(const wxString &value);
+
virtual wxString GetRange(long from, long to) const;
virtual int GetLineLength(long lineNo) const;
virtual void Remove(long from, long to);
// load/save the controls contents from/to the file
- virtual bool LoadFile(const wxString& file);
- virtual bool SaveFile(const wxString& file = wxPyEmptyString);
+ virtual bool LoadFile(const wxString& file, int fileType = wxTEXT_TYPE_ANY);
+ virtual bool SaveFile(const wxString& file = wxPyEmptyString, int fileType = wxTEXT_TYPE_ANY);
// sets/clears the dirty flag
virtual void MarkDirty();
virtual void SelectAll();
virtual void SetEditable(bool editable);
+ // generate the wxEVT_COMMAND_TEXT_UPDATED event, like SetValue() does
+ void SendTextUpdatedEvent();
+
#ifdef __WXMSW__
// Caret handling (Windows only)
bool ShowNativeCaret(bool show = true);