]> git.saurik.com Git - wxWidgets.git/blob - src/common/appcmn.cpp
added wxDataObject related files and regenerated the makefiles
[wxWidgets.git] / src / common / appcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: common/appcmn.cpp
3 // Purpose: wxAppBase methods common to all platforms
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 18.10.99
7 // RCS-ID: $Id$
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ---------------------------------------------------------------------------
17 // headers
18 // ---------------------------------------------------------------------------
19
20 #ifdef __GNUG__
21 #pragma implementation "appbase.h"
22 #endif
23
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
26
27 #if defined(__BORLANDC__)
28 #pragma hdrstop
29 #endif
30
31 #ifndef WX_PRECOMP
32 #include "wx/app.h"
33 #endif
34
35 #include "wx/thread.h"
36 #include "wx/clipbrd.h"
37
38 // ===========================================================================
39 // implementation
40 // ===========================================================================
41
42 // ----------------------------------------------------------------------------
43 // some global data defined here
44 // ----------------------------------------------------------------------------
45
46 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule, wxModule)
47
48 // ---------------------------------------------------------------------------
49 // wxAppBase
50 // ----------------------------------------------------------------------------
51
52 void wxAppBase::ProcessPendingEvents()
53 {
54 // ensure that we're the only thread to modify the pending events list
55 wxCRIT_SECT_LOCKER(locker, wxPendingEventsLocker);
56
57 if ( !wxPendingEvents )
58 return;
59
60 // iterate until the list becomes empty
61 wxNode *node = wxPendingEvents->First();
62 while (node)
63 {
64 wxEvtHandler *handler = (wxEvtHandler *)node->Data();
65
66 handler->ProcessPendingEvents();
67
68 delete node;
69 node = wxPendingEvents->First();
70 }
71 }
72