Do not #include an header where a forward declaration suffixes. Do not

include wx/wx.h directly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-02-03 20:56:40 +00:00
parent ff7d1dcb82
commit 00dd3b1897
13 changed files with 42 additions and 34 deletions

View File

@@ -16,9 +16,11 @@
#endif #endif
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/gdicmn.h" #include "wx/list.h"
#include "wx/bitmap.h"
#include "wx/dc.h" class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxBitmap;
class WXDLLEXPORT wxColour;
/* /*
* wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to * wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to

View File

@@ -18,10 +18,8 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "wx/dynarray.h"
#include "wx/event.h" #include "wx/event.h"
#include "wx/control.h" #include "wx/control.h"
#include "wx/generic/tabg.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// types // types
@@ -30,30 +28,12 @@
// fwd declarations // fwd declarations
class WXDLLEXPORT wxImageList; class WXDLLEXPORT wxImageList;
class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxTabView;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxNotebook // wxNotebook
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxNotebook;
// This reuses wxTabView to draw the tabs.
class WXDLLEXPORT wxNotebookTabView: public wxTabView
{
DECLARE_DYNAMIC_CLASS(wxNotebookTabView)
public:
wxNotebookTabView(wxNotebook* notebook, long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
~wxNotebookTabView(void);
// Called when a tab is activated
virtual void OnTabActivate(int activateId, int deactivateId);
// Allows vetoing
virtual bool OnTabPreActivate(int activateId, int deactivateId);
protected:
wxNotebook* m_notebook;
};
class wxNotebook : public wxNotebookBase class wxNotebook : public wxNotebookBase
{ {
public: public:

View File

@@ -17,6 +17,7 @@
#endif #endif
#include "wx/button.h" #include "wx/button.h"
#include "wx/bitmap.h"
WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;

View File

@@ -17,7 +17,6 @@
#endif #endif
#include "wx/control.h" #include "wx/control.h"
#include "wx/gdicmn.h"
WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;

View File

@@ -17,11 +17,7 @@
#endif #endif
#include "wx/bitmap.h" #include "wx/bitmap.h"
#if wxUSE_IMAGE #include "wx/list.h"
#include "wx/image.h"
#endif
/* Cursor for one display, so we can choose the correct one for /* Cursor for one display, so we can choose the correct one for
* the current display. * the current display.

View File

@@ -19,6 +19,9 @@
#if wxUSE_PROPSHEET #if wxUSE_PROPSHEET
#include "wx/prop.h" #include "wx/prop.h"
#include "wx/panel.h"
class WXDLLEXPORT wxPropertyFormView;
//// ////
//// Property form classes: for using an existing dialog or panel //// Property form classes: for using an existing dialog or panel

View File

@@ -21,7 +21,6 @@
#if defined(__WXMGL__) || defined(__WXMAC__) || defined(__WXMOTIF__) #if defined(__WXMGL__) || defined(__WXMAC__) || defined(__WXMOTIF__)
#include "wx/wx.h"
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/palette.h" #include "wx/palette.h"

View File

@@ -21,6 +21,7 @@
#include "wx/generic/imaglist.h" #include "wx/generic/imaglist.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/dc.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxImageList // wxImageList

View File

@@ -33,6 +33,7 @@
#include "wx/generic/imaglist.h" #include "wx/generic/imaglist.h"
#include "wx/notebook.h" #include "wx/notebook.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/generic/tabg.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// macros // macros
@@ -65,6 +66,27 @@ IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxCommandEvent)
// implementation // implementation
// ============================================================================ // ============================================================================
// ============================================================================
// Private class
// ============================================================================
// This reuses wxTabView to draw the tabs.
class WXDLLEXPORT wxNotebookTabView: public wxTabView
{
DECLARE_DYNAMIC_CLASS(wxNotebookTabView)
public:
wxNotebookTabView(wxNotebook* notebook, long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
~wxNotebookTabView(void);
// Called when a tab is activated
virtual void OnTabActivate(int activateId, int deactivateId);
// Allows vetoing
virtual bool OnTabPreActivate(int activateId, int deactivateId);
protected:
wxNotebook* m_notebook;
};
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxNotebook construction // wxNotebook construction
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -23,9 +23,12 @@
#if wxUSE_PROPSHEET #if wxUSE_PROPSHEET
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/choice.h"
#include "wx/checkbox.h"
#include "wx/slider.h"
#include "wx/msgdlg.h"
#endif #endif
#include "wx/wx.h"
#include "wx/propform.h" #include "wx/propform.h"
#include <ctype.h> #include <ctype.h>

View File

@@ -23,7 +23,8 @@
#if wxUSE_TAB_DIALOG #if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/settings.h"
#include "wx/intl.h"
#endif #endif
#include <stdio.h> #include <stdio.h>

View File

@@ -18,6 +18,7 @@
#define XtWindow XTWINDOW #define XtWindow XTWINDOW
#endif #endif
#include "wx/tab.h"
#include "wx/mdi.h" #include "wx/mdi.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/settings.h" #include "wx/settings.h"

View File

@@ -25,7 +25,7 @@
#define XtDisplay XTDISPLAY #define XtDisplay XTDISPLAY
#endif #endif
#include "wx/wx.h" #include "wx/settings.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/toolbar.h" #include "wx/toolbar.h"