2007-11-04 03:34:51 +00:00
|
|
|
/*
|
2012-03-17 20:01:54 +00:00
|
|
|
BobToolz plugin for GtkRadiant
|
|
|
|
Copyright (C) 2001 Gordon Biggans
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
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.
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
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.
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
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
|
|
|
|
*/
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
#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"
|
|
|
|
|
2017-08-30 11:07:42 +00:00
|
|
|
#if defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
// Necessary for proper boolean type declaration
|
|
|
|
#include "qertypes.h"
|
|
|
|
|
|
|
|
#include <GL/glx.h>
|
|
|
|
|
|
|
|
typedef void* HMODULE;
|
|
|
|
typedef void* LPVOID;
|
|
|
|
typedef char* LPCSTR;
|
2012-03-17 20:01:54 +00:00
|
|
|
//typedef int bool;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
#define MB_OK 0x00000000L
|
|
|
|
#define MB_OKCANCEL 0x00000001L
|
|
|
|
#define MB_ABORTRETRYIGNORE 0x00000002L
|
|
|
|
#define MB_YESNOCANCEL 0x00000003L
|
|
|
|
#define MB_YESNO 0x00000004L
|
|
|
|
#define MB_RETRYCANCEL 0x00000005L
|
2008-06-26 07:52:02 +00:00
|
|
|
|
|
|
|
|
2007-11-04 03:34:51 +00:00
|
|
|
#define MB_ICONHAND 0x00000010L
|
|
|
|
#define MB_ICONQUESTION 0x00000020L
|
|
|
|
#define MB_ICONEXCLAMATION 0x00000030L
|
|
|
|
#define MB_ICONASTERISK 0x00000040L
|
2008-06-26 07:52:02 +00:00
|
|
|
|
2007-11-04 03:34:51 +00:00
|
|
|
#define MB_USERICON 0x00000080L
|
|
|
|
#define MB_ICONWARNING MB_ICONEXCLAMATION
|
|
|
|
#define MB_ICONERROR MB_ICONHAND
|
|
|
|
#define MB_ICONINFORMATION MB_ICONASTERISK
|
|
|
|
#define MB_ICONSTOP MB_ICONHAND
|
2008-06-26 07:52:02 +00:00
|
|
|
|
2007-11-04 03:34:51 +00:00
|
|
|
#define MB_TYPEMASK 0x0000000FL
|
|
|
|
#define MB_ICONMASK 0x000000F0L
|
|
|
|
#define MB_DEFMASK 0x00000F00L
|
|
|
|
#define MB_MODEMASK 0x00003000L
|
|
|
|
#define MB_MISCMASK 0x0000C000L
|
2008-06-26 07:52:02 +00:00
|
|
|
|
2007-11-04 03:34:51 +00:00
|
|
|
#define IDOK 1
|
|
|
|
#define IDCANCEL 2
|
|
|
|
#define IDABORT 3
|
|
|
|
#define IDRETRY 4
|
|
|
|
#define IDIGNORE 5
|
|
|
|
#define IDYES 6
|
|
|
|
#define IDNO 7
|
|
|
|
|
|
|
|
#define WINAPI
|
2008-02-28 16:50:26 +00:00
|
|
|
#ifndef APIENTRY
|
|
|
|
#define APIENTRY
|
|
|
|
#endif
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
#ifndef GUID_DEFINED
|
|
|
|
#define GUID_DEFINED
|
|
|
|
typedef struct _GUID
|
|
|
|
{
|
2012-03-17 20:01:54 +00:00
|
|
|
unsigned long Data1;
|
|
|
|
unsigned short Data2;
|
|
|
|
unsigned short Data3;
|
|
|
|
unsigned char Data4[8];
|
2007-11-04 03:34:51 +00:00
|
|
|
} GUID;
|
|
|
|
|
|
|
|
#define stricmp strcasecmp
|
|
|
|
|
|
|
|
#endif
|
2008-06-26 07:52:02 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
#if defined( __cplusplus )
|
2007-11-04 03:34:51 +00:00
|
|
|
#ifndef _REFGUID_DEFINED
|
|
|
|
#define _REFGUID_DEFINED
|
|
|
|
#define REFGUID const GUID &
|
|
|
|
#endif // !_REFGUID_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct tagRECT
|
|
|
|
{
|
2012-03-17 20:01:54 +00:00
|
|
|
long left;
|
|
|
|
long top;
|
|
|
|
long right;
|
|
|
|
long bottom;
|
2007-11-04 03:34:51 +00:00
|
|
|
} RECT, *PRECT, *LPRECT;
|
|
|
|
|
|
|
|
typedef uint UINT;
|
|
|
|
|
2017-08-30 11:07:42 +00:00
|
|
|
#endif // defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
#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"
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
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;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
#define MAX_ROUND_ERROR 0.05
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
#include "gtkr_list.h"
|
|
|
|
|
|
|
|
#endif
|