%pythoncode { TE_LINEWRAP = TE_CHARWRAP }
+// deprecated synonymns
+%pythoncode {
+PROCESS_ENTER = TE_PROCESS_ENTER
+PASSWORD = TE_PASSWORD
+}
+
enum wxTextAttrAlignment
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 SetSelection(long from, long to);
virtual void SelectAll();
virtual void SetEditable(bool editable);
+
+#ifdef __WXMAC__
+ virtual void MacCheckSpelling(bool check);
+#else
+ %extend {
+ void MacCheckSpelling(bool check) {}
+ }
+#endif
+
+ // generate the wxEVT_COMMAND_TEXT_UPDATED event, like SetValue() does
+ void SendTextUpdatedEvent();
#ifdef __WXMSW__
// Caret handling (Windows only)