git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14383
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# 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."
#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
#pragma interface "fsvolume.h"
#endif
+#include "wx/defs.h"
+
+#if wxUSE_FSVOLUME
+
// the volume flags
enum
{
};
#if wxUSE_GUI
+
+#include "wx/icon.h"
+
enum wxFSIconType
{
wxFS_VOL_ICO_SMALL = 0,
wxFS_VOL_ICO_SEL_LARGE,
wxFS_VOL_ICO_MAX
};
-#endif // wxUSE_GUI
WX_DECLARE_OBJARRAY(wxIcon, wxIconArray);
+#endif // wxUSE_GUI
+
class WXDLLEXPORT wxFSVolume
{
public:
};
+#endif // wxUSE_FSVOLUME
+
#endif // _WX_FSVOLUME_H_
* Use wxFFile class
*/
#define wxUSE_FFILE 0
+/*
+ * Use wxFSVolume class
+ */
+#define wxUSE_FSVOLUME 1
+
/*
* Use wxTextBuffer class
*/
#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"
#endif // wxUSE_GUI
+#endif // wxUSE_FSVOLUME
+