git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57984
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+
+ The initial current path of this object will be empty
+ (i.e. GetPath() == wxEmptyString) which means that e.g. OpenFile()
+ or FindFirst() functions will use current working directory as
+ current path (see also wxGetCwd).
@class wxFSFile
This class represents a single file opened by wxFileSystem.
@class wxFSFile
This class represents a single file opened by wxFileSystem.
- It provides more information than wxWindow's input stream
+ It provides more informations than wxWidgets' input streams
(stream, filename, mime type, anchor).
@note Any pointer returned by a method of wxFSFile is valid only as long as
(stream, filename, mime type, anchor).
@note Any pointer returned by a method of wxFSFile is valid only as long as
ten identical pointers.
@library{wxbase}
ten identical pointers.
@library{wxbase}
@see wxFileSystemHandler, wxFileSystem, @ref overview_fs
*/
@see wxFileSystemHandler, wxFileSystem, @ref overview_fs
*/
wxHtmlHelpController ignores this call.
*/
wxHtmlHelpController ignores this call.
*/
- virtual bool LoadFile(const wxString& file = "");
+ virtual bool LoadFile(const wxString& file = wxEmptyString);
/**
Overrideable member called when this application's viewer is quit by the user.
/**
Overrideable member called when this application's viewer is quit by the user.
wxImage& operator=(const wxImage& image);
};
wxImage& operator=(const wxImage& image);
};
+/**
+ An instance of an empty image without an alpha channel.
+*/
+wxImage wxNullImage;
+
+
// ============================================================================
// Global functions/macros
// ============================================================================
// ============================================================================
// Global functions/macros
// ============================================================================
- /// User's default/preffered language as got from OS.
+ /// User's default/preferred language as got from OS.
wxLANGUAGE_DEFAULT,
/// Unknown language, returned if wxLocale::GetSystemLanguage fails.
wxLANGUAGE_DEFAULT,
/// Unknown language, returned if wxLocale::GetSystemLanguage fails.
/////////////////////////////////////////////////////////////////////////////
// Name: mediactrl.h
/////////////////////////////////////////////////////////////////////////////
// Name: mediactrl.h
-// Purpose: interface of wxMediaEvent
+// Purpose: interface of wxMediaEvent, wxMediaCtrl
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
The class holds XML resources from one or more .xml files, binary files or zip
archive files.
The class holds XML resources from one or more .xml files, binary files or zip
archive files.
+ Note that this is a singleton class and you'll never allocate/deallocate it.
+ Just use the static wxXmlResource::Get() getter.
+
@see @ref overview_xrc, @ref overview_xrcformat
@library{wxxrc}
@see @ref overview_xrc, @ref overview_xrcformat
@library{wxxrc}
/**
Loads resources from XML files that match given filemask.
/**
Loads resources from XML files that match given filemask.
- This method understands VFS (see filesys.h).
+
+ Example:
+ @code
+ if (!wxXmlResource::Get()->Load("rc/*.xrc"))
+ wxLogError("Couldn't load resources!");
+ @endcode
+
+ This method understands VFS (see wxFileSystem::FindFirst).
*/
bool Load(const wxString& filemask);
*/
bool Load(const wxString& filemask);
- wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
+ wxXmlResource::Get()->LoadDialog(&dlg, mainFrame, "my_dialog");
dlg.ShowModal();
@endcode
*/
dlg.ShowModal();
@endcode
*/