mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@195 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
7a51df0e11
commit
a06f65b042
32 changed files with 115 additions and 52 deletions
|
@ -17,6 +17,25 @@ if ( libname == 'image' ):
|
||||||
useJPEG = True
|
useJPEG = True
|
||||||
if ( libname == 'surface' ):
|
if ( libname == 'surface' ):
|
||||||
useGtk = True
|
useGtk = True
|
||||||
|
if ( libname == 'surface_quake2' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'surface_heretic2' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'bkgrnd2d' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'gtkgensurf' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'bobToolz_gtk' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'camera' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'PrtView' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'spritemodel' ):
|
||||||
|
useGtk = True
|
||||||
|
if ( libname == 'TexTool' ):
|
||||||
|
useGtk = True
|
||||||
|
|
||||||
settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG )
|
settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG )
|
||||||
proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
|
proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
|
||||||
|
|
||||||
|
|
38
config.py
38
config.py
|
@ -100,19 +100,47 @@ class Config:
|
||||||
shlib_objects_extra[libname] = SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
|
shlib_objects_extra[libname] = SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
|
||||||
|
|
||||||
for project in [ 'plugins/vfspk3/vfspk3.vcproj',
|
for project in [ 'plugins/vfspk3/vfspk3.vcproj',
|
||||||
'plugins/image/image.vcproj',
|
'plugins/vfspak/vfspak.vcproj',
|
||||||
|
'plugins/vfswad/vfswad.vcproj',
|
||||||
|
'plugins/eclassfgd/fgd.vcproj',
|
||||||
'plugins/entity/entity.vcproj',
|
'plugins/entity/entity.vcproj',
|
||||||
|
'plugins/image/image.vcproj',
|
||||||
|
# FIXME: Fix linker flags - xml2, z
|
||||||
|
# 'plugins/imagepng/imagepng.vcproj',
|
||||||
|
'plugins/imagewal/imagewal.vcproj',
|
||||||
|
'plugins/imagem8/imagem8.vcproj',
|
||||||
|
'plugins/spritemodel/spritemodel.vcproj',
|
||||||
|
'plugins/textool/TexTool.vcproj',
|
||||||
'plugins/map/map.vcproj',
|
'plugins/map/map.vcproj',
|
||||||
'plugins/mapxml/mapxml.vcproj',
|
'plugins/mapxml/mapxml.vcproj',
|
||||||
'plugins/shaders/shaders.vcproj',
|
'plugins/shaders/shaders.vcproj',
|
||||||
'plugins/surface/surface.vcproj'
|
'plugins/surface/surface.vcproj',
|
||||||
]:
|
'plugins/surface_quake2/surface_quake2.vcproj',
|
||||||
|
'plugins/surface_heretic2/surface_heretic2.vcproj',
|
||||||
|
# FIXME Needs splines
|
||||||
|
# 'contrib/camera/camera.vcproj',
|
||||||
|
|
||||||
|
# FIXME What is this? Empty dir for me - remove me?
|
||||||
|
# 'contrib/patches/patches.vcproj',
|
||||||
|
# 'contrib/archivewad/archivewad.vcproj',
|
||||||
|
|
||||||
|
# FIXME Doesn't compile cleanly
|
||||||
|
# 'contrib/prtview/PrtView.vcproj',
|
||||||
|
'contrib/hydratoolz/hydratoolz.vcproj',
|
||||||
|
'contrib/bobtoolz/bobToolz_gtk.vcproj',
|
||||||
|
'contrib/gtkgensurf/gtkgensurf.vcproj',
|
||||||
|
'contrib/bkgrnd2d/bkgrnd2d.vcproj'
|
||||||
|
]:
|
||||||
( libpath, libname ) = os.path.split( project )
|
( libpath, libname ) = os.path.split( project )
|
||||||
libname = os.path.splitext( libname )[0]
|
libname = os.path.splitext( libname )[0]
|
||||||
shlib_objects = shlib_objects_extra['synapse']
|
shlib_objects = shlib_objects_extra['synapse']
|
||||||
if ( libname == 'entity' ):
|
if ( libname == 'entity' ):
|
||||||
shlib_objects += shlib_objects_extra['mathlib']
|
shlib_objects += shlib_objects_extra['mathlib']
|
||||||
if ( libname == 'map' ):
|
# elif ( libname == 'spritemodel' ):
|
||||||
|
# shlib_objects += shlib_objects_extra['mathlib']
|
||||||
|
# elif ( libname == 'TexTool' ):
|
||||||
|
# shlib_objects += shlib_objects_extra['mathlib']
|
||||||
|
elif ( libname == 'map' ):
|
||||||
shlib_objects += shlib_objects_extra['cmdlib']
|
shlib_objects += shlib_objects_extra['cmdlib']
|
||||||
Export( 'project', 'shlib_objects' )
|
Export( 'project', 'shlib_objects' )
|
||||||
module = SConscript( os.path.join( build_dir, 'SConscript.module' ) )
|
module = SConscript( os.path.join( build_dir, 'SConscript.module' ) )
|
||||||
|
@ -125,7 +153,7 @@ class Config:
|
||||||
config['name'] = config_name
|
config['name'] = config_name
|
||||||
config['shared'] = False
|
config['shared'] = False
|
||||||
Export( 'utils', 'settings', 'config' )
|
Export( 'utils', 'settings', 'config' )
|
||||||
build_dir = os.path.join( 'build', config_name, 'radiant' )
|
build_dir = os.path.join( 'build', config_name, 'q3map2' )
|
||||||
BuildDir( build_dir, '.', duplicate = 0 )
|
BuildDir( build_dir, '.', duplicate = 0 )
|
||||||
lib_objects = []
|
lib_objects = []
|
||||||
for project in [ 'libs/cmdlib/cmdlib.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/md5lib/md5lib.vcproj' ]:
|
for project in [ 'libs/cmdlib/cmdlib.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/md5lib/md5lib.vcproj' ]:
|
||||||
|
|
|
@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
#include "DBrush.h"
|
#include "DBrush.h"
|
||||||
#include "DWinding.h"
|
#include "DWinding.h"
|
||||||
#include "dialogs-gtk.h"
|
#include "dialogs/dialogs-gtk.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ brush_t* DBrush::BuildInRadiant(bool allowDestruction, int* changeCnt, entity_t*
|
||||||
|
|
||||||
if(entity) {
|
if(entity) {
|
||||||
g_FuncTable.m_pfnCommitBrushHandleToEntity(QER_brush, entity);
|
g_FuncTable.m_pfnCommitBrushHandleToEntity(QER_brush, entity);
|
||||||
g_BrushTable.m_pfnBrush_Build(QER_brush);
|
g_BrushTable.m_pfnBrush_Build(QER_brush, false, false, false, false);
|
||||||
g_BrushTable.m_pfnBrush_AddToList(QER_brush, g_AppDataTable.m_pfnSelectedBrushes());
|
g_BrushTable.m_pfnBrush_AddToList(QER_brush, g_AppDataTable.m_pfnSelectedBrushes());
|
||||||
} else {
|
} else {
|
||||||
g_FuncTable.m_pfnCommitBrushHandle(QER_brush);
|
g_FuncTable.m_pfnCommitBrushHandle(QER_brush);
|
||||||
|
|
|
@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
#include "DEntity.h"
|
#include "DEntity.h"
|
||||||
|
|
||||||
#include "dialogs-gtk.h"
|
#include "dialogs/dialogs-gtk.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "CPortals.h"
|
#include "CPortals.h"
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ void DoLoadCamera()
|
||||||
char basepath[PATH_MAX];
|
char basepath[PATH_MAX];
|
||||||
|
|
||||||
if( firstCam && firstCam->HasBeenSaved() )
|
if( firstCam && firstCam->HasBeenSaved() )
|
||||||
ExtractFilePath( firstCam->GetFileName(), basepath );
|
CAMERA_ExtractFilePath( firstCam->GetFileName(), basepath );
|
||||||
else
|
else
|
||||||
strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
|
strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ void DoSaveCamera() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( GetCurrentCam()->GetFileName()[0] )
|
if( GetCurrentCam()->GetFileName()[0] )
|
||||||
ExtractFilePath( GetCurrentCam()->GetFileName(), basepath );
|
CAMERA_ExtractFilePath( GetCurrentCam()->GetFileName(), basepath );
|
||||||
else
|
else
|
||||||
strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
|
strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ char* UnixToDosPath( char* path )
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExtractFilePath( const char *path, char *dest )
|
void CAMERA_ExtractFilePath( const char *path, char *dest )
|
||||||
{
|
{
|
||||||
const char *src;
|
const char *src;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Copyright (C) 2002 Splash Damage Ltd.
|
||||||
|
|
||||||
void Sys_ERROR( char* text, ... );
|
void Sys_ERROR( char* text, ... );
|
||||||
char* UnixToDosPath( char* path );
|
char* UnixToDosPath( char* path );
|
||||||
void ExtractFilePath( const char *path, char *dest );
|
void CAMERA_ExtractFilePath( const char *path, char *dest );
|
||||||
const char* ExtractFilename( const char* path );
|
const char* ExtractFilename( const char* path );
|
||||||
bool FileExists (const char *filename);
|
bool FileExists (const char *filename);
|
||||||
int Q_stricmp (const char *s1, const char *s2);
|
int Q_stricmp (const char *s1, const char *s2);
|
||||||
|
|
|
@ -161,7 +161,7 @@ static unsigned char* OpenBitmapFile ()
|
||||||
if (bmBitsPixel != 8)
|
if (bmBitsPixel != 8)
|
||||||
{
|
{
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, "This is not an 8-bit image. GenSurf can't use it.",
|
g_FuncTable.m_pfnMessageBox (g_pWnd, "This is not an 8-bit image. GenSurf can't use it.",
|
||||||
"Bitmap", MB_ICONEXCLAMATION);
|
"Bitmap", MB_ICONEXCLAMATION, NULL);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -417,7 +417,7 @@ bool OpenBitmap ()
|
||||||
char Text[256];
|
char Text[256];
|
||||||
|
|
||||||
sprintf (Text, "Error opening %s", gbmp.name);
|
sprintf (Text, "Error opening %s", gbmp.name);
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "Bitmap", MB_ICONEXCLAMATION);
|
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "Bitmap", MB_ICONEXCLAMATION, NULL);
|
||||||
strcpy (gbmp.name, "");
|
strcpy (gbmp.name, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@ void MakeDecimatedMap(int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri)
|
||||||
*/
|
*/
|
||||||
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,
|
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,
|
||||||
"Error: Couldn't find the triangle bounding a point.",
|
"Error: Couldn't find the triangle bounding a point.",
|
||||||
"Decimation Error",MB_ICONEXCLAMATION);
|
"Decimation Error",MB_ICONEXCLAMATION, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!Tri[Node[i].tri].flag)
|
if(!Tri[Node[i].tri].flag)
|
||||||
|
@ -249,7 +249,7 @@ void MakeDecimatedMap(int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri)
|
||||||
*/
|
*/
|
||||||
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,
|
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,
|
||||||
"Error: Couldn't find the triangle bounding a point.",
|
"Error: Couldn't find the triangle bounding a point.",
|
||||||
"Decimation Error",MB_ICONEXCLAMATION);
|
"Decimation Error",MB_ICONEXCLAMATION, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!Tri[Node[i].tri].flag)
|
if(!Tri[Node[i].tri].flag)
|
||||||
|
|
|
@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#define SIDE_BACK 1
|
#define SIDE_BACK 1
|
||||||
#define SIDE_CROSS -2
|
#define SIDE_CROSS -2
|
||||||
|
|
||||||
vec3 vec3_origin = {0,0,0};
|
vec3 gensurf_vec3_origin;
|
||||||
|
|
||||||
void PlaneFromPoints (float *p0, float *p1, float *p2, PLANE *plane)
|
void PlaneFromPoints (float *p0, float *p1, float *p2, PLANE *plane)
|
||||||
{
|
{
|
||||||
|
@ -133,7 +133,7 @@ MY_WINDING *BaseWindingForPlane (vec3 normal, vec dist)
|
||||||
}
|
}
|
||||||
if (x==-1) x = 2;
|
if (x==-1) x = 2;
|
||||||
|
|
||||||
VectorCopy(vec3_origin,vup);
|
VectorCopy(gensurf_vec3_origin,vup);
|
||||||
switch (x)
|
switch (x)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -356,7 +356,7 @@ void UseFaceBounds()
|
||||||
planepts[2][2] = QERFaceData->m_v3[2];
|
planepts[2][2] = QERFaceData->m_v3[2];
|
||||||
|
|
||||||
PlaneFromPoints (planepts[0], planepts[1], planepts[2], &plane[2*i]);
|
PlaneFromPoints (planepts[0], planepts[1], planepts[2], &plane[2*i]);
|
||||||
VectorSubtract (vec3_origin, plane[2*i].normal, plane[2*i+1].normal);
|
VectorSubtract (gensurf_vec3_origin, plane[2*i].normal, plane[2*i+1].normal);
|
||||||
plane[2*i+1].dist = -plane[2*i].dist;
|
plane[2*i+1].dist = -plane[2*i].dist;
|
||||||
|
|
||||||
Dot = DotProduct(plane[2*i].normal,SurfNormal);
|
Dot = DotProduct(plane[2*i].normal,SurfNormal);
|
||||||
|
|
|
@ -98,7 +98,7 @@ void About (GtkWidget *parent)
|
||||||
"Enhancements\n"
|
"Enhancements\n"
|
||||||
"Pablo Zurita (pablo@qeradiant.com)\n"
|
"Pablo Zurita (pablo@qeradiant.com)\n"
|
||||||
"Hydra (hydra@hydras-world.com)",
|
"Hydra (hydra@hydras-world.com)",
|
||||||
"About GtkGenSurf", MB_OK);
|
"About GtkGenSurf", MB_OK, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
@ -717,7 +717,7 @@ static void main_go (GtkWidget *widget, gpointer data)
|
||||||
if (NH < 1 || NH > MAX_ROWS)
|
if (NH < 1 || NH > MAX_ROWS)
|
||||||
{
|
{
|
||||||
sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS);
|
sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS);
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION);
|
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION, NULL);
|
||||||
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -725,7 +725,7 @@ static void main_go (GtkWidget *widget, gpointer data)
|
||||||
if (NV < 1 || NV > MAX_ROWS)
|
if (NV < 1 || NV > MAX_ROWS)
|
||||||
{
|
{
|
||||||
sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS);
|
sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS);
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION);
|
g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION, NULL);
|
||||||
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -734,7 +734,7 @@ static void main_go (GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, "The \"lower-left\" values must be less than "
|
g_FuncTable.m_pfnMessageBox (g_pWnd, "The \"lower-left\" values must be less than "
|
||||||
"the corresponding \"upper-right\" values in "
|
"the corresponding \"upper-right\" values in "
|
||||||
"the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION);
|
"the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL);
|
||||||
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -743,14 +743,14 @@ static void main_go (GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd,"The \"lower-left\" values must be less than "
|
g_FuncTable.m_pfnMessageBox (g_pWnd,"The \"lower-left\" values must be less than "
|
||||||
"the corresponding \"upper-right\" values in "
|
"the corresponding \"upper-right\" values in "
|
||||||
"the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION);
|
"the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL);
|
||||||
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strlen (Texture[Game][0]))
|
if (!strlen (Texture[Game][0]))
|
||||||
{
|
{
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, "You must supply a texture name.", "GenSurf", MB_ICONEXCLAMATION);
|
g_FuncTable.m_pfnMessageBox (g_pWnd, "You must supply a texture name.", "GenSurf", MB_ICONEXCLAMATION, NULL);
|
||||||
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -908,7 +908,7 @@ static void bitmap_browse (GtkWidget *widget, gpointer data)
|
||||||
const char *filename;
|
const char *filename;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath);
|
filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath, "gtkgensurf");
|
||||||
|
|
||||||
if (filename != NULL)
|
if (filename != NULL)
|
||||||
{
|
{
|
||||||
|
@ -950,7 +950,7 @@ static gint fix_value_entryfocusout (GtkWidget* widget, GdkEventFocus *event, gp
|
||||||
{
|
{
|
||||||
gdk_beep ();
|
gdk_beep ();
|
||||||
g_FuncTable.m_pfnMessageBox (g_pWnd, "The value must be between -65536 and 65536, inclusive.",
|
g_FuncTable.m_pfnMessageBox (g_pWnd, "The value must be between -65536 and 65536, inclusive.",
|
||||||
"GenSurf", MB_OK | MB_ICONEXCLAMATION);
|
"GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL);
|
||||||
sprintf (Text, "%d", (int)xyz[Vertex[0].i][Vertex[0].j].fixed_value);
|
sprintf (Text, "%d", (int)xyz[Vertex[0].i][Vertex[0].j].fixed_value);
|
||||||
gtk_entry_set_text (GTK_ENTRY(widget), Text);
|
gtk_entry_set_text (GTK_ENTRY(widget), Text);
|
||||||
gtk_window_set_focus (GTK_WINDOW (gtk_widget_get_toplevel (widget)), widget);
|
gtk_window_set_focus (GTK_WINDOW (gtk_widget_get_toplevel (widget)), widget);
|
||||||
|
|
|
@ -172,7 +172,7 @@ int MapPatches()
|
||||||
if(NH_remain < 0)
|
if(NH_remain < 0)
|
||||||
{
|
{
|
||||||
sprintf(szOops,"Oops... screwed up with NH=%d",NH);
|
sprintf(szOops,"Oops... screwed up with NH=%d",NH);
|
||||||
g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh");
|
g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh", 0, NULL);
|
||||||
}
|
}
|
||||||
NV_remain = NV+1;
|
NV_remain = NV+1;
|
||||||
j0 = 0;
|
j0 = 0;
|
||||||
|
@ -204,7 +204,7 @@ int MapPatches()
|
||||||
if(NV_remain < 0)
|
if(NV_remain < 0)
|
||||||
{
|
{
|
||||||
sprintf(szOops,"Oops... screwed up with NV=%d",NV);
|
sprintf(szOops,"Oops... screwed up with NV=%d",NV);
|
||||||
g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh");
|
g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh", 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
p.width = NH_patch;
|
p.width = NH_patch;
|
||||||
|
@ -1981,7 +1981,7 @@ void MakeBrush(BRUSH *brush)
|
||||||
|
|
||||||
if(g_FuncTable.m_pfnCreateBrushHandle==NULL)
|
if(g_FuncTable.m_pfnCreateBrushHandle==NULL)
|
||||||
{
|
{
|
||||||
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,"m_pfnCreateBrushHandle==NULL","Aw damn",0);
|
g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,"m_pfnCreateBrushHandle==NULL","Aw damn",0, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vp=(g_FuncTable.m_pfnCreateBrushHandle)();
|
vp=(g_FuncTable.m_pfnCreateBrushHandle)();
|
||||||
|
|
|
@ -397,7 +397,7 @@ void UpdatePreview (bool DataChange)
|
||||||
void SaveSetup (GtkWidget *parent)
|
void SaveSetup (GtkWidget *parent)
|
||||||
{
|
{
|
||||||
const char *name = g_FuncTable.m_pfnFileDialog (parent, false, "Save GenSurf Settings",
|
const char *name = g_FuncTable.m_pfnFileDialog (parent, false, "Save GenSurf Settings",
|
||||||
g_FuncTable.m_pfnProfileGetDirectory ());
|
g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf");
|
||||||
|
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
{
|
{
|
||||||
|
@ -436,7 +436,7 @@ void OpenSetup (GtkWidget *parent, int UseDefaults)
|
||||||
name = g_strdup ("plugins/defaults.srf"); // dummy string
|
name = g_strdup ("plugins/defaults.srf"); // dummy string
|
||||||
else
|
else
|
||||||
name = g_FuncTable.m_pfnFileDialog (parent, true, "Open GenSurf Settings",
|
name = g_FuncTable.m_pfnFileDialog (parent, true, "Open GenSurf Settings",
|
||||||
g_FuncTable.m_pfnProfileGetDirectory ());
|
g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf");
|
||||||
|
|
||||||
if(name != NULL)
|
if(name != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,7 +69,7 @@ _QEREntityTable g_EntityTable;
|
||||||
Extract file parts
|
Extract file parts
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
void ExtractFilePath (const char *path, char *dest)
|
void HYDRA_ExtractFilePath (const char *path, char *dest)
|
||||||
{
|
{
|
||||||
const char *src;
|
const char *src;
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ void ExtractFilePath (const char *path, char *dest)
|
||||||
dest[src-path] = 0;
|
dest[src-path] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExtractFileName (const char *path, char *dest)
|
void HYDRA_ExtractFileName (const char *path, char *dest)
|
||||||
{
|
{
|
||||||
const char *src;
|
const char *src;
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ void ExtractFileName (const char *path, char *dest)
|
||||||
*dest = 0;
|
*dest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConvertDOSToUnixName( char *dst, const char *src )
|
void HYDRA_ConvertDOSToUnixName( char *dst, const char *src )
|
||||||
{
|
{
|
||||||
while ( *src )
|
while ( *src )
|
||||||
{
|
{
|
||||||
|
@ -136,7 +136,7 @@ GSList *AddToWadList(GSList *wadlist, const char *shadername, const char *wad)
|
||||||
{
|
{
|
||||||
if (strcmp(shadername,"color") == 0)
|
if (strcmp(shadername,"color") == 0)
|
||||||
return wadlist;
|
return wadlist;
|
||||||
ExtractFilePath(shadername,tmpstr);
|
HYDRA_ExtractFilePath(shadername,tmpstr);
|
||||||
// Sys_Printf("checking: %s\n",shadername);
|
// Sys_Printf("checking: %s\n",shadername);
|
||||||
|
|
||||||
int l = strlen(tmpstr) - 1;
|
int l = strlen(tmpstr) - 1;
|
||||||
|
@ -149,7 +149,7 @@ GSList *AddToWadList(GSList *wadlist, const char *shadername, const char *wad)
|
||||||
return wadlist;
|
return wadlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExtractFileName(tmpstr,tmpstr);
|
HYDRA_ExtractFileName(tmpstr,tmpstr);
|
||||||
|
|
||||||
wadname = (char *)malloc(strlen(tmpstr) + 5);
|
wadname = (char *)malloc(strlen(tmpstr) + 5);
|
||||||
sprintf(wadname,"%s.wad",tmpstr);
|
sprintf(wadname,"%s.wad",tmpstr);
|
||||||
|
@ -200,7 +200,7 @@ void UpdateWadKeyPair( void )
|
||||||
if (stricmp(pEpair->key,"wad") == 0)
|
if (stricmp(pEpair->key,"wad") == 0)
|
||||||
{
|
{
|
||||||
strcpy(wads,pEpair->value);
|
strcpy(wads,pEpair->value);
|
||||||
ConvertDOSToUnixName(wads,wads);
|
HYDRA_ConvertDOSToUnixName(wads,wads);
|
||||||
|
|
||||||
Sys_Printf("HydraToolz: Current wad key is \"%s\"!\n",wads);
|
Sys_Printf("HydraToolz: Current wad key is \"%s\"!\n",wads);
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ void UpdateWadKeyPair( void )
|
||||||
|
|
||||||
if (strchr(p1,'/') || strchr(p1,'\\'))
|
if (strchr(p1,'/') || strchr(p1,'\\'))
|
||||||
{
|
{
|
||||||
ExtractFileName(p1,cleanwadname);
|
HYDRA_ExtractFileName(p1,cleanwadname);
|
||||||
wadlist = AddToWadList (wadlist, NULL, cleanwadname);
|
wadlist = AddToWadList (wadlist, NULL, cleanwadname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -295,7 +295,7 @@ void UpdateWadKeyPair( void )
|
||||||
if (wads[0])
|
if (wads[0])
|
||||||
strcat(wads,";");
|
strcat(wads,";");
|
||||||
|
|
||||||
actualwad = vfsGetFullPath((char *)wadlist->data);
|
actualwad = vfsGetFullPath((char *)wadlist->data, 0, 0);
|
||||||
|
|
||||||
if (actualwad)
|
if (actualwad)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "AboutDialog.h"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
||||||
|
|
|
@ -60,6 +60,7 @@ typedef int BOOL;
|
||||||
#include "gtkdlgs.h"
|
#include "gtkdlgs.h"
|
||||||
#include "prtview.h"
|
#include "prtview.h"
|
||||||
#include "portals.h"
|
#include "portals.h"
|
||||||
|
#include "resource.h" // main symbols
|
||||||
|
|
||||||
#define MSG_PREFIX "Portal Viewer plugin: "
|
#define MSG_PREFIX "Portal Viewer plugin: "
|
||||||
#define PRTVIEW_MINOR "prtview"
|
#define PRTVIEW_MINOR "prtview"
|
||||||
|
|
|
@ -38,6 +38,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
class IGL2DWindow
|
class IGL2DWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IGL2DWindow() { }
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
@ -49,6 +50,7 @@ public:
|
||||||
class IGL3DWindow
|
class IGL3DWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IGL3DWindow() { }
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
|
|
@ -55,6 +55,7 @@ to make sure they have been decref'ed ? (sounds easy, may not be that much).
|
||||||
class IShader
|
class IShader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IShader() { }
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
|
|
@ -44,6 +44,7 @@ typedef void (* PFN_QERAPP_MAPPRINTF) ( char *text, ... );
|
||||||
class IPluginTexdef
|
class IPluginTexdef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IPluginTexdef() { }
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
|
|
@ -41,6 +41,7 @@ public:
|
||||||
eRadioButton,
|
eRadioButton,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtual ~IToolbarButton() { }
|
||||||
virtual const char* getImage() const = 0;
|
virtual const char* getImage() const = 0;
|
||||||
virtual const char* getText() const = 0;
|
virtual const char* getText() const = 0;
|
||||||
virtual const char* getTooltip() const = 0;
|
virtual const char* getTooltip() const = 0;
|
||||||
|
|
|
@ -34,6 +34,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
class IWindowListener
|
class IWindowListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IWindowListener() { }
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
@ -65,6 +66,7 @@ public:
|
||||||
class IWindow
|
class IWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IWindow() {}
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
@ -107,6 +109,7 @@ public:
|
||||||
class IListener
|
class IListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IListener() {}
|
||||||
// Increment the number of references to this object
|
// Increment the number of references to this object
|
||||||
virtual void IncRef () = 0;
|
virtual void IncRef () = 0;
|
||||||
// Decrement the reference count
|
// Decrement the reference count
|
||||||
|
@ -119,6 +122,7 @@ public:
|
||||||
class IXYWndWrapper
|
class IXYWndWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IXYWndWrapper() {}
|
||||||
virtual void SnapToGrid( int x1, int y1, vec3_t pt ) = 0;
|
virtual void SnapToGrid( int x1, int y1, vec3_t pt ) = 0;
|
||||||
virtual VIEWTYPE GetViewType( void ) = 0;
|
virtual VIEWTYPE GetViewType( void ) = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -580,6 +580,7 @@ typedef unsigned long (* PFN_QERAPP_GETTICKCOUNT) ();
|
||||||
class IModelCache
|
class IModelCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IModelCache() { }
|
||||||
virtual entity_interfaces_t *GetByID(const char *id, const char* version) = 0;
|
virtual entity_interfaces_t *GetByID(const char *id, const char* version) = 0;
|
||||||
virtual void DeleteByID(const char *id, const char* version) = 0;
|
virtual void DeleteByID(const char *id, const char* version) = 0;
|
||||||
virtual void RefreshAll() = 0;
|
virtual void RefreshAll() = 0;
|
||||||
|
@ -590,12 +591,14 @@ typedef IModelCache* (* PFN_GETMODELCACHE)();
|
||||||
class IFileTypeList
|
class IFileTypeList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IFileTypeList() { }
|
||||||
virtual void addType(filetype_t type) = 0;
|
virtual void addType(filetype_t type) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IFileTypeRegistry
|
class IFileTypeRegistry
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IFileTypeRegistry() { }
|
||||||
virtual void addType(const char* key, filetype_t type) = 0;
|
virtual void addType(const char* key, filetype_t type) = 0;
|
||||||
virtual void getTypeList(const char* key, IFileTypeList* typelist) = 0;
|
virtual void getTypeList(const char* key, IFileTypeList* typelist) = 0;
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -143,7 +143,7 @@ static void LoadIDSP (const char *name, byte ** pic, int *width, int *height)
|
||||||
//
|
//
|
||||||
// load the file
|
// load the file
|
||||||
//
|
//
|
||||||
length = vfsLoadFile ((char *) name, (void **) &buffer);
|
length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
|
||||||
if (length == (unsigned int) -1)
|
if (length == (unsigned int) -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ static void LoadHLW (const char *name, byte ** pic, int *width, int *height)
|
||||||
//
|
//
|
||||||
// load the file
|
// load the file
|
||||||
//
|
//
|
||||||
length = vfsLoadFile ((char *) name, (void **) &buffer);
|
length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
|
||||||
if (length == (unsigned int) -1)
|
if (length == (unsigned int) -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ static void LoadMIP (const char *name, byte ** pic, int *width, int *height)
|
||||||
//
|
//
|
||||||
// load the file
|
// load the file
|
||||||
//
|
//
|
||||||
length = vfsLoadFile ((char *) name, (void **) &buffer);
|
length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
|
||||||
if (length == (unsigned int) -1)
|
if (length == (unsigned int) -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ static void LoadMIP (const char *name, byte ** pic, int *width, int *height)
|
||||||
|
|
||||||
mipdatasize = GET_MIP_DATA_SIZE(lpMip->width,lpMip->height);
|
mipdatasize = GET_MIP_DATA_SIZE(lpMip->width,lpMip->height);
|
||||||
|
|
||||||
palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette);
|
palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette, 0);
|
||||||
if (palettelength == 768)
|
if (palettelength == 768)
|
||||||
palette = loadedpalette;
|
palette = loadedpalette;
|
||||||
else
|
else
|
||||||
|
|
|
@ -36,7 +36,7 @@ void LoadM32(const char *name, unsigned char **pic, int *width, int *height)
|
||||||
unsigned char *buffer, *m32_file_buffer;
|
unsigned char *buffer, *m32_file_buffer;
|
||||||
|
|
||||||
// open file
|
// open file
|
||||||
if ( length = vfsLoadFile ((char *) name, (void **) &m32_file_buffer) == (unsigned int) -1)
|
if ( length = vfsLoadFile ((char *) name, (void **) &m32_file_buffer, 0) == (unsigned int) -1)
|
||||||
{
|
{
|
||||||
Sys_Printf("Unable to open file %s\n",name);
|
Sys_Printf("Unable to open file %s\n",name);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -44,7 +44,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
|
||||||
strcat(text_buf, ".pcx.m8");
|
strcat(text_buf, ".pcx.m8");
|
||||||
|
|
||||||
// open file
|
// open file
|
||||||
if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer) == (unsigned int) -1)
|
if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1)
|
||||||
{
|
{
|
||||||
strcpy(text_buf, name);
|
strcpy(text_buf, name);
|
||||||
for(i=(strlen(text_buf)-1); i>0; i--)
|
for(i=(strlen(text_buf)-1); i>0; i--)
|
||||||
|
@ -56,7 +56,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
strcat(text_buf, ".m8");
|
strcat(text_buf, ".m8");
|
||||||
if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer) == (unsigned int) -1)
|
if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1)
|
||||||
{
|
{
|
||||||
Sys_Printf("Unable to open file %s\n",name);
|
Sys_Printf("Unable to open file %s\n",name);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -40,7 +40,7 @@ void LoadWAL(const char *name, unsigned char **pic, int *width, int *height)
|
||||||
unsigned char *buffer, *wal_file_buffer;
|
unsigned char *buffer, *wal_file_buffer;
|
||||||
|
|
||||||
// open file
|
// open file
|
||||||
if ( length = vfsLoadFile ((char *) name, (void **) &wal_file_buffer) == (unsigned int) -1)
|
if ( length = vfsLoadFile ((char *) name, (void **) &wal_file_buffer, 0) == (unsigned int) -1)
|
||||||
{
|
{
|
||||||
Sys_Printf("Unable to open file %s\n",name);
|
Sys_Printf("Unable to open file %s\n",name);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -644,7 +644,7 @@ void GetTexMods(bool b_SetUndoPoint)
|
||||||
{
|
{
|
||||||
g_bListenUpdate=FALSE;
|
g_bListenUpdate=FALSE;
|
||||||
SetChangeInFlags_Face_Heretic2 ( get_texdef_face_list() );
|
SetChangeInFlags_Face_Heretic2 ( get_texdef_face_list() );
|
||||||
SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint );
|
SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint, false );
|
||||||
g_bListenUpdate=TRUE;
|
g_bListenUpdate=TRUE;
|
||||||
|
|
||||||
if (b_SetUndoPoint)
|
if (b_SetUndoPoint)
|
||||||
|
|
|
@ -643,7 +643,7 @@ void GetTexMods(bool b_SetUndoPoint)
|
||||||
{
|
{
|
||||||
g_bListenUpdate=FALSE;
|
g_bListenUpdate=FALSE;
|
||||||
SetChangeInFlags_Face_Quake2 ( get_texdef_face_list() );
|
SetChangeInFlags_Face_Quake2 ( get_texdef_face_list() );
|
||||||
SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint );
|
SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint, false );
|
||||||
g_bListenUpdate=TRUE;
|
g_bListenUpdate=TRUE;
|
||||||
|
|
||||||
if (b_SetUndoPoint)
|
if (b_SetUndoPoint)
|
||||||
|
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
// stdafx.cpp : source file that includes just the standard includes
|
// stdafx.cpp : source file that includes just the standard includes
|
||||||
// stdafx.obj will contain the pre-compiled type information
|
// stdafx.obj will contain the pre-compiled type information
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "StdAfx.h"
|
||||||
|
|
||||||
// TODO: reference any additional headers you need in STDAFX.H
|
// TODO: reference any additional headers you need in STDAFX.H
|
||||||
// and not in this file
|
// and not in this file
|
||||||
|
|
|
@ -91,8 +91,8 @@ private:
|
||||||
|
|
||||||
rectangle_t m_rectangle;
|
rectangle_t m_rectangle;
|
||||||
|
|
||||||
GdkGC* m_gc;
|
|
||||||
GtkWidget* m_widget;
|
GtkWidget* m_widget;
|
||||||
|
GdkGC* m_gc;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CamWnd : public GLWindow
|
class CamWnd : public GLWindow
|
||||||
|
|
|
@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
class CXYWndWrapper : public IXYWndWrapper
|
class CXYWndWrapper : public IXYWndWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~CXYWndWrapper() {}
|
||||||
void SnapToGrid( int x1, int y1, vec3_t pt );
|
void SnapToGrid( int x1, int y1, vec3_t pt );
|
||||||
VIEWTYPE GetViewType( void );
|
VIEWTYPE GetViewType( void );
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,6 +44,7 @@ struct message_info_s;
|
||||||
class ISAXHandler
|
class ISAXHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~ISAXHandler() { }
|
||||||
virtual void saxStartElement( struct message_info_s *ctx, const xmlChar *name, const xmlChar **attrs ) = 0;
|
virtual void saxStartElement( struct message_info_s *ctx, const xmlChar *name, const xmlChar **attrs ) = 0;
|
||||||
virtual void saxEndElement( struct message_info_s *ctx, const xmlChar *name ) = 0;
|
virtual void saxEndElement( struct message_info_s *ctx, const xmlChar *name ) = 0;
|
||||||
virtual void saxCharacters( struct message_info_s *ctx, const xmlChar *ch, int len ) = 0;
|
virtual void saxCharacters( struct message_info_s *ctx, const xmlChar *ch, int len ) = 0;
|
||||||
|
|
Loading…
Reference in a new issue