/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/src/common/clipcmn.cpp
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/src/common/clipcmn.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 3 months ago) by william
File size: 1765 byte(s)
committing r3113 initial commit again...
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/clipcmn.cpp
3 // Purpose: common (to all ports) wxClipboard functions
4 // Author: Robert Roebling
5 // Modified by:
6 // Created: 28.06.99
7 // RCS-ID: $Id: clipcmn.cpp 40943 2006-08-31 19:31:43Z ABX $
8 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_CLIPBOARD
28
29 #include "wx/clipbrd.h"
30
31 #ifndef WX_PRECOMP
32 #include "wx/module.h"
33 #endif
34
35 static wxClipboard *gs_clipboard = NULL;
36
37 /*static*/ wxClipboard *wxClipboardBase::Get()
38 {
39 if ( !gs_clipboard )
40 {
41 gs_clipboard = new wxClipboard;
42 }
43 return gs_clipboard;
44 }
45
46 // ----------------------------------------------------------------------------
47 // wxClipboardModule: module responsible for destroying the global clipboard
48 // object
49 // ----------------------------------------------------------------------------
50
51 class wxClipboardModule : public wxModule
52 {
53 public:
54 bool OnInit() { return true; }
55 void OnExit() { wxDELETE(gs_clipboard); }
56
57 private:
58 DECLARE_DYNAMIC_CLASS(wxClipboardModule)
59 };
60
61 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule, wxModule)
62
63 #endif // wxUSE_CLIPBOARD

  ViewVC Help
Powered by ViewVC 1.1.22