X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a7ee6e0f400f0d10b158bc0396be22f59d6ad8f..661698e54f2bc599dc1a961ffbae08ccdd6b9b97:/include/wx/ribbon/panel.h diff --git a/include/wx/ribbon/panel.h b/include/wx/ribbon/panel.h index 5e9635b94e..a081bd6032 100644 --- a/include/wx/ribbon/panel.h +++ b/include/wx/ribbon/panel.h @@ -84,6 +84,8 @@ public: long GetFlags() { return m_flags; } + void HideIfExpanded(); + protected: virtual wxSize DoGetBestSize() const; virtual wxSize GetPanelSizerBestSize() const; @@ -171,7 +173,7 @@ private: #ifndef SWIG -wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_RIBBON, wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED, wxRibbonPanelEvent); +wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_RIBBON, wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED, wxRibbonPanelEvent); typedef void (wxEvtHandler::*wxRibbonPanelEventFunction)(wxRibbonPanelEvent&); @@ -179,17 +181,20 @@ typedef void (wxEvtHandler::*wxRibbonPanelEventFunction)(wxRibbonPanelEvent&); wxEVENT_HANDLER_CAST(wxRibbonPanelEventFunction, func) #define EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED(winid, fn) \ - wx__DECLARE_EVT1(wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED, winid, wxRibbonPanelEventHandler(fn)) + wx__DECLARE_EVT1(wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED, winid, wxRibbonPanelEventHandler(fn)) #else // wxpython/swig event work -%constant wxEventType wxEVT_COMMAND_RIBBONPANEL_ACTIVATED; +%constant wxEventType wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED; %pythoncode { - EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED = wx.PyEventBinder( wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED, 1 ) + EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED = wx.PyEventBinder( wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED, 1 ) } #endif +// old wxEVT_COMMAND_* constants +#define wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED + #endif // wxUSE_RIBBON #endif // _WX_RIBBON_PANEL_H_