X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4701dc09838c3da46a8bc2836265a7dffee541ee..e39954934300b29f5e12f3142c1c6be25f659677:/interface/wx/stc/stc.h diff --git a/interface/wx/stc/stc.h b/interface/wx/stc/stc.h index 38cb6b0eab..ff4494dcf9 100644 --- a/interface/wx/stc/stc.h +++ b/interface/wx/stc/stc.h @@ -14,7 +14,7 @@ @todo list styled text ctrl events. @library{wxbase} - @category{events} + @category{events,stc} */ class wxStyledTextEvent : public wxCommandEvent { @@ -263,7 +263,7 @@ public: wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose documentation can be found in the Scintilla website (http://www.scintilla.org/). - @beginEventTable{wxStyledTextEvent} + @beginEventEmissionTable{wxStyledTextEvent} @event{EVT_STC_CHANGE(id, fn)} TOWRITE @event{EVT_STC_STYLENEEDED(id, fn)} @@ -331,10 +331,10 @@ public: */ wxStyledTextCtrl::wxStyledTextCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, - const wxPoint pos = wxDefaultPosition, - const wxSize size = wxDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, - const wxString name = "stcwindow"); + const wxString& name = wxSTCNameStr); /** Extend life of document. @@ -597,7 +597,7 @@ public: /** Will a paste succeed? */ - bool CanPaste(); + virtual bool CanPaste() const; /** Are there any redoable actions in the undo history? @@ -934,12 +934,12 @@ public: /** */ - wxString GetCurLine(int* OUTPUT); + wxString GetCurLine(int* linePos = NULL); /** */ - wxCharBuffer GetCurLineRaw(int* OUTPUT); + wxCharBuffer GetCurLineRaw(int* linePos = NULL); /** END of generated section @@ -1022,7 +1022,7 @@ public: /** Are the indentation guides visible? */ - bool GetIndentationGuides(); + int GetIndentationGuides() const; /** Find the last child line of a header line. @@ -1626,7 +1626,7 @@ public: /** Load the contents of filename into the editor */ - bool LoadFile(const wxString& filename); + bool LoadFile(const wxString& file, int fileType = wxTEXT_TYPE_ANY); /** Transform the selection to lower case. @@ -1847,7 +1847,7 @@ public: /** Write the contents of the editor to filename */ - bool SaveFile(const wxString& filename); + bool SaveFile(const wxString& file = wxEmptyString, int fileType = wxTEXT_TYPE_ANY); /** Scroll enough to make the given column visible @@ -1903,7 +1903,7 @@ public: /** Send a message to Scintilla */ - long SendMsg(int msg, long wp = 0, long lp = 0); + wxIntPtr SendMsg(int msg, wxUIntPtr wp = 0, wxIntPtr lp = 0) const; /** Set the selection anchor to a position. The anchor is the opposite @@ -2080,7 +2080,7 @@ public: /** Show or hide indentation guides. */ - void SetIndentationGuides(bool show); + void SetIndentationGuides(int indentView); /** Set up the key words used by the lexer. @@ -2246,7 +2246,7 @@ public: /** Select a range of text. */ - void SetSelection(int start, int end); + virtual void SetSelection(long from, long to); /** Sets the position that ends the selection - this becomes the currentPosition.