Code::Blocks  SVN r11506
sdk_common.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef SDK_COMMON_H
7 #define SDK_COMMON_H
8 
9 //This file should be included only by sdk.h and sdk_precomp.h
10 //It includes all the common and necessary header files for precompilation.
11 
12 /*
13  * Enable backwards-compatibility for gcc 3.3 and lower.
14  * Although the compiler does not support precompiled headers, the build might still use them.
15  * We might significantly reduce the compile time for old compilers, by undefining CB_PRECOMP and thus
16  * not including every header file twice.
17  * This also allows us to reliably shortcut some includes for compilers that *do* support precompilation.
18  */
19 #if defined(__GNUC__) && !defined(__APPLE__)
20  #if ( (__GNUC__ < 3) || ( (__GNUC__ == 3) && (__GNUC_MINOR__ < 4) ) )
21  #undef CB_PRECOMP
22  #endif
23 #endif // __GNUC__ && !__APPLE__
24 
25 #if defined(NOPCH)
26  #undef CB_PRECOMP
27 #endif // NOPCH
28 
29 #if ( defined(CB_PRECOMP) && !defined(WX_PRECOMP) )
30  #define WX_PRECOMP
31 #endif // CB_PRECOMP
32 
33 // basic wxWidgets headers : this one itself will check for precompiled headers
34 // and if so will include a list of wx headers, at the bottom we add some more headers
35 // in the case of precompilation (note : some headers are in both lists)
36 // so even if NO CB_PRECOMP we can still have WX_PRECOMP turned on in this "wxprec" header
37 #include <wx/wxprec.h>
38 
39 #ifdef __BORLANDC__
40  #pragma hdrstop
41 #endif
42 
43 #include "prep.h" // this is deliberately not inside the #ifdef block
44 
45 #ifdef CB_PRECOMP
46 
47  // some common wxWidgets headers
48  #include <wx/app.h>
49  #include <wx/arrstr.h>
50  #include <wx/bmpbuttn.h>
51  #include <wx/button.h>
52  #include <wx/checkbox.h>
53  #include <wx/checklst.h>
54  #include <wx/choice.h>
55  #include <wx/choicdlg.h>
56  #include <wx/colordlg.h>
57  #include <wx/combobox.h>
58  #include <wx/confbase.h>
59  #include <wx/datetime.h>
60  #include <wx/dcclient.h>
61  #include <wx/dialog.h>
62  #include <wx/dir.h>
63  #include <wx/dynarray.h>
64  #include <wx/event.h>
65  #include <wx/file.h>
66  #include <wx/filedlg.h>
67  #include <wx/filename.h>
68  #include <wx/font.h>
69  #include <wx/frame.h>
70  #include <wx/fs_zip.h>
71  #include <wx/hashmap.h>
72  #include <wx/image.h>
73  #include <wx/imaglist.h>
74  #include <wx/intl.h>
75  #include <wx/list.h>
76  #include <wx/listbox.h>
77  #include <wx/listctrl.h>
78  #include <wx/log.h>
79  #include <wx/menu.h>
80  #include <wx/menuitem.h>
81  #include <wx/msgdlg.h>
82  #include <wx/notebook.h>
83  #include <wx/panel.h>
84  #include <wx/print.h>
85  #include <wx/process.h>
86  #include <wx/radiobox.h>
87  #include <wx/radiobut.h>
88  #include <wx/regex.h>
89  #include <wx/sizer.h>
90  #include <wx/slider.h>
91  #include <wx/socket.h>
92  #include <wx/spinctrl.h>
93  #include <wx/splitter.h>
94  #include <wx/statbmp.h>
95  #include <wx/stattext.h>
96  #include <wx/string.h>
97  #include <wx/textdlg.h>
98  #include <wx/textctrl.h>
99  #include <wx/thread.h>
100  #include <wx/timer.h>
101  #include <wx/toolbar.h>
102  #include <wx/treectrl.h>
103  #include <wx/txtstrm.h>
104  #include <wx/utils.h>
105  #include <wx/wfstream.h>
106  #include <wx/wxscintilla.h>
107  #include <wx/xrc/xmlres.h>
108 
109  // basic headers
110  #include "settings.h"
111  #include "globals.h"
112  #include "sdk_events.h"
113  #include "cbexception.h"
114 
115  // absolute base classes
116  #include "logger.h"
117  #include "editorbase.h"
118  #include "cbeditor.h"
119  #include "compileoptionsbase.h"
120  #include "compiletargetbase.h"
121  #include "projectbuildtarget.h"
122  #include "projectfile.h"
123  #include "cbplugin.h"
124  #include "cbproject.h"
125  #include "cbtool.h"
126  #include "cbworkspace.h"
127  #include "compilerfactory.h"
128  #include "compiler.h"
129  #include "workspaceloader.h"
130  #include "editorcolourset.h"
131  #include "pipedprocess.h"
132  #include "scrollingdialog.h"
133  #include "cbauibook.h"
134 
135 
136  // managers
137  #include "manager.h"
138  #include "configmanager.h"
139  #include "editormanager.h"
140  #include "logmanager.h"
141  #include "projectmanager.h"
142  #include "menuitemsmanager.h"
143  #include "scriptingmanager.h"
144  #include "toolsmanager.h"
145  #include "templatemanager.h"
146  #include "macrosmanager.h"
147  #include "pluginmanager.h"
148  #include "personalitymanager.h"
149  #include "uservarmanager.h"
150  #include "filemanager.h"
151 
152  // other base files
153  #include "xtra_res.h"
154  #include "safedelete.h"
155  #include "infowindow.h"
156  #include "licenses.h"
157 
158 #endif // CB_PRECOMP
159 
160 #endif // SDK_COMMON_H