X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994453b843b007de6367fedbf4a49ac9d920c63c..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/_textctrl.i diff --git a/wxPython/src/_textctrl.i b/wxPython/src/_textctrl.i index d5ccdbab89..39c10fb7a4 100644 --- a/wxPython/src/_textctrl.i +++ b/wxPython/src/_textctrl.i @@ -70,6 +70,12 @@ enum { %pythoncode { TE_LINEWRAP = TE_CHARWRAP } +// deprecated synonymns +%pythoncode { +PROCESS_ENTER = TE_PROCESS_ENTER +PASSWORD = TE_PASSWORD +} + enum wxTextAttrAlignment @@ -110,7 +116,9 @@ enum wxTextCtrlHitTestResult enum { wxOutOfRangeTextCoord, - wxInvalidTextCoord + wxInvalidTextCoord, + + wxTEXT_TYPE_ANY }; //--------------------------------------------------------------------------- @@ -225,6 +233,10 @@ public: 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; @@ -253,8 +265,8 @@ public: 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(); @@ -337,6 +349,17 @@ the client area origin nor scrolling. ", "", 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)