projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new native toolbar implementation (turned off by default, not supporting embedded...
[wxWidgets.git]
/
include
/
wx
/
filesys.h
diff --git
a/include/wx/filesys.h
b/include/wx/filesys.h
index f763f48579808286288441cf3f982b91d76612ca..99dba2e96c2de6527b71b6d4df14e207a9203792 100644
(file)
--- a/
include/wx/filesys.h
+++ b/
include/wx/filesys.h
@@
-4,17
+4,17
@@
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
// RCS-ID: $Id$
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
// RCS-ID: $Id$
-// Licence: wxWindows
L
icence
+// Licence: wxWindows
l
icence
/////////////////////////////////////////////////////////////////////////////
#ifndef __FILESYS_H__
#define __FILESYS_H__
/////////////////////////////////////////////////////////////////////////////
#ifndef __FILESYS_H__
#define __FILESYS_H__
-#if defined(__GNUG__) && !defined(
__APPLE__
)
+#if defined(__GNUG__) && !defined(
NO_GCC_PRAGMA
)
#pragma interface "filesys.h"
#endif
#pragma interface "filesys.h"
#endif
-#include "wx/
setup
.h"
+#include "wx/
defs
.h"
#if !wxUSE_STREAMS
#error You cannot compile virtual file systems without wxUSE_STREAMS
#if !wxUSE_STREAMS
#error You cannot compile virtual file systems without wxUSE_STREAMS
@@
-27,13
+27,12
@@
#if wxUSE_FILESYSTEM
#include "wx/stream.h"
#if wxUSE_FILESYSTEM
#include "wx/stream.h"
-#include "wx/url.h"
#include "wx/datetime.h"
#include "wx/filename.h"
#include "wx/datetime.h"
#include "wx/filename.h"
-class wxFSFile;
-class wxFileSystemHandler;
-class wxFileSystem;
+class
WXDLLIMPEXP_BASE
wxFSFile;
+class
WXDLLIMPEXP_BASE
wxFileSystemHandler;
+class
WXDLLIMPEXP_BASE
wxFileSystem;
//--------------------------------------------------------------------------------
// wxFSFile
//--------------------------------------------------------------------------------
// wxFSFile
@@
-108,7
+107,7
@@
class WXDLLIMPEXP_BASE wxFileSystemHandler : public wxObject
public:
wxFileSystemHandler() : wxObject() {}
public:
wxFileSystemHandler() : wxObject() {}
- // returns
TRUE
if this handler is able to open given location
+ // returns
true
if this handler is able to open given location
virtual bool CanOpen(const wxString& location) = 0;
// opens given file and returns pointer to input stream.
virtual bool CanOpen(const wxString& location) = 0;
// opens given file and returns pointer to input stream.
@@
-160,16
+159,16
@@
protected:
class WXDLLIMPEXP_BASE wxFileSystem : public wxObject
{
public:
class WXDLLIMPEXP_BASE wxFileSystem : public wxObject
{
public:
- wxFileSystem() : wxObject() {
m_Path = m_LastName = wxEmptyString;
m_FindFileHandler = NULL;}
-
~wxFileSystem() { WX_CLEAR_LIST(wxList, m_Handlers);
}
+ wxFileSystem() : wxObject() { m_FindFileHandler = NULL;}
+
virtual ~wxFileSystem() {
}
// sets the current location. Every call to OpenFile is
// relative to this location.
// NOTE !!
// sets the current location. Every call to OpenFile is
// relative to this location.
// NOTE !!
- // unless is_dir =
TRUE
'location' is *not* the directory but
+ // unless is_dir =
true
'location' is *not* the directory but
// file contained in this directory
// (so ChangePathTo("dir/subdir/xh.htm") sets m_Path to "dir/subdir/")
// file contained in this directory
// (so ChangePathTo("dir/subdir/xh.htm") sets m_Path to "dir/subdir/")
- void ChangePathTo(const wxString& location, bool is_dir =
FALSE
);
+ void ChangePathTo(const wxString& location, bool is_dir =
false
);
wxString GetPath() const {return m_Path;}
wxString GetPath() const {return m_Path;}
@@
-187,7
+186,7
@@
public:
wxString FindNext();
// Adds FS handler.
wxString FindNext();
// Adds FS handler.
- // In fact, this class is only front-end to the FS hanlers :-)
+ // In fact, this class is only front-end to the FS han
d
lers :-)
static void AddHandler(wxFileSystemHandler *handler);
// remove all items from the m_Handlers list
static void AddHandler(wxFileSystemHandler *handler);
// remove all items from the m_Handlers list