Add wxRTTI for the wxFileSystemWatcherEvent class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user