]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/cocoa/evtloop.h
Add the correct dll export macros
[wxWidgets.git] / include / wx / osx / cocoa / evtloop.h
index d0040bd92056039af2617257e4efd9c318ec6241..c8b5d9e66641ad03054810a326e220cfb9da3ca3 100644 (file)
 #ifndef _WX_OSX_COCOA_EVTLOOP_H_
 #define _WX_OSX_COCOA_EVTLOOP_H_
 
-class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual
+class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
 {
 public:
     wxGUIEventLoop();
+    ~wxGUIEventLoop();
+    
+    void BeginModalSession( wxWindow* modalWindow );
+    
+    void EndModalSession();
 
-    // implement/override base class pure virtual
-    virtual bool Pending() const;
-    virtual bool Dispatch();
-    virtual int DispatchTimeout(unsigned long timeout);
+protected:
+    virtual int DoDispatchTimeout(unsigned long timeout);
 
-    virtual void WakeUp();
-    virtual bool YieldFor(long eventsToProcess);
+    virtual void DoRun();
 
-private:
-    double m_sleepTime;
+    virtual void DoStop();
+
+    virtual CFRunLoopRef CFGetCurrentRunLoop() const;
+    
+    void* m_modalSession;
+    WXWindow m_dummyWindow;
 };
 
 #endif // _WX_OSX_COCOA_EVTLOOP_H_