]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/timer.h
added MSLU reference to wxUSE_UNICODE
[wxWidgets.git] / include / wx / timer.h
index 7fff1bbdc33471e532f4af33e05b051135f16120..d6fcce73d0847a5a198f43db258f469b2b045e3d 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef _WX_TIMER_H_BASE_
 #define _WX_TIMER_H_BASE_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "timerbase.h"
 #endif
 
 // wxTimer
 // ----------------------------------------------------------------------------
 
+// more readable flags for Start():
+
+// generate notifications periodically until the timer is stopped (default)
+#define wxTIMER_CONTINUOUS FALSE
+
+// only send the notification once and then stop the timer
+#define wxTIMER_ONE_SHOT TRUE
+
 // the interface of wxTimer class
 class WXDLLEXPORT wxTimerBase : public wxObject
 {
@@ -95,6 +103,8 @@ protected:
 
     int     m_milli;        // the timer interval
     bool    m_oneShot;      // TRUE if one shot
+
+    DECLARE_NO_COPY_CLASS(wxTimerBase)
 };
 
 // ----------------------------------------------------------------------------
@@ -113,8 +123,6 @@ protected:
     #include "wx/mac/timer.h"
 #elif defined(__WXPM__)
     #include "wx/os2/timer.h"
-#elif defined(__WXSTUBS__)
-    #include "wx/stubs/timer.h"
 #endif
 
 // ----------------------------------------------------------------------------