]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/calctrl.h
wchar_t is now always required, updated chartype.h check accordingly
[wxWidgets.git] / include / wx / calctrl.h
index 12e715781e35f37ec4f49642e6e9120ce4f7cb56..b4144a2d1b7d1c115464b273e59a3d77156ff2cb 100644 (file)
@@ -297,12 +297,20 @@ public:
 
     // implementation only from now on
 
-    // generate the given calendar event(s)
-    void GenerateEvent(wxEventType type)
+    // generate the given calendar event, return true if it was processed
+    //
+    // NB: this is public because it's used from GTK+ callbacks
+    bool GenerateEvent(wxEventType type)
     {
         wxCalendarEvent event(this, GetDate(), type);
-        HandleWindowEvent(event);
+        return HandleWindowEvent(event);
     }
+
+protected:
+    // generate all the events for the selection change from dateOld to current
+    // date: SEL_CHANGED, PAGE_CHANGED if necessary and also one of (deprecated)
+    // YEAR/MONTH/DAY_CHANGED ones
+    void GenerateAllChangeEvents(const wxDateTime& dateOld);
 };
 
 // ----------------------------------------------------------------------------