From 060298dc5c193e2eef942c43f078db6e2615f9f1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 17 Apr 2013 02:50:32 +0000 Subject: [PATCH] Add missing interface items for Phoenix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/event.h | 2 -- interface/wx/textctrl.h | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index f5d1b1e687..4ad8d1bcf1 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -4665,8 +4665,6 @@ wxEventType wxEVT_COMMAND_KILL_FOCUS; wxEventType wxEVT_COMMAND_ENTER; wxEventType wxEVT_HELP; wxEventType wxEVT_DETAILED_HELP; -wxEventType wxEVT_COMMAND_TEXT_UPDATED; -wxEventType wxEVT_COMMAND_TEXT_ENTER; wxEventType wxEVT_COMMAND_TOOL_CLICKED; wxEventType wxEVT_WINDOW_MODAL_DIALOG_CLOSED; diff --git a/interface/wx/textctrl.h b/interface/wx/textctrl.h index 96f4dfdb6b..6a88243edb 100644 --- a/interface/wx/textctrl.h +++ b/interface/wx/textctrl.h @@ -1557,6 +1557,33 @@ public: +wxEventType wxEVT_COMMAND_TEXT_UPDATED; +wxEventType wxEVT_COMMAND_TEXT_ENTER; +wxEventType wxEVT_COMMAND_TEXT_URL; +wxEventType wxEVT_COMMAND_TEXT_MAXLEN; + + +class wxTextUrlEvent : public wxCommandEvent +{ +public: + wxTextUrlEvent(int winid, const wxMouseEvent& evtMouse, + long start, long end); + + wxTextUrlEvent(const wxTextUrlEvent& event); + + // get the mouse event which happened over the URL + const wxMouseEvent& GetMouseEvent() const; + + // get the start of the URL + long GetURLStart() const; + + // get the end of the URL + long GetURLEnd() const; + + virtual wxEvent *Clone() const; +}; + + /** @class wxStreamToTextRedirector -- 2.45.2