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 /* !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
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_DYNAMIC_LOADER must be defined."

View File

@@ -267,6 +267,13 @@
#define wxUSE_FILE 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
#define wxUSE_TEXTBUFFER 1

View File

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

View File

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

View File

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