]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/pk3man/stdafx.h
* added pk3man and fixed it to compile for latest radiant
[xonotic/netradiant.git] / contrib / pk3man / stdafx.h
1 // stdafx.h : include file for standard system include files,
2 //  or project specific include files that are used frequently, but
3 //      are changed infrequently
4 //
5
6 #if !defined(AFX_STDAFX_H__214D7491_03C8_444D_AAEB_73A8A21B84CB__INCLUDED_)
7 #define AFX_STDAFX_H__214D7491_03C8_444D_AAEB_73A8A21B84CB__INCLUDED_
8
9 #if _MSC_VER > 1000
10 #pragma once
11 #endif // _MSC_VER > 1000
12
13 #define GTK_ENABLE_BROKEN
14
15 #include <gdk/gdkkeysyms.h>
16 #include <gtk/gtk.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include "pk3str.h"
20 #include "pixmap.h"
21
22 #ifdef __linux__
23
24 #include <GL/glx.h>
25
26 typedef void* HMODULE;
27 typedef void* LPVOID;
28 typedef int BOOL;
29 typedef char* LPCSTR;
30
31 #define MB_OK                       0x00000000L
32 #define MB_OKCANCEL                 0x00000001L
33 #define MB_ABORTRETRYIGNORE         0x00000002L
34 #define MB_YESNOCANCEL              0x00000003L
35 #define MB_YESNO                    0x00000004L
36 #define MB_RETRYCANCEL              0x00000005L
37
38
39 #define MB_ICONHAND                 0x00000010L
40 #define MB_ICONQUESTION             0x00000020L
41 #define MB_ICONEXCLAMATION          0x00000030L
42 #define MB_ICONASTERISK             0x00000040L
43
44 #define MB_USERICON                 0x00000080L
45 #define MB_ICONWARNING              MB_ICONEXCLAMATION
46 #define MB_ICONERROR                MB_ICONHAND
47 #define MB_ICONINFORMATION          MB_ICONASTERISK
48 #define MB_ICONSTOP                 MB_ICONHAND
49
50 #define MB_TYPEMASK                 0x0000000FL
51 #define MB_ICONMASK                 0x000000F0L
52 #define MB_DEFMASK                  0x00000F00L
53 #define MB_MODEMASK                 0x00003000L
54 #define MB_MISCMASK                 0x0000C000L
55
56 #define IDOK                1
57 #define IDCANCEL            2
58 #define IDABORT             3
59 #define IDRETRY             4
60 #define IDIGNORE            5
61 #define IDYES               6
62 #define IDNO                7
63
64 #define WINAPI
65
66 #ifndef GUID_DEFINED
67 #define GUID_DEFINED
68 typedef struct _GUID
69 {
70   unsigned long  Data1;
71   unsigned short Data2;
72   unsigned short Data3;
73   unsigned char  Data4[8];
74 } GUID;
75 #endif
76
77 #if defined(__cplusplus)
78 #ifndef _REFGUID_DEFINED
79 #define _REFGUID_DEFINED
80 #define REFGUID             const GUID &
81 #endif // !_REFGUID_DEFINED
82 #endif
83
84 typedef struct tagRECT
85 {
86         long    left;
87         long    top;
88         long    right;
89         long    bottom;
90 } RECT, *PRECT, *LPRECT;
91
92 #endif // __linux__
93
94 #include "qerplugin.h"
95 #include "igl.h"
96 #include "iselectedface.h"
97 #include "isurfaceplugin.h"
98 #include "ishaders.h"
99 #if 0 //mattn
100 #include "iepairs.h"
101 #endif
102
103 extern _QERFuncTable_1  g_FuncTable;
104 extern _QERShadersTable g_ShadersTable;
105 #if 0 //mattn
106 extern _QEREpairsTable  g_EpairTable;
107 #endif
108 #define Sys_Printf g_FuncTable.m_pfnSysPrintf
109 #define Sys_FPrintf g_FuncTable.m_pfnSysFPrintf
110
111 #define CString Str
112 extern CString g_strBitmapsPath;
113 extern CString g_strBasePath;
114 extern CString g_strTempPath;
115 extern CString g_strAppPath;
116 extern CString g_strModPath;
117
118
119 //extern int DoMessageBox (const char* lpText, const char* lpCaption, guint32 uType);
120
121 #define ID_FILE_OPEN    10000
122 #define ID_FILE_SAVE    10001
123 #define ID_FILE_NEW             10002
124 #define ID_WIZARD               10003
125 #define ID_VIEW                 10004
126 #define ID_EXTRACT              10005
127 #define ID_ADD                  10006
128 #define ID_RENAME               10007
129 #define ID_DELETE               10008
130 #define ID_SPARE                10009
131
132 #ifndef __linux__
133 #pragma warning(disable : 4786)
134 #endif
135
136 // TODO: reference additional headers your program requires here
137
138 //{{AFX_INSERT_LOCATION}}
139 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
140
141 #endif // !defined(AFX_STDAFX_H__214D7491_03C8_444D_AAEB_73A8A21B84CB__INCLUDED_)