added wxUSE_FSVOLUME

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-24 00:19:01 +00:00
parent 20a1eea1fd
commit 05815ab32f
5 changed files with 37 additions and 3 deletions

View File

@@ -50,6 +50,14 @@
# endif # endif
#endif /* !defined(wxUSE_DYNLIB_CLASS) */ #endif /* !defined(wxUSE_DYNLIB_CLASS) */
#ifndef wxUSE_FSVOLUME
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_FSVOLUME
# else
# define wxUSE_FSVOLUME 0
# endif
#endif /* !defined(wxUSE_FSVOLUME) */
#ifndef wxUSE_DYNAMIC_LOADER #ifndef wxUSE_DYNAMIC_LOADER
# ifdef wxABORT_ON_CONFIG_ERROR # ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_DYNAMIC_LOADER must be defined." # error "wxUSE_DYNAMIC_LOADER must be defined."

View File

@@ -267,6 +267,13 @@
#define wxUSE_FILE 1 #define wxUSE_FILE 1
#define wxUSE_FFILE 1 #define wxUSE_FFILE 1
// Use wxFSVolume class providing access to the configured/active mount points
//
// Default is 1
//
// Recommended setting: 1 (but may be safely disabled if you don't use it)
#define wxUSE_FSVOLUME 1
// use wxTextBuffer class: required by wxTextFile // use wxTextBuffer class: required by wxTextFile
#define wxUSE_TEXTBUFFER 1 #define wxUSE_TEXTBUFFER 1

View File

@@ -20,6 +20,10 @@
#pragma interface "fsvolume.h" #pragma interface "fsvolume.h"
#endif #endif
#include "wx/defs.h"
#if wxUSE_FSVOLUME
// the volume flags // the volume flags
enum enum
{ {
@@ -49,6 +53,9 @@ enum wxFSVolumeKind
}; };
#if wxUSE_GUI #if wxUSE_GUI
#include "wx/icon.h"
enum wxFSIconType enum wxFSIconType
{ {
wxFS_VOL_ICO_SMALL = 0, wxFS_VOL_ICO_SMALL = 0,
@@ -57,10 +64,11 @@ enum wxFSIconType
wxFS_VOL_ICO_SEL_LARGE, wxFS_VOL_ICO_SEL_LARGE,
wxFS_VOL_ICO_MAX wxFS_VOL_ICO_MAX
}; };
#endif // wxUSE_GUI
WX_DECLARE_OBJARRAY(wxIcon, wxIconArray); WX_DECLARE_OBJARRAY(wxIcon, wxIconArray);
#endif // wxUSE_GUI
class WXDLLEXPORT wxFSVolume class WXDLLEXPORT wxFSVolume
{ {
public: public:
@@ -118,5 +126,7 @@ private:
}; };
#endif // wxUSE_FSVOLUME
#endif // _WX_FSVOLUME_H_ #endif // _WX_FSVOLUME_H_

View File

@@ -508,6 +508,11 @@
* Use wxFFile class * Use wxFFile class
*/ */
#define wxUSE_FFILE 0 #define wxUSE_FFILE 0
/*
* Use wxFSVolume class
*/
#define wxUSE_FSVOLUME 1
/* /*
* Use wxTextBuffer class * Use wxTextBuffer class
*/ */

View File

@@ -27,9 +27,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_FSVOLUME
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/icon.h> #include "wx/icon.h"
#include <wx/intl.h> #include "wx/intl.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/dir.h" #include "wx/dir.h"
@@ -586,3 +588,5 @@ wxIcon wxFSVolume::GetIcon(wxFSIconType type) const
#endif // wxUSE_GUI #endif // wxUSE_GUI
#endif // wxUSE_FSVOLUME