Remove unnecessary headers from wxPropertyGrid files
Currently there are included plenty of headers which are apparently not necessary.
This commit is contained in:
@@ -18,33 +18,8 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/choice.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/textctrl.h"
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/dirdlg.h"
|
||||
#include "wx/combobox.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/textdlg.h"
|
||||
#include "wx/filedlg.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/wxcrtvararg.h"
|
||||
#endif
|
||||
|
||||
@@ -56,13 +31,7 @@
|
||||
|
||||
#include "wx/propgrid/advprops.h"
|
||||
|
||||
#ifdef __WXMSW__
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/msw/dc.h"
|
||||
#endif
|
||||
|
||||
#include "wx/odcombo.h"
|
||||
#include "wx/numformatter.h"
|
||||
|
||||
// Drawing ARGB on standard DC is supported by OSX and GTK3
|
||||
#if defined(__WXOSX__) || defined(__WXGTK3__)
|
||||
@@ -75,7 +44,10 @@
|
||||
|
||||
#if wxPG_USE_GC_FOR_ALPHA
|
||||
#include "wx/dcgraph.h"
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcclient.h" // for wxDynamicCast purposes
|
||||
#include "wx/dcmemory.h" // for wxDynamicCast purposes
|
||||
#endif // WX_PRECOMP
|
||||
#if wxUSE_METAFILE
|
||||
#include "wx/metafile.h" // for wxDynamicCast purposes
|
||||
#endif // wxUSE_METAFILE
|
||||
|
@@ -18,41 +18,12 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/choice.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/dirdlg.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/textdlg.h"
|
||||
#include "wx/filedlg.h"
|
||||
#include "wx/statusbr.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/textctrl.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include "wx/timer.h"
|
||||
#include "wx/dcbuffer.h"
|
||||
#include "wx/bmpbuttn.h"
|
||||
|
||||
#include "wx/odcombo.h"
|
||||
|
||||
// This define is necessary to prevent macro clearing
|
||||
#define __wxPG_SOURCE_FILE__
|
||||
@@ -74,8 +45,6 @@
|
||||
|
||||
#define wxPG_BUTTON_SIZEDEC 0
|
||||
|
||||
#include "wx/odcombo.h"
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
|
@@ -18,32 +18,18 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/textctrl.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/statusbr.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/toolbar.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcbuffer.h" // for wxALWAYS_NATIVE_DOUBLE_BUFFER
|
||||
#include "wx/headerctrl.h" // for wxPGHeaderCtrl
|
||||
|
||||
// This define is necessary to prevent macro clearing
|
||||
#define __wxPG_SOURCE_FILE__
|
||||
|
||||
#include "wx/propgrid/propgrid.h"
|
||||
|
||||
#include "wx/propgrid/manager.h"
|
||||
|
||||
|
||||
|
@@ -18,25 +18,9 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/math.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
// This define is necessary to prevent macro clearing
|
||||
#define __wxPG_SOURCE_FILE__
|
||||
|
||||
|
@@ -18,25 +18,13 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/validate.h"
|
||||
#endif
|
||||
|
||||
#include "wx/propgrid/property.h"
|
||||
#include "wx/propgrid/propgrid.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -18,20 +18,12 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/stopwatch.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/validate.h"
|
||||
#endif
|
||||
|
||||
// This define is necessary to prevent macro clearing
|
||||
@@ -39,7 +31,6 @@
|
||||
|
||||
#include "wx/propgrid/propgridpagestate.h"
|
||||
#include "wx/propgrid/propgrid.h"
|
||||
#include "wx/propgrid/editors.h"
|
||||
|
||||
#define wxPG_DEFAULT_SPLITTERX 110
|
||||
|
||||
|
@@ -18,41 +18,16 @@
|
||||
#if wxUSE_PROPGRID
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/bmpbuttn.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/choice.h"
|
||||
#include "wx/stattext.h"
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/dirdlg.h"
|
||||
#include "wx/combobox.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/textdlg.h"
|
||||
#include "wx/filedlg.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/stattext.h"
|
||||
#endif
|
||||
|
||||
#include "wx/filename.h"
|
||||
#include "wx/numformatter.h"
|
||||
|
||||
#include "wx/propgrid/propgrid.h"
|
||||
#include "wx/numformatter.h"
|
||||
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
|
Reference in New Issue
Block a user