Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / tile_edit_qt / common.h
blob6cafbbd8abbd3ca969de8693a7d8cd159f3bd90d
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef COMMON_H
18 #define COMMON_H
20 #if defined(_MSC_VER) && defined(_DEBUG)
21 #define _CRTDBG_MAP_ALLOC
22 #include <stdlib.h>
23 #include <crtdbg.h>
24 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
25 #undef realloc
26 #undef free
27 #endif
29 #include <QtCore/QtCore>
30 #include <QtGui/QtGui>
32 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
33 #define USE_QT5
34 #endif
36 #ifdef USE_QT5
37 #include <QtWidgets/QtWidgets>
38 #include <QtConcurrent/QtConcurrent>
39 #endif
41 #include <string>
43 #include <nel/misc/types_nl.h>
44 #include <nel/3d/tile_bank.h>
45 #include <nel/misc/stream.h>
46 #include <nel/misc/file.h>
47 #include <nel/misc/app_context.h>
48 #include <nel/misc/bitmap.h>
50 #endif