1
//////////////////////////////////////////////////////////////////////////////
3
// Purpose: wxGenericFileDialog stub to include the wxWidget's source file by the same name
4
// Author: John Labenski
8
// Copyright: (c) John Labenski
9
// Licence: wxWindows licence
10
/////////////////////////////////////////////////////////////////////////////
12
// wxWidgets does not compile wxWidgets/src/generic/filedlgg.cpp into the
13
// library in MSW. In Linux/OSX wxWidgets does use the generic filedialog.
14
// This file will include the source in wxWidgets/src/generic/filedlgg.cpp
15
// only on platforms that do not already have it compiled into the wxWidgets lib.
17
// NOTE: MSVC cannot use environment var $(WXWIN)/src/generic/filedlgg.cpp in
18
// their project files to allow you to compile the generic file dialog.
19
// You have to specify the relative or absolute path to the wxWidgets
20
// distribution which is annoying since everyone will probably have it in a
21
// different place. By #including the source from this file we can avoid this
22
// and use the $(WXWIN) environment var in the -I include path.
26
#include "wx/things/thingdef.h"
29
#include <wx/filedlg.h> // Will include "wx/generic/filedlgg.h" on platforms that use it
30
#include <wx/volume.h> // wxFSVolumeBase
31
#include "wx/generic/dirctrlg.h" // wxFileIconsTable
33
// We don't need to #include this file here
34
//#include "wx/generic/filedlgg.h"
35
// and if we didn't include the generic filedlgg.h then include the source here
37
#ifndef _WX_FILEDLGG_H_ // header guard of "wx/generic/filedlgg.h"
39
// Typically we have $(WXWIN)/include in the search path so this should
40
// find the path to filedlgg correctly.
41
#include "../src/generic/filedlgg.cpp"
43
// --------------------------------------------------------------------------
44
// DO NOT DELETE : Cmake will configure this file and replace the marker below.
45
// @CMAKE_CONFIGURE_WXTHINGS_FILEDLGG@
48
#endif //_WX_FILEDLGG_H_