]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/StdAfx.h
92ffa5952483db3244e71c9c0280772a9c092797
[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 <stdio.h>
34 #include <stdlib.h>
35
36 #include "time.h"
37
38 #if defined (__linux__) || defined (__APPLE__)
39
40 // Necessary for proper boolean type declaration
41 #include "qertypes.h"
42
43 #include <GL/glx.h>
44
45 typedef void* HMODULE;
46 typedef void* LPVOID;
47 typedef char* LPCSTR;
48 //typedef int   bool;
49
50 #define MB_OK                       0x00000000L
51 #define MB_OKCANCEL                 0x00000001L
52 #define MB_ABORTRETRYIGNORE         0x00000002L
53 #define MB_YESNOCANCEL              0x00000003L
54 #define MB_YESNO                    0x00000004L
55 #define MB_RETRYCANCEL              0x00000005L
56  
57  
58 #define MB_ICONHAND                 0x00000010L
59 #define MB_ICONQUESTION             0x00000020L
60 #define MB_ICONEXCLAMATION          0x00000030L
61 #define MB_ICONASTERISK             0x00000040L
62  
63 #define MB_USERICON                 0x00000080L
64 #define MB_ICONWARNING              MB_ICONEXCLAMATION
65 #define MB_ICONERROR                MB_ICONHAND
66 #define MB_ICONINFORMATION          MB_ICONASTERISK
67 #define MB_ICONSTOP                 MB_ICONHAND
68  
69 #define MB_TYPEMASK                 0x0000000FL
70 #define MB_ICONMASK                 0x000000F0L
71 #define MB_DEFMASK                  0x00000F00L
72 #define MB_MODEMASK                 0x00003000L
73 #define MB_MISCMASK                 0x0000C000L
74  
75 #define IDOK                1
76 #define IDCANCEL            2
77 #define IDABORT             3
78 #define IDRETRY             4
79 #define IDIGNORE            5
80 #define IDYES               6
81 #define IDNO                7
82
83 #define WINAPI
84 #ifndef APIENTRY
85         #define APIENTRY
86 #endif
87
88 #ifndef GUID_DEFINED
89 #define GUID_DEFINED
90 typedef struct _GUID
91 {
92   unsigned long  Data1;
93   unsigned short Data2;
94   unsigned short Data3;
95   unsigned char  Data4[8];
96 } GUID;
97
98 #define stricmp strcasecmp
99
100 #endif
101  
102 #if defined(__cplusplus)
103 #ifndef _REFGUID_DEFINED
104 #define _REFGUID_DEFINED
105 #define REFGUID             const GUID &
106 #endif // !_REFGUID_DEFINED
107 #endif
108
109 typedef struct tagRECT
110 {
111     long    left;
112     long    top;
113     long    right;
114     long    bottom;
115 } RECT, *PRECT, *LPRECT;
116
117 typedef uint UINT;
118
119 #endif // __linux__
120
121 #include "synapse.h"
122 #include "iplugin.h"
123 #define USE_QERTABLE_DEFINE
124
125 #include "missing.h" // temporary stuff, needs to be removed
126
127 #include "str.h"
128 #include "qertypes.h"
129 #include "qerplugin.h"
130 #include "idata.h"
131 #include "ibrush.h"
132 #include "iselectedface.h"
133 #include "ishaders.h"
134 #include "ibspfrontend.h"
135 #include "iui.h"
136 #include "igl.h"
137 #include "itoolbar.h"
138 #include "ientity.h"
139
140 #include "mathlib.h"
141
142 extern  _QERFuncTable_1                     g_FuncTable;
143 extern  _QERAppDataTable                          g_AppDataTable;
144 extern  _QERBrushTable                            g_BrushTable;
145 extern  _QERSelectedFaceTable           g_SelectedFaceTable;
146 extern  _QERShadersTable                    g_ShadersTable;
147 extern  _QERQglTable                                g_QglTable;
148 extern  _QERUITable                                         g_MessageTable;
149 extern  _QEREntityTable                           g_EntityTable;
150
151
152 #define MAX_ROUND_ERROR 0.05
153
154 #include "gtkr_list.h"
155
156 #endif