From a37e883612730a304b95f41367317c599f3edc62 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 24 Jul 1998 15:44:58 +0000 Subject: [PATCH] Altered event.h to reflect new toolbar event handling; removed bugs in regconf.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/event.h | 5 ++++- include/wx/msw/regconf.h | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/wx/event.h b/include/wx/event.h index 606a73749d..134114c78c 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -39,6 +39,7 @@ enum wxEventType { wxEVT_COMMAND_TEXT_UPDATED, wxEVT_COMMAND_TEXT_ENTER, wxEVT_COMMAND_MENU_SELECTED, + wxEVT_COMMAND_TOOL_CLICKED = wxEVT_COMMAND_MENU_SELECTED, wxEVT_COMMAND_SLIDER_UPDATED, wxEVT_COMMAND_RADIOBOX_SELECTED, wxEVT_COMMAND_RADIOBUTTON_SELECTED, @@ -46,7 +47,6 @@ enum wxEventType { wxEVT_COMMAND_SCROLLBAR_UPDATED, wxEVT_COMMAND_VLBOX_SELECTED, wxEVT_COMMAND_COMBOBOX_SELECTED, - wxEVT_COMMAND_TOOL_CLICKED, wxEVT_COMMAND_TOOL_RCLICKED, wxEVT_COMMAND_TOOL_ENTER, wxEVT_SET_FOCUS, @@ -1186,8 +1186,11 @@ const wxEventTableEntry theClass::sm_eventTableEntries[] = { \ #define EVT_VLBOX(id, fn) { wxEVT_COMMAND_VLBOX_SELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, #define EVT_COMBOBOX(id, fn) { wxEVT_COMMAND_COMBOBOX_SELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, #define EVT_TOOL(id, fn) { wxEVT_COMMAND_TOOL_CLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, +#define EVT_TOOL_RANGE(id1, id2, fn) { wxEVT_COMMAND_TOOL_CLICKED, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, #define EVT_TOOL_RCLICKED(id, fn) { wxEVT_COMMAND_TOOL_RCLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, +#define EVT_TOOL_RCLICKED_RANGE(id1, id2, fn) { wxEVT_COMMAND_TOOL_RCLICKED, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, #define EVT_TOOL_ENTER(id, fn) { wxEVT_COMMAND_TOOL_ENTER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, +#define EVT_TOOL_ENTER_RANGE(id1, id2, fn) { wxEVT_COMMAND_TOOL_ENTER, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, #define EVT_CHECKLISTBOX(id, fn) { wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, NULL }, // Generic command events diff --git a/include/wx/msw/regconf.h b/include/wx/msw/regconf.h index 3bf2bcce57..38f5ba608c 100644 --- a/include/wx/msw/regconf.h +++ b/include/wx/msw/regconf.h @@ -46,6 +46,11 @@ public: virtual bool HasGroup(const wxString& strName) const; virtual bool HasEntry(const wxString& strName) const; + // get number of entries/subgroups in the current group, with or without + // it's subgroups + virtual uint GetNumberOfEntries(bool bRecursive = FALSE) const = 0; + virtual uint GetNumberOfGroups(bool bRecursive = FALSE) const = 0; + // read/write virtual bool Read(wxString&, const char *, const char * = 0) const; virtual bool Read(long&, const char *, long = 0) const; -- 2.47.2