Fix typos and missing items in the ribbon interface definitions
This commit is contained in:
@@ -179,10 +179,13 @@ typedef void (wxEvtHandler::*wxRibbonGalleryEventFunction)(wxRibbonGalleryEvent&
|
|||||||
// wxpython/swig event work
|
// wxpython/swig event work
|
||||||
%constant wxEventType wxEVT_RIBBONGALLERY_HOVER_CHANGED;
|
%constant wxEventType wxEVT_RIBBONGALLERY_HOVER_CHANGED;
|
||||||
%constant wxEventType wxEVT_RIBBONGALLERY_SELECTED;
|
%constant wxEventType wxEVT_RIBBONGALLERY_SELECTED;
|
||||||
|
%constant wxEventType wxEVT_RIBBONGALLERY_CLICKED;
|
||||||
|
|
||||||
|
|
||||||
%pythoncode {
|
%pythoncode {
|
||||||
EVT_RIBBONGALLERY_HOVER_CHANGED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_HOVER_CHANGED, 1 )
|
EVT_RIBBONGALLERY_HOVER_CHANGED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_HOVER_CHANGED, 1 )
|
||||||
EVT_RIBBONGALLERY_SELECTED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_SELECTED, 1 )
|
EVT_RIBBONGALLERY_SELECTED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_SELECTED, 1 )
|
||||||
|
EVT_RIBBONGALLERY_CLICKED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_CLICKED, 1 )
|
||||||
}
|
}
|
||||||
#endif // SWIG
|
#endif // SWIG
|
||||||
|
|
||||||
|
@@ -274,7 +274,7 @@ public:
|
|||||||
|
|
||||||
@see SetColourScheme()
|
@see SetColourScheme()
|
||||||
*/
|
*/
|
||||||
virtual void SetColour(int id, const wxColor& colour) = 0;
|
virtual void SetColour(int id, const wxColour& colour) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@see wxRibbonArtProvider::GetColour()
|
@see wxRibbonArtProvider::GetColour()
|
||||||
@@ -582,7 +582,7 @@ public:
|
|||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect,
|
const wxRect& rect,
|
||||||
wxRibbonButtonBarButtonKind kind,
|
wxRibbonButtonKind kind,
|
||||||
long state,
|
long state,
|
||||||
const wxString& label,
|
const wxString& label,
|
||||||
const wxBitmap& bitmap_large,
|
const wxBitmap& bitmap_large,
|
||||||
@@ -946,7 +946,7 @@ public:
|
|||||||
virtual bool GetButtonBarButtonSize(
|
virtual bool GetButtonBarButtonSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
wxRibbonButtonBarButtonKind kind,
|
wxRibbonButtonKind kind,
|
||||||
wxRibbonButtonBarButtonState size,
|
wxRibbonButtonBarButtonState size,
|
||||||
const wxString& label,
|
const wxString& label,
|
||||||
wxSize bitmap_size_large,
|
wxSize bitmap_size_large,
|
||||||
|
@@ -6,6 +6,22 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
enum wxRibbonBarOption
|
||||||
|
{
|
||||||
|
wxRIBBON_BAR_SHOW_PAGE_LABELS,
|
||||||
|
wxRIBBON_BAR_SHOW_PAGE_ICONS,
|
||||||
|
wxRIBBON_BAR_FLOW_HORIZONTAL,
|
||||||
|
wxRIBBON_BAR_FLOW_VERTICAL,
|
||||||
|
wxRIBBON_BAR_SHOW_PANEL_EXT_BUTTONS,
|
||||||
|
wxRIBBON_BAR_SHOW_PANEL_MINIMISE_BUTTONS,
|
||||||
|
wxRIBBON_BAR_ALWAYS_SHOW_TABS,
|
||||||
|
wxRIBBON_BAR_SHOW_TOGGLE_BUTTON,
|
||||||
|
wxRIBBON_BAR_SHOW_HELP_BUTTON,
|
||||||
|
wxRIBBON_BAR_DEFAULT_STYLE,
|
||||||
|
wxRIBBON_BAR_FOLDBAR_STYLE
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The possible display modes of the panel area of a wxRibbonBar widget.
|
The possible display modes of the panel area of a wxRibbonBar widget.
|
||||||
|
|
||||||
@@ -68,6 +84,35 @@ public:
|
|||||||
void SetPage(wxRibbonPage* page);
|
void SetPage(wxRibbonPage* page);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wxEventType wxEVT_RIBBONBAR_PAGE_CHANGED;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_PAGE_CHANGING;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TAB_MIDDLE_DOWN;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TAB_MIDDLE_UP;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TAB_RIGHT_DOWN;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TAB_RIGHT_UP;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TAB_LEFT_DCLICK;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_TOGGLED;
|
||||||
|
wxEventType wxEVT_RIBBONBAR_HELP_CLICK;
|
||||||
|
|
||||||
|
|
||||||
|
class wxRibbonPageTabInfo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxRect rect;
|
||||||
|
wxRibbonPage *page;
|
||||||
|
int ideal_width;
|
||||||
|
int small_begin_need_separator_width;
|
||||||
|
int small_must_have_separator_width;
|
||||||
|
int minimum_width;
|
||||||
|
bool active;
|
||||||
|
bool hovered;
|
||||||
|
bool highlight;
|
||||||
|
bool shown;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@class wxRibbonBar
|
@class wxRibbonBar
|
||||||
|
|
||||||
|
@@ -559,3 +559,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool PopupMenu(wxMenu* menu);
|
bool PopupMenu(wxMenu* menu);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wxEventType wxEVT_RIBBONBUTTONBAR_CLICKED;
|
||||||
|
wxEventType wxEVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED;
|
||||||
|
@@ -297,3 +297,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetGalleryItem(wxRibbonGalleryItem* item);
|
void SetGalleryItem(wxRibbonGalleryItem* item);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wxEventType wxEVT_RIBBONGALLERY_HOVER_CHANGED;
|
||||||
|
wxEventType wxEVT_RIBBONGALLERY_SELECTED;
|
||||||
|
wxEventType wxEVT_RIBBONGALLERY_CLICKED;
|
||||||
|
|
||||||
|
@@ -5,6 +5,18 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
enum wxRibbonPanelOption
|
||||||
|
{
|
||||||
|
wxRIBBON_PANEL_NO_AUTO_MINIMISE,
|
||||||
|
wxRIBBON_PANEL_EXT_BUTTON,
|
||||||
|
wxRIBBON_PANEL_MINIMISE_BUTTON,
|
||||||
|
wxRIBBON_PANEL_STRETCH,
|
||||||
|
wxRIBBON_PANEL_FLEXIBLE,
|
||||||
|
wxRIBBON_PANEL_DEFAULT_STYLE
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@class wxRibbonPanelEvent
|
@class wxRibbonPanelEvent
|
||||||
|
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@class wxRibbonToolBar
|
@class wxRibbonToolBar
|
||||||
|
|
||||||
@@ -492,3 +493,20 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void ToggleTool(int tool_id, bool checked);
|
virtual void ToggleTool(int tool_id, bool checked);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class wxRibbonToolBarEvent : public wxCommandEvent
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxRibbonToolBarEvent(wxEventType command_type = wxEVT_NULL,
|
||||||
|
int win_id = 0,
|
||||||
|
wxRibbonToolBar* bar = NULL);
|
||||||
|
|
||||||
|
wxRibbonToolBar* GetBar();
|
||||||
|
void SetBar(wxRibbonToolBar* bar);
|
||||||
|
bool PopupMenu(wxMenu* menu);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wxEventType wxEVT_RIBBONTOOLBAR_CLICKED;
|
||||||
|
wxEventType wxEVT_RIBBONTOOLBAR_DROPDOWN_CLICKED;
|
||||||
|
Reference in New Issue
Block a user