]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/StdAfx.h
misc nix
[xonotic/netradiant.git] / contrib / bobtoolz / StdAfx.h
index 881832321ccdb0998e3b0e032044a0bf7ed49a46..92ffa5952483db3244e71c9c0280772a9c092797 100644 (file)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
-*/\r
-\r
-#ifndef __STDAFX_BOBTOOLZ__\r
-#define __STDAFX_BOBTOOLZ__\r
-\r
-#define VC_EXTRALEAN\r
-\r
-#ifdef _WIN32\r
-#pragma warning(disable : 4786)\r
-#endif\r
-\r
-#define BOBTOOLZ_MINOR "bobtoolz"\r
-\r
-#include <gdk/gdkkeysyms.h>\r
-#include <gtk/gtk.h>\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-\r
-#include "time.h"\r
-\r
-#if defined (__linux__) || defined (__APPLE__)\r
-\r
-// Necessary for proper boolean type declaration\r
-#include "qertypes.h"\r
-\r
-#include <GL/glx.h>\r
-\r
-typedef void* HMODULE;\r
-typedef void* LPVOID;\r
-typedef char* LPCSTR;\r
-//typedef int  bool;\r
-\r
-#define MB_OK                       0x00000000L\r
-#define MB_OKCANCEL                 0x00000001L\r
-#define MB_ABORTRETRYIGNORE         0x00000002L\r
-#define MB_YESNOCANCEL              0x00000003L\r
-#define MB_YESNO                    0x00000004L\r
-#define MB_RETRYCANCEL              0x00000005L\r
\r
\r
-#define MB_ICONHAND                 0x00000010L\r
-#define MB_ICONQUESTION             0x00000020L\r
-#define MB_ICONEXCLAMATION          0x00000030L\r
-#define MB_ICONASTERISK             0x00000040L\r
\r
-#define MB_USERICON                 0x00000080L\r
-#define MB_ICONWARNING              MB_ICONEXCLAMATION\r
-#define MB_ICONERROR                MB_ICONHAND\r
-#define MB_ICONINFORMATION          MB_ICONASTERISK\r
-#define MB_ICONSTOP                 MB_ICONHAND\r
\r
-#define MB_TYPEMASK                 0x0000000FL\r
-#define MB_ICONMASK                 0x000000F0L\r
-#define MB_DEFMASK                  0x00000F00L\r
-#define MB_MODEMASK                 0x00003000L\r
-#define MB_MISCMASK                 0x0000C000L\r
\r
-#define IDOK                1\r
-#define IDCANCEL            2\r
-#define IDABORT             3\r
-#define IDRETRY             4\r
-#define IDIGNORE            5\r
-#define IDYES               6\r
-#define IDNO                7\r
-\r
-#define WINAPI\r
-#define APIENTRY\r
-\r
-#ifndef GUID_DEFINED\r
-#define GUID_DEFINED\r
-typedef struct _GUID\r
-{\r
-  unsigned long  Data1;\r
-  unsigned short Data2;\r
-  unsigned short Data3;\r
-  unsigned char  Data4[8];\r
-} GUID;\r
-\r
-#define stricmp strcasecmp\r
-\r
-#endif\r
\r
-#if defined(__cplusplus)\r
-#ifndef _REFGUID_DEFINED\r
-#define _REFGUID_DEFINED\r
-#define REFGUID             const GUID &\r
-#endif // !_REFGUID_DEFINED\r
-#endif\r
-\r
-typedef struct tagRECT\r
-{\r
-    long    left;\r
-    long    top;\r
-    long    right;\r
-    long    bottom;\r
-} RECT, *PRECT, *LPRECT;\r
-\r
-typedef uint UINT;\r
-\r
-#endif // __linux__\r
-\r
-#include "synapse.h"\r
-#include "iplugin.h"\r
-#define USE_QERTABLE_DEFINE\r
-\r
-#include "missing.h" // temporary stuff, needs to be removed\r
-\r
-#include "str.h"\r
-#include "qertypes.h"\r
-#include "qerplugin.h"\r
-#include "idata.h"\r
-#include "ibrush.h"\r
-#include "iselectedface.h"\r
-#include "ishaders.h"\r
-#include "ibspfrontend.h"\r
-#include "iui.h"\r
-#include "igl.h"\r
-#include "itoolbar.h"\r
-#include "ientity.h"\r
-\r
-#include "mathlib.h"\r
-\r
-extern _QERFuncTable_1                     g_FuncTable;\r
-extern  _QERAppDataTable                         g_AppDataTable;\r
-extern  _QERBrushTable                           g_BrushTable;\r
-extern _QERSelectedFaceTable           g_SelectedFaceTable;\r
-extern _QERShadersTable                    g_ShadersTable;\r
-extern _QERQglTable                                g_QglTable;\r
-extern _QERUITable                                         g_MessageTable;\r
-extern _QEREntityTable                           g_EntityTable;\r
-\r
-\r
-#define MAX_ROUND_ERROR        0.05\r
-\r
-#include "gtkr_list.h"\r
-\r
-#endif\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+#ifndef __STDAFX_BOBTOOLZ__
+#define __STDAFX_BOBTOOLZ__
+
+#define VC_EXTRALEAN
+
+#ifdef _WIN32
+#pragma warning(disable : 4786)
+#endif
+
+#define BOBTOOLZ_MINOR "bobtoolz"
+
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtk.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "time.h"
+
+#if defined (__linux__) || defined (__APPLE__)
+
+// Necessary for proper boolean type declaration
+#include "qertypes.h"
+
+#include <GL/glx.h>
+
+typedef void* HMODULE;
+typedef void* LPVOID;
+typedef char* LPCSTR;
+//typedef int  bool;
+
+#define MB_OK                       0x00000000L
+#define MB_OKCANCEL                 0x00000001L
+#define MB_ABORTRETRYIGNORE         0x00000002L
+#define MB_YESNOCANCEL              0x00000003L
+#define MB_YESNO                    0x00000004L
+#define MB_RETRYCANCEL              0x00000005L
+#define MB_ICONHAND                 0x00000010L
+#define MB_ICONQUESTION             0x00000020L
+#define MB_ICONEXCLAMATION          0x00000030L
+#define MB_ICONASTERISK             0x00000040L
+#define MB_USERICON                 0x00000080L
+#define MB_ICONWARNING              MB_ICONEXCLAMATION
+#define MB_ICONERROR                MB_ICONHAND
+#define MB_ICONINFORMATION          MB_ICONASTERISK
+#define MB_ICONSTOP                 MB_ICONHAND
+#define MB_TYPEMASK                 0x0000000FL
+#define MB_ICONMASK                 0x000000F0L
+#define MB_DEFMASK                  0x00000F00L
+#define MB_MODEMASK                 0x00003000L
+#define MB_MISCMASK                 0x0000C000L
+#define IDOK                1
+#define IDCANCEL            2
+#define IDABORT             3
+#define IDRETRY             4
+#define IDIGNORE            5
+#define IDYES               6
+#define IDNO                7
+
+#define WINAPI
+#ifndef APIENTRY
+       #define APIENTRY
+#endif
+
+#ifndef GUID_DEFINED
+#define GUID_DEFINED
+typedef struct _GUID
+{
+  unsigned long  Data1;
+  unsigned short Data2;
+  unsigned short Data3;
+  unsigned char  Data4[8];
+} GUID;
+
+#define stricmp strcasecmp
+
+#endif
+#if defined(__cplusplus)
+#ifndef _REFGUID_DEFINED
+#define _REFGUID_DEFINED
+#define REFGUID             const GUID &
+#endif // !_REFGUID_DEFINED
+#endif
+
+typedef struct tagRECT
+{
+    long    left;
+    long    top;
+    long    right;
+    long    bottom;
+} RECT, *PRECT, *LPRECT;
+
+typedef uint UINT;
+
+#endif // __linux__
+
+#include "synapse.h"
+#include "iplugin.h"
+#define USE_QERTABLE_DEFINE
+
+#include "missing.h" // temporary stuff, needs to be removed
+
+#include "str.h"
+#include "qertypes.h"
+#include "qerplugin.h"
+#include "idata.h"
+#include "ibrush.h"
+#include "iselectedface.h"
+#include "ishaders.h"
+#include "ibspfrontend.h"
+#include "iui.h"
+#include "igl.h"
+#include "itoolbar.h"
+#include "ientity.h"
+
+#include "mathlib.h"
+
+extern _QERFuncTable_1                     g_FuncTable;
+extern  _QERAppDataTable                         g_AppDataTable;
+extern  _QERBrushTable                           g_BrushTable;
+extern _QERSelectedFaceTable           g_SelectedFaceTable;
+extern _QERShadersTable                    g_ShadersTable;
+extern _QERQglTable                                g_QglTable;
+extern _QERUITable                                         g_MessageTable;
+extern _QEREntityTable                           g_EntityTable;
+
+
+#define MAX_ROUND_ERROR        0.05
+
+#include "gtkr_list.h"
+
+#endif