]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/StdAfx.h
* fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialize...
[xonotic/netradiant.git] / contrib / bobtoolz / StdAfx.h
1 /*
2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20 #ifndef __STDAFX_BOBTOOLZ__
21 #define __STDAFX_BOBTOOLZ__
22
23 #define VC_EXTRALEAN
24
25 #ifdef _WIN32
26 #pragma warning(disable : 4786)
27 #endif
28
29 #define BOBTOOLZ_MINOR "bobtoolz"
30
31 #include <gdk/gdkkeysyms.h>
32 #include <gtk/gtk.h>
33 #include <glib/gi18n.h>
34 #include <stdio.h>
35 #include <stdlib.h>
36
37 #include "time.h"
38
39 #if defined (__linux__) || defined (__APPLE__)
40
41 // Necessary for proper boolean type declaration
42 #include "qertypes.h"
43
44 #include <GL/glx.h>
45
46 typedef void* HMODULE;
47 typedef void* LPVOID;
48 typedef char* LPCSTR;
49 //typedef int   bool;
50
51 #define MB_OK                       0x00000000L
52 #define MB_OKCANCEL                 0x00000001L
53 #define MB_ABORTRETRYIGNORE         0x00000002L
54 #define MB_YESNOCANCEL              0x00000003L
55 #define MB_YESNO                    0x00000004L
56 #define MB_RETRYCANCEL              0x00000005L
57
58
59 #define MB_ICONHAND                 0x00000010L
60 #define MB_ICONQUESTION             0x00000020L
61 #define MB_ICONEXCLAMATION          0x00000030L
62 #define MB_ICONASTERISK             0x00000040L
63
64 #define MB_USERICON                 0x00000080L
65 #define MB_ICONWARNING              MB_ICONEXCLAMATION
66 #define MB_ICONERROR                MB_ICONHAND
67 #define MB_ICONINFORMATION          MB_ICONASTERISK
68 #define MB_ICONSTOP                 MB_ICONHAND
69
70 #define MB_TYPEMASK                 0x0000000FL
71 #define MB_ICONMASK                 0x000000F0L
72 #define MB_DEFMASK                  0x00000F00L
73 #define MB_MODEMASK                 0x00003000L
74 #define MB_MISCMASK                 0x0000C000L
75
76 #define IDOK                1
77 #define IDCANCEL            2
78 #define IDABORT             3
79 #define IDRETRY             4
80 #define IDIGNORE            5
81 #define IDYES               6
82 #define IDNO                7
83
84 #define WINAPI
85 #ifndef APIENTRY
86         #define APIENTRY
87 #endif
88
89 #ifndef GUID_DEFINED
90 #define GUID_DEFINED
91 typedef struct _GUID
92 {
93   unsigned long  Data1;
94   unsigned short Data2;
95   unsigned short Data3;
96   unsigned char  Data4[8];
97 } GUID;
98
99 #define stricmp strcasecmp
100
101 #endif
102
103 #if defined(__cplusplus)
104 #ifndef _REFGUID_DEFINED
105 #define _REFGUID_DEFINED
106 #define REFGUID             const GUID &
107 #endif // !_REFGUID_DEFINED
108 #endif
109
110 typedef struct tagRECT
111 {
112     long    left;
113     long    top;
114     long    right;
115     long    bottom;
116 } RECT, *PRECT, *LPRECT;
117
118 typedef uint UINT;
119
120 #endif // __linux__
121
122 #include "synapse.h"
123 #include "iplugin.h"
124 #define USE_QERTABLE_DEFINE
125
126 #include "missing.h" // temporary stuff, needs to be removed
127
128 #include "str.h"
129 #include "qertypes.h"
130 #include "qerplugin.h"
131 #include "idata.h"
132 #include "ibrush.h"
133 #include "iselectedface.h"
134 #include "ishaders.h"
135 #include "ibspfrontend.h"
136 #include "iui.h"
137 #include "igl.h"
138 #include "itoolbar.h"
139 #include "ientity.h"
140
141 #include "mathlib.h"
142
143 extern  _QERFuncTable_1                     g_FuncTable;
144 extern  _QERAppDataTable                          g_AppDataTable;
145 extern  _QERBrushTable                            g_BrushTable;
146 extern  _QERSelectedFaceTable           g_SelectedFaceTable;
147 extern  _QERShadersTable                    g_ShadersTable;
148 extern  _QERQglTable                                g_QglTable;
149 extern  _QERUITable                                         g_MessageTable;
150 extern  _QEREntityTable                           g_EntityTable;
151
152
153 #define MAX_ROUND_ERROR 0.05
154
155 #include "gtkr_list.h"
156
157 #endif