Remove unnecessary headers from wxPropertyGrid files

Currently there are included plenty of headers which are apparently not necessary.
This commit is contained in:
Artur Wieczorek
2019-08-04 20:15:01 +02:00
parent c623d9cfc5
commit eca1e857fe
16 changed files with 28 additions and 198 deletions

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_ADVPROPS_H_
#define _WX_PROPGRID_ADVPROPS_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/propgrid/props.h"
@@ -127,13 +125,6 @@ operator==(const wxColourPropertyValue&, const wxColourPropertyValue&);
DECLARE_VARIANT_OBJECT_EXPORTED(wxColourPropertyValue, WXDLLIMPEXP_PROPGRID)
// -----------------------------------------------------------------------
// Declare part of custom colour property macro pairs.
#if wxUSE_IMAGE
#include "wx/image.h"
#endif
// -----------------------------------------------------------------------
// Property representing wxFont.
@@ -282,6 +273,8 @@ class WXDLLIMPEXP_PROPGRID wxCursorProperty : public wxEnumProperty
#if wxUSE_IMAGE
WXDLLIMPEXP_PROPGRID const wxString& wxPGGetDefaultImageWildcard();
class WXDLLIMPEXP_FWD_CORE wxBitmap;
class WXDLLIMPEXP_FWD_CORE wxImage;
// Property representing image file(name).
class WXDLLIMPEXP_PROPGRID wxImageFileProperty : public wxFileProperty

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_EDITORS_H_
#define _WX_PROPGRID_EDITORS_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
class WXDLLIMPEXP_FWD_PROPGRID wxPGCell;

View File

@@ -11,21 +11,10 @@
#ifndef _WX_PROPGRID_MANAGER_H_
#define _WX_PROPGRID_MANAGER_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/propgrid/propgrid.h"
#include "wx/dcclient.h"
#include "wx/scrolwin.h"
#include "wx/toolbar.h"
#include "wx/stattext.h"
#include "wx/button.h"
#include "wx/textctrl.h"
#include "wx/dialog.h"
#include "wx/headerctrl.h"
// -----------------------------------------------------------------------
#ifndef SWIG
@@ -161,10 +150,13 @@ private:
// -----------------------------------------------------------------------
#if wxUSE_TOOLBAR
class wxToolBar;
#endif
#if wxUSE_HEADERCTRL
class wxPGHeaderCtrl;
#endif
class wxStaticText;
// wxPropertyGridManager is an efficient multi-page version of wxPropertyGrid,
// which can optionally have toolbar for mode and page selection, and help

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_PROPERTY_H_
#define _WX_PROPGRID_PROPERTY_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/propgrid/propgriddefs.h"

View File

@@ -11,16 +11,11 @@
#ifndef _WX_PROPGRID_PROPGRID_H_
#define _WX_PROPGRID_PROPGRID_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/thread.h"
#include "wx/dcclient.h"
#include "wx/dc.h"
#include "wx/control.h"
#include "wx/scrolwin.h"
#include "wx/tooltip.h"
#include "wx/datetime.h"
#include "wx/recguard.h"
#include "wx/time.h" // needed for wxMilliClock_t

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_PROPGRIDDEFS_H_
#define _WX_PROPGRID_PROPGRIDDEFS_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/dynarray.h"
@@ -22,7 +20,6 @@
#include "wx/variant.h"
#include "wx/any.h"
#include "wx/longlong.h"
#include "wx/clntdata.h"
#if wxUSE_STD_CONTAINERS
#include <numeric>

View File

@@ -11,8 +11,6 @@
#ifndef __WX_PROPGRID_PROPGRIDIFACE_H__
#define __WX_PROPGRID_PROPGRIDIFACE_H__
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/propgrid/property.h"

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_PROPGRIDPAGESTATE_H_
#define _WX_PROPGRID_PROPGRIDPAGESTATE_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
#include "wx/propgrid/property.h"

View File

@@ -11,8 +11,6 @@
#ifndef _WX_PROPGRID_PROPS_H_
#define _WX_PROPGRID_PROPS_H_
#include "wx/defs.h"
#if wxUSE_PROPGRID
// -----------------------------------------------------------------------
@@ -24,8 +22,6 @@ class wxPGArrayEditorDialog;
#include "wx/filename.h"
#include "wx/dialog.h"
#include "wx/textctrl.h"
#include "wx/button.h"
#include "wx/listbox.h"
#include "wx/valtext.h"
// -----------------------------------------------------------------------