]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxRTTI for the wxFileSystemWatcherEvent class
authorRobin Dunn <robin@alldunn.com>
Fri, 24 May 2013 16:05:33 +0000 (16:05 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 24 May 2013 16:05:33 +0000 (16:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/fswatcher.h
interface/wx/fswatcher.h
src/common/fswatchercmn.cpp

index 964b37bd2aa8e9b39a629801fadb475abe56b59c..ebbf1467346e314bbba54ce031cb902d8ed4653d 100644 (file)
@@ -78,7 +78,7 @@ wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_BASE, wxEVT_FSWATCHER,
 class WXDLLIMPEXP_BASE wxFileSystemWatcherEvent: public wxEvent
 {
 public:
-    wxFileSystemWatcherEvent(int changeType, int watchid = wxID_ANY) :
+    wxFileSystemWatcherEvent(int changeType = 0, int watchid = wxID_ANY) :
         wxEvent(watchid, wxEVT_FSWATCHER),
         m_changeType(changeType)
     {
@@ -179,6 +179,8 @@ protected:
     wxFileName m_path;
     wxFileName m_newPath;
     wxString m_errorMsg;
+private:
+    DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFileSystemWatcherEvent)
 };
 
 typedef void (wxEvtHandler::*wxFileSystemWatcherEventFunction)
index 5857d69260779f2a68faa15b3b94a13db30a1a98..fde8902515e71ee42ace80f616aba70d6fe808ff 100644 (file)
@@ -157,7 +157,7 @@ public:
 class wxFileSystemWatcherEvent : public wxEvent
 {
 public:
-    wxFileSystemWatcherEvent(int changeType, int watchid = wxID_ANY);
+    wxFileSystemWatcherEvent(int changeType = 0, int watchid = wxID_ANY);
     wxFileSystemWatcherEvent(int changeType, const wxString& errorMsg,
                              int watchid = wxID_ANY);
     wxFileSystemWatcherEvent(int changeType,
index 51d9d578f8687052ea57d931772ae3116c691586..a417a82ee7146b9d34048d3a6d0f0430b5ab962e 100644 (file)
@@ -62,6 +62,8 @@ static wxString GetFSWEventChangeTypeName(int type)
 // wxFileSystemWatcherEvent implementation
 // ============================================================================
 
+IMPLEMENT_DYNAMIC_CLASS(wxFileSystemWatcherEvent, wxEvent);
+
 wxString wxFileSystemWatcherEvent::ToString() const
 {
     return wxString::Format("FSW_EVT type=%d (%s) path='%s'", m_changeType,