X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbc3893c76a5785c211daa06491c0fc8d3646e7b..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/richtext.i diff --git a/wxPython/src/richtext.i b/wxPython/src/richtext.i index f32b63b11b..87a22da1bd 100644 --- a/wxPython/src/richtext.i +++ b/wxPython/src/richtext.i @@ -412,11 +412,11 @@ public: bool HasTabs() const; bool HasLeftIndent() const; bool HasRightIndent() const; - bool HasWeight() const; - bool HasSize() const; - bool HasItalic() const; - bool HasUnderlined() const; - bool HasFaceName() const; +// bool HasWeight() const; +// bool HasSize() const; +// bool HasItalic() const; +// bool HasUnderlined() const; +// bool HasFaceName() const; bool HasFont() const; bool HasParagraphSpacingAfter() const; @@ -1417,7 +1417,7 @@ flag.", ""); %property(InternalSelectionRange, GetInternalSelectionRange, SetInternalSelectionRange, doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`"); %property(LastPosition, GetLastPosition, doc="See `GetLastPosition`"); %property(NumberOfLines, GetNumberOfLines, doc="See `GetNumberOfLines`"); - %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + %property(Selection, GetSelection, SetSelectionRange, doc="See `GetSelection` and `SetSelection`"); %property(SelectionRange, GetSelectionRange, SetSelectionRange, doc="See `GetSelectionRange` and `SetSelectionRange`"); %property(StringSelection, GetStringSelection, doc="See `GetStringSelection`"); %property(StyleSheet, GetStyleSheet, SetStyleSheet, doc="See `GetStyleSheet` and `SetStyleSheet`"); @@ -1525,8 +1525,6 @@ flag.", ""); //---------------------------------------------------------------------- -%constant wxEventType wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED; -%constant wxEventType wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED; %constant wxEventType wxEVT_COMMAND_RICHTEXT_LEFT_CLICK; %constant wxEventType wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK; %constant wxEventType wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK; @@ -1536,10 +1534,10 @@ flag.", ""); %constant wxEventType wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED; %constant wxEventType wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING; %constant wxEventType wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED; +%constant wxEventType wxEVT_COMMAND_RICHTEXT_CHARACTER; +%constant wxEventType wxEVT_COMMAND_RICHTEXT_DELETE; %pythoncode { -EVT_RICHTEXT_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED, 1) -EVT_RICHTEXT_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED, 1) EVT_RICHTEXT_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK, 1) EVT_RICHTEXT_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK, 1) EVT_RICHTEXT_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK, 1) @@ -1549,6 +1547,8 @@ EVT_RICHTEXT_STYLESHEET_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYL EVT_RICHTEXT_STYLESHEET_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED, 1) EVT_RICHTEXT_STYLESHEET_REPLACING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING, 1) EVT_RICHTEXT_STYLESHEET_REPLACED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED, 1) +EVT_RICHTEXT_CHARACTER = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CHARACTER, 1) +EVT_RICHTEXT_DELETE = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_DELETE, 1) } @@ -1557,14 +1557,14 @@ class wxRichTextEvent : public wxNotifyEvent public: wxRichTextEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); - int GetIndex() const; - void SetIndex(int n); + int GetPosition() const; + void SetPosition(int n); int GetFlags() const; void SetFlags(int flags); %property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`"); - %property(Index, GetIndex, SetIndex, doc="See `GetIndex` and `SetIndex`"); + %property(Index, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`"); }; //----------------------------------------------------------------------