/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/memtext.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/memtext.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1530 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/memtext.h
3 // Purpose: wxMemoryText allows to use wxTextBuffer without a file
4 // Created: 14.11.01
5 // Author: Morten Hanssen
6 // Copyright: (c) 2001 Morten Hanssen
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_MEMTEXT_H
11 #define _WX_MEMTEXT_H
12
13 #include "wx/defs.h"
14
15 // there is no separate setting for wxMemoryText, it's smallish anyhow
16 #if wxUSE_TEXTBUFFER
17
18 // ----------------------------------------------------------------------------
19 // wxMemoryText
20 // ----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_BASE wxMemoryText : public wxTextBuffer
23 {
24 public:
25 // Constructors.
26 wxMemoryText() { }
27 wxMemoryText(const wxString& name) : wxTextBuffer(name) { }
28
29 protected:
30 virtual bool OnExists() const
31 { return false; }
32
33 virtual bool OnOpen(const wxString & WXUNUSED(strBufferName),
34 wxTextBufferOpenMode WXUNUSED(OpenMode))
35 { return true; }
36
37 virtual bool OnClose()
38 { return true; }
39
40 virtual bool OnRead(const wxMBConv& WXUNUSED(conv))
41 { return true; }
42
43 virtual bool OnWrite(wxTextFileType WXUNUSED(typeNew),
44 const wxMBConv& WXUNUSED(conv) = wxConvUTF8)
45 { return true; }
46
47 private:
48 DECLARE_NO_COPY_CLASS(wxMemoryText)
49 };
50
51 #endif // wxUSE_TEXTBUFFER
52
53 #endif // _WX_MEMTEXT_H
54

  ViewVC Help
Powered by ViewVC 1.1.22