git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52645
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
It's normally the same for wxBase and wxGUI except in the case of wxMac
and wxCocoa.
*/
It's normally the same for wxBase and wxGUI except in the case of wxMac
and wxCocoa.
*/
- virtual wxStandardPaths GetStandardPaths();
+ virtual wxStandardPaths& GetStandardPaths();
/**
Returns the wxWidgets port ID used by the running program and eventually
/**
Returns the wxWidgets port ID used by the running program and eventually
/**
Closes the archive, returning @true if it was successfully written.
Called by the destructor if not called explicitly.
/**
Closes the archive, returning @true if it was successfully written.
Called by the destructor if not called explicitly.
+
+ @see wxOutputStream::Close()
/**
Close the current entry.
It is called implicitly whenever another new entry is created with CopyEntry()
or PutNextEntry(), or when the archive is closed.
*/
/**
Close the current entry.
It is called implicitly whenever another new entry is created with CopyEntry()
or PutNextEntry(), or when the archive is closed.
*/
+ virtual bool CloseEntry();
/**
Some archive formats have additional meta-data that applies to the archive
/**
Some archive formats have additional meta-data that applies to the archive
in which case the two streams set up a link and transfer the data
when it becomes available.
*/
in which case the two streams set up a link and transfer the data
when it becomes available.
*/
- bool CopyArchiveMetaData(wxArchiveInputStream& stream);
+ virtual bool CopyArchiveMetaData(wxArchiveInputStream& stream);
/**
Takes ownership of @a entry and uses it to create a new entry in the
/**
Takes ownership of @a entry and uses it to create a new entry in the
accessing. For non-seekable streams, @a entry must also be the last
thing read from @e stream.
*/
accessing. For non-seekable streams, @a entry must also be the last
thing read from @e stream.
*/
- bool CopyEntry(wxArchiveEntry* entry,
- wxArchiveInputStream& stream);
+ virtual bool CopyEntry(wxArchiveEntry* entry,
+ wxArchiveInputStream& stream);
/**
Create a new directory entry (see wxArchiveEntry::IsDir) with the given
/**
Create a new directory entry (see wxArchiveEntry::IsDir) with the given
PutNextEntry() can also be used to create directory entries, by supplying
a name with a trailing path separator.
*/
PutNextEntry() can also be used to create directory entries, by supplying
a name with a trailing path separator.
*/
- bool PutNextDirEntry(const wxString& name);
+ virtual bool PutNextDirEntry(const wxString& name,
+ const wxDateTime& dt = wxDateTime::Now());
/**
Takes ownership of entry and uses it to create a new entry in the archive.
The entry's data can then be written by writing to this wxArchiveOutputStream.
*/
/**
Takes ownership of entry and uses it to create a new entry in the archive.
The entry's data can then be written by writing to this wxArchiveOutputStream.
*/
- bool PutNextEntry(wxArchiveEntry* entry);
+ virtual bool PutNextEntry(wxArchiveEntry* entry);
/**
Create a new entry with the given name, timestamp and size. The entry's
data can then be written by writing to this wxArchiveOutputStream.
*/
/**
Create a new entry with the given name, timestamp and size. The entry's
data can then be written by writing to this wxArchiveOutputStream.
*/
- bool PutNextEntry(const wxString& name, const wxDateTime& dt = wxDateTime::Now(),
- off_t size = wxInvalidOffset);
+ virtual bool PutNextEntry(const wxString& name,
+ const wxDateTime& dt = wxDateTime::Now(),
+ wxFileOffset size = wxInvalidOffset);
/**
Gets the entry's timestamp.
*/
/**
Gets the entry's timestamp.
*/
- wxDateTime GetDateTime();
+ virtual wxDateTime GetDateTime() const;
/**
Sets the entry's timestamp.
*/
/**
Sets the entry's timestamp.
*/
- const void SetDateTime(const wxDateTime& dt);
+ virtual void SetDateTime(const wxDateTime& dt);
/**
Returns the entry's name, by default in the native format.
/**
Returns the entry's name, by default in the native format.
If this is a directory entry, (i.e. if IsDir() is @true) then the
returned string is the name with a trailing path separator.
*/
If this is a directory entry, (i.e. if IsDir() is @true) then the
returned string is the name with a trailing path separator.
*/
- wxString GetName(wxPathFormat format = wxPATH_NATIVE);
+ virtual wxString GetName(wxPathFormat format = wxPATH_NATIVE) const;
/**
Sets the entry's name.
/**
Sets the entry's name.
- const void SetName(const wxString& name,
- wxPathFormat format = wxPATH_NATIVE);
+ virtual void SetName(const wxString& name,
+ wxPathFormat format = wxPATH_NATIVE);
/**
Returns the size of the entry's data in bytes.
*/
/**
Returns the size of the entry's data in bytes.
*/
+ virtual wxFileOffset GetSize() const;
/**
Sets the size of the entry's data in bytes.
*/
/**
Sets the size of the entry's data in bytes.
*/
- const void SetSize(off_t size);
+ virtual void SetSize(wxFileOffset size);
/**
Returns the path format used internally within the archive to store
filenames.
*/
/**
Returns the path format used internally within the archive to store
filenames.
*/
- wxPathFormat GetInternalFormat() const;
+ virtual wxPathFormat GetInternalFormat() const;
/**
Returns the entry's filename in the internal format used within the
/**
Returns the entry's filename in the internal format used within the
@see @ref overview_archive_byname
*/
@see @ref overview_archive_byname
*/
- wxString GetInternalName() const;
+ virtual wxString GetInternalName() const;
/**
Returns a numeric value unique to the entry within the archive.
*/
/**
Returns a numeric value unique to the entry within the archive.
*/
- off_t GetOffset() const;
+ virtual wxFileOffset GetOffset() const;
/**
Returns @true if this is a directory entry.
/**
Returns @true if this is a directory entry.
unarchivers typically create whatever directories are necessary as they
restore files, even if the archive contains no explicit directory entries.
*/
unarchivers typically create whatever directories are necessary as they
restore files, even if the archive contains no explicit directory entries.
*/
+ virtual bool IsDir() const;
/**
Marks this entry as a directory if @a isDir is @true. See IsDir() for more info.
*/
/**
Marks this entry as a directory if @a isDir is @true. See IsDir() for more info.
*/
- const void SetIsDir(bool isDir = true);
+ virtual void SetIsDir(bool isDir = true);
/**
Returns @true if the entry is a read-only file.
*/
/**
Returns @true if the entry is a read-only file.
*/
+ virtual bool IsReadOnly() const;
/**
Sets this entry as a read-only file.
*/
/**
Sets this entry as a read-only file.
*/
- const void SetIsReadOnly(bool isReadOnly = true);
+ virtual void SetIsReadOnly(bool isReadOnly = true);
/**
Sets the notifier (see wxArchiveNotifier) for this entry.
/**
Sets the notifier (see wxArchiveNotifier) for this entry.
/**
Unsets the notifier eventually attached to this entry.
*/
/**
Unsets the notifier eventually attached to this entry.
*/
+ virtual void UnsetNotifier();
replace standard art with their own version.
All that is needed is to derive a class from wxArtProvider, override either its
replace standard art with their own version.
All that is needed is to derive a class from wxArtProvider, override either its
- wxArtProvider::CreateBitmap and/or its wxArtProvider::CreateIconBundle methods
- and register the provider with wxArtProvider::Push:
+ wxArtProvider::CreateBitmap() and/or its wxArtProvider::CreateIconBundle() methods
+ and register the provider with wxArtProvider::Push():
@code
class MyProvider : public wxArtProvider
@code
class MyProvider : public wxArtProvider
@see CreateIconBundle()
*/
@see CreateIconBundle()
*/
- wxBitmap CreateBitmap(const wxArtID& id,
- const wxArtClient& client,
- const wxSize& size);
+ virtual wxBitmap CreateBitmap(const wxArtID& id,
+ const wxArtClient& client,
+ const wxSize& size);
/**
This method is similar to CreateBitmap() but can be used when a bitmap
/**
This method is similar to CreateBitmap() but can be used when a bitmap