X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32eb560338fa702c61544c8c1a01d8ca9812b2f3..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/src/ribbon/gallery.cpp diff --git a/src/ribbon/gallery.cpp b/src/ribbon/gallery.cpp index a671a3a880..429d5e8f93 100644 --- a/src/ribbon/gallery.cpp +++ b/src/ribbon/gallery.cpp @@ -4,7 +4,6 @@ // Author: Peter Cawley // Modified by: // Created: 2009-07-22 -// RCS-ID: $Id$ // Copyright: (C) Peter Cawley // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -30,9 +29,9 @@ #include "wx/msw/private.h" #endif -wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_HOVER_CHANGED, wxRibbonGalleryEvent); -wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_SELECTED, wxRibbonGalleryEvent); -wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONGALLERY_CLICKED, wxRibbonGalleryEvent); +wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_HOVER_CHANGED, wxRibbonGalleryEvent); +wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_SELECTED, wxRibbonGalleryEvent); +wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_CLICKED, wxRibbonGalleryEvent); IMPLEMENT_DYNAMIC_CLASS(wxRibbonGalleryEvent, wxCommandEvent) IMPLEMENT_CLASS(wxRibbonGallery, wxRibbonControl) @@ -197,7 +196,7 @@ void wxRibbonGallery::OnMouseMove(wxMouseEvent& evt) { m_hovered_item = hovered_item; wxRibbonGalleryEvent notification( - wxEVT_COMMAND_RIBBONGALLERY_HOVER_CHANGED, GetId()); + wxEVT_RIBBONGALLERY_HOVER_CHANGED, GetId()); notification.SetEventObject(this); notification.SetGallery(this); notification.SetGalleryItem(hovered_item); @@ -251,7 +250,7 @@ void wxRibbonGallery::OnMouseLeave(wxMouseEvent& WXUNUSED(evt)) { m_hovered_item = NULL; wxRibbonGalleryEvent notification( - wxEVT_COMMAND_RIBBONGALLERY_HOVER_CHANGED, GetId()); + wxEVT_RIBBONGALLERY_HOVER_CHANGED, GetId()); notification.SetEventObject(this); notification.SetGallery(this); ProcessWindowEvent(notification); @@ -341,7 +340,7 @@ void wxRibbonGallery::OnMouseUp(wxMouseEvent& evt) else if(m_mouse_active_rect == &m_extension_button_rect) { m_extension_button_state = wxRIBBON_GALLERY_BUTTON_HOVERED; - wxCommandEvent notification(wxEVT_COMMAND_BUTTON_CLICKED, + wxCommandEvent notification(wxEVT_BUTTON, GetId()); notification.SetEventObject(this); ProcessWindowEvent(notification); @@ -352,7 +351,7 @@ void wxRibbonGallery::OnMouseUp(wxMouseEvent& evt) { m_selected_item = m_active_item; wxRibbonGalleryEvent notification( - wxEVT_COMMAND_RIBBONGALLERY_SELECTED, GetId()); + wxEVT_RIBBONGALLERY_SELECTED, GetId()); notification.SetEventObject(this); notification.SetGallery(this); notification.SetGalleryItem(m_selected_item); @@ -360,7 +359,7 @@ void wxRibbonGallery::OnMouseUp(wxMouseEvent& evt) } wxRibbonGalleryEvent notification( - wxEVT_COMMAND_RIBBONGALLERY_CLICKED, GetId()); + wxEVT_RIBBONGALLERY_CLICKED, GetId()); notification.SetEventObject(this); notification.SetGallery(this); notification.SetGalleryItem(m_selected_item);