Changed all symbols with the name "id" to "timerid" to allow Objective-C++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,7 +25,7 @@ class WXDLLEXPORT wxTimer : public wxTimerBase
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTimer() { Init(); }
|
wxTimer() { Init(); }
|
||||||
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
|
wxTimer(wxEvtHandler *owner, int timerid = -1) : wxTimerBase(owner, timerid)
|
||||||
{ Init(); }
|
{ Init(); }
|
||||||
~wxTimer();
|
~wxTimer();
|
||||||
|
|
||||||
|
@@ -52,12 +52,12 @@ public:
|
|||||||
// ctor which allows to avoid having to override Notify() in the derived
|
// ctor which allows to avoid having to override Notify() in the derived
|
||||||
// class: the owner will get timer notifications which can be handled with
|
// class: the owner will get timer notifications which can be handled with
|
||||||
// EVT_TIMER
|
// EVT_TIMER
|
||||||
wxTimerBase(wxEvtHandler *owner, int id = -1)
|
wxTimerBase(wxEvtHandler *owner, int timerid = -1)
|
||||||
{ Init(); SetOwner(owner, id); }
|
{ Init(); SetOwner(owner, timerid); }
|
||||||
|
|
||||||
// same as ctor above
|
// same as ctor above
|
||||||
void SetOwner(wxEvtHandler *owner, int id = -1)
|
void SetOwner(wxEvtHandler *owner, int timerid = -1)
|
||||||
{ m_owner = owner; m_idTimer = id; }
|
{ m_owner = owner; m_idTimer = timerid; }
|
||||||
|
|
||||||
virtual ~wxTimerBase();
|
virtual ~wxTimerBase();
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ private:
|
|||||||
class WXDLLEXPORT wxTimerEvent : public wxEvent
|
class WXDLLEXPORT wxTimerEvent : public wxEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTimerEvent(int id = 0, int interval = 0) : wxEvent(id)
|
wxTimerEvent(int timerid = 0, int interval = 0) : wxEvent(timerid)
|
||||||
{
|
{
|
||||||
m_eventType = wxEVT_TIMER;
|
m_eventType = wxEVT_TIMER;
|
||||||
|
|
||||||
@@ -182,8 +182,8 @@ private:
|
|||||||
|
|
||||||
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
|
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
|
||||||
|
|
||||||
#define EVT_TIMER(id, func) \
|
#define EVT_TIMER(timerid, func) \
|
||||||
DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL),
|
DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL),
|
||||||
|
|
||||||
#endif // wxUSE_GUI && wxUSE_TIMER
|
#endif // wxUSE_GUI && wxUSE_TIMER
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user