]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/log.h
override GetDefaultBorder() to return wxBORDER_NONE, radio buttons shouldn't have...
[wxWidgets.git] / include / wx / log.h
index adab3ceb5baa5169a231eaa8b3af890b107faa0a..a3cf858c4fa98be288b0c1693e29ef18ec11c228 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "wx/defs.h"
 
+#include "wx/thread.h"
+
 // ----------------------------------------------------------------------------
 // common constants for use in wxUSE_LOG/!wxUSE_LOG
 // ----------------------------------------------------------------------------
@@ -302,8 +304,9 @@ protected:
 #endif
 
     // log a message indicating the number of times the previous message was
-    // repeated; only does something if ms_prevCounter > 0
-    static void LogLastRepetitionCountIfNeeded();
+    // repeated if ms_prevCounter > 0, does nothing otherwise; return the old
+    // value of ms_prevCounter
+    unsigned LogLastRepetitionCountIfNeeded();
 
 private:
     // static variables
@@ -313,6 +316,7 @@ private:
     // with the number of times it was repeated
     static bool        ms_bRepetCounting;
 
+    wxCRIT_SECT_DECLARE(ms_prevCS);     // protects the ms_prev values below
     static wxString    ms_prevString;   // previous message that was logged
     static unsigned    ms_prevCounter;  // how many times it was repeated
     static time_t      ms_prevTimeStamp;// timestamp of the previous message