]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
apply patch from Martin Gerhardy - more quake2 related modules compiled and misc...
authortimo <timo@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Mon, 18 Feb 2008 20:54:58 +0000 (20:54 +0000)
committertimo <timo@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Mon, 18 Feb 2008 20:54:58 +0000 (20:54 +0000)
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/ZeroRadiant@195 8a3a26a2-13c4-0310-b231-cf6edde360e5

32 files changed:
SConscript.module
config.py
contrib/bobtoolz/DBrush.cpp
contrib/bobtoolz/DEntity.cpp
contrib/camera/funchandlers.cpp
contrib/camera/misc.cpp
contrib/camera/misc.h
contrib/gtkgensurf/bitmap.cpp
contrib/gtkgensurf/dec.cpp
contrib/gtkgensurf/face.cpp
contrib/gtkgensurf/gendlgs.cpp
contrib/gtkgensurf/genmap.cpp
contrib/gtkgensurf/gensurf.cpp
contrib/hydratoolz/plugin.cpp
contrib/prtview/AboutDialog.cpp
contrib/prtview/stdafx.h
include/igl.h
include/ishaders.h
include/isurfaceplugin.h
include/itoolbar.h
include/iui.h
include/qerplugin.h
plugins/imagehl/lbmlib.cpp
plugins/imagem8/m32.cpp
plugins/imagem8/m8.cpp
plugins/imagewal/wal.cpp
plugins/surface_heretic2/surfacedialog.cpp
plugins/surface_quake2/surfacedialog.cpp
plugins/textool/StdAfx.cpp
radiant/camwindow.h
radiant/ui.h
radiant/xmlstuff.h

index 46309c814bf7e7da49d47a8808824948daa99316..8229def9e7aa92eeecbe9db5ef961904fda9cf7c 100644 (file)
@@ -17,6 +17,25 @@ if ( libname == 'image' ):
        useJPEG = True
 if ( libname == 'surface' ):
        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 )
 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
 
index 3db7fe9abf8e4731b7af070bd9284a41af541fef..21cfb7a35aaf81b0a0b1ed8ee2eeed444013f806 100644 (file)
--- a/config.py
+++ b/config.py
@@ -100,19 +100,47 @@ class Config:
                                shlib_objects_extra[libname] = SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
 
                        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/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/mapxml/mapxml.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 )
                                libname = os.path.splitext( libname )[0]
                                shlib_objects = shlib_objects_extra['synapse']
                                if ( libname == 'entity' ):
                                        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']
                                Export( 'project', 'shlib_objects' )
                                module = SConscript( os.path.join( build_dir, 'SConscript.module' ) )
@@ -125,7 +153,7 @@ class Config:
                        config['name'] = config_name
                        config['shared'] = False
                        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 )
                        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' ]:
index 8d254a6c2cb9fd1a0e1913b5e32cea70c1933f6b..73ad40a8ca566ebcd8da84ce99efbddf90fdd255 100644 (file)
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include "DBrush.h"
 #include "DWinding.h"
-#include "dialogs-gtk.h"
+#include "dialogs/dialogs-gtk.h"
 
 #include "misc.h"
 
@@ -388,7 +388,7 @@ brush_t* DBrush::BuildInRadiant(bool allowDestruction, int* changeCnt, entity_t*
 
        if(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());
        } else {
                g_FuncTable.m_pfnCommitBrushHandle(QER_brush);
index 4d3610c82629d7d75d48a4e9d1ef4c1288f2adab..3719d20e7d07f8c1613890519be115458eb83aee 100644 (file)
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include "DEntity.h"
 
-#include "dialogs-gtk.h"
+#include "dialogs/dialogs-gtk.h"
 #include "misc.h"
 #include "CPortals.h"
 
index 30f11b5f90627f29111cdb384cc4e54e36880864..fafae2a61516f031dd252f61b3c8b2785ba9cabc 100644 (file)
@@ -102,7 +102,7 @@ void DoLoadCamera()
   char basepath[PATH_MAX];
 
        if( firstCam && firstCam->HasBeenSaved() )
-    ExtractFilePath( firstCam->GetFileName(), basepath );
+    CAMERA_ExtractFilePath( firstCam->GetFileName(), basepath );
   else
     strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
 
@@ -157,7 +157,7 @@ void DoSaveCamera() {
     return;
 
   if( GetCurrentCam()->GetFileName()[0] )
-    ExtractFilePath( GetCurrentCam()->GetFileName(), basepath );
+    CAMERA_ExtractFilePath( GetCurrentCam()->GetFileName(), basepath );
   else
     strcpy( basepath, g_FuncTable.m_pfnGetGamePath() );
 
index 60f0bcc83544a04663063329a1aa6df1a03d5da9..a279df06420d9e4d4f3489a4bc439c102ea5f599 100644 (file)
@@ -52,7 +52,7 @@ char* UnixToDosPath( char* path )
 #endif
 }
 
-void ExtractFilePath( const char *path, char *dest )
+void CAMERA_ExtractFilePath( const char *path, char *dest )
 {
   const char *src;
 
index 52062c884f424627ff44ec212620c0fbaaabe7be..b5c060331c5324e294350bb758d3eea4a37679d5 100644 (file)
@@ -26,7 +26,7 @@ Copyright (C) 2002 Splash Damage Ltd.
 
 void Sys_ERROR( char* text, ... );
 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 );
 bool FileExists (const char *filename);
 int Q_stricmp (const char *s1, const char *s2);
index bd5f6172f38daa422263e451bffba5215af9c98b..4ea9393f34e04593e8d7c68f76f710a3e738204c 100644 (file)
@@ -161,7 +161,7 @@ static unsigned char* OpenBitmapFile ()
   if (bmBitsPixel != 8)
   {
     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);
     return NULL; 
   }
@@ -417,7 +417,7 @@ bool OpenBitmap ()
     char Text[256];
 
     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, "");
   }
 
index c8569a6e1ca54b75e17403e9a5db8ad8091186a0..f2daa816536652b82e6fa0c753aff87bef572a62 100644 (file)
@@ -150,7 +150,7 @@ void MakeDecimatedMap(int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri)
                           */
                                g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,
                                        "Error: Couldn't find the triangle bounding a point.",
-                                       "Decimation Error",MB_ICONEXCLAMATION);
+                                       "Decimation Error",MB_ICONEXCLAMATION, NULL);
                                return;
                        }
                        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,
                                        "Error: Couldn't find the triangle bounding a point.",
-                                       "Decimation Error",MB_ICONEXCLAMATION);
+                                       "Decimation Error",MB_ICONEXCLAMATION, NULL);
                                return;
                        }
                        if(!Tri[Node[i].tri].flag)
index 8a5aa822a6867520e4b9afd068c0782f8a8685b4..3ef44e697bf800b15a81dd301fd74ed71cbb8b5a 100644 (file)
@@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #define        SIDE_BACK               1
 #define        SIDE_CROSS              -2
 
-vec3 vec3_origin = {0,0,0};
+vec3 gensurf_vec3_origin;
 
 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;
                
-       VectorCopy(vec3_origin,vup);
+       VectorCopy(gensurf_vec3_origin,vup);
        switch (x)
        {
        case 0:
@@ -356,7 +356,7 @@ void UseFaceBounds()
                planepts[2][2] = QERFaceData->m_v3[2];
 
                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;
 
                Dot = DotProduct(plane[2*i].normal,SurfNormal);
index 69c0805a9bbb744824232fa972dc9216d5ae1c01..a89db46e57d038dc8c17cf376d9a5c17d371602d 100644 (file)
@@ -98,7 +98,7 @@ void About (GtkWidget *parent)
                                                                                                                         "Enhancements\n"
                                                                                                                         "Pablo Zurita (pablo@qeradiant.com)\n"
                                                                                                                         "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)
   {
     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);
     return;
   }
@@ -725,7 +725,7 @@ static void main_go (GtkWidget *widget, gpointer data)
   if (NV < 1 || NV > 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);
     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 "
                                  "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);
     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 "
                                  "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);
     return;
   }
 
   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);
     return;
   }
@@ -908,7 +908,7 @@ static void bitmap_browse (GtkWidget *widget, gpointer data)
   const char *filename;
   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)
   {
@@ -950,7 +950,7 @@ static gint fix_value_entryfocusout (GtkWidget* widget, GdkEventFocus *event, gp
   {
     gdk_beep ();
     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);
     gtk_entry_set_text (GTK_ENTRY(widget), Text);
     gtk_window_set_focus (GTK_WINDOW (gtk_widget_get_toplevel (widget)), widget);
index f4b118b26c6cd23874dc21041214b0acd66757a4..6c04ef607750d4bd40e169431fd276be17bb3b69 100644 (file)
@@ -172,7 +172,7 @@ int MapPatches()
     if(NH_remain < 0)
     {
       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;
     j0 = 0;
@@ -204,7 +204,7 @@ int MapPatches()
       if(NV_remain < 0)
       {
         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;
@@ -1981,7 +1981,7 @@ void MakeBrush(BRUSH *brush)
 
   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;
   }
   vp=(g_FuncTable.m_pfnCreateBrushHandle)();
index 32b54b5578519e41452325207671bee5a9b4c50f..dd1ceec0ceb6b128fdd896eb49e885a47475755e 100644 (file)
@@ -397,7 +397,7 @@ void UpdatePreview (bool DataChange)
 void SaveSetup (GtkWidget *parent)
 {
   const char *name = g_FuncTable.m_pfnFileDialog (parent, false, "Save GenSurf Settings",
-                                             g_FuncTable.m_pfnProfileGetDirectory ());
+                                             g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf");
 
   if (name != NULL)
   {
@@ -436,7 +436,7 @@ void OpenSetup (GtkWidget *parent, int UseDefaults)
     name = g_strdup ("plugins/defaults.srf"); // dummy string
   else
     name = g_FuncTable.m_pfnFileDialog (parent, true, "Open GenSurf Settings",
-                                        g_FuncTable.m_pfnProfileGetDirectory ());
+                                        g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf");
 
   if(name != NULL)
   {
index 1b8abd7d8e8518e1dc1fef0827ad3bca9f4414af..93cd2769d8b9a62d5cd77825218c7cd6465b45b9 100644 (file)
@@ -69,7 +69,7 @@ _QEREntityTable g_EntityTable;
 Extract file parts
 ====================
 */
-void ExtractFilePath (const char *path, char *dest)
+void HYDRA_ExtractFilePath (const char *path, char *dest)
 {
   const char *src;
 
@@ -85,7 +85,7 @@ void ExtractFilePath (const char *path, char *dest)
   dest[src-path] = 0;
 }
 
-void ExtractFileName (const char *path, char *dest)
+void HYDRA_ExtractFileName (const char *path, char *dest)
 {
   const char *src;
 
@@ -105,7 +105,7 @@ void ExtractFileName (const char *path, char *dest)
   *dest = 0;
 }
 
-void ConvertDOSToUnixName( char *dst, const char *src )
+void HYDRA_ConvertDOSToUnixName( char *dst, const char *src )
 {
   while ( *src )
   {
@@ -136,7 +136,7 @@ GSList *AddToWadList(GSList *wadlist, const char *shadername, const char *wad)
   {
     if (strcmp(shadername,"color") == 0)
       return wadlist;
-    ExtractFilePath(shadername,tmpstr);
+    HYDRA_ExtractFilePath(shadername,tmpstr);
     // Sys_Printf("checking: %s\n",shadername);
 
     int l = strlen(tmpstr) - 1;
@@ -149,7 +149,7 @@ GSList *AddToWadList(GSList *wadlist, const char *shadername, const char *wad)
       return wadlist;
     }
 
-    ExtractFileName(tmpstr,tmpstr);
+    HYDRA_ExtractFileName(tmpstr,tmpstr);
 
     wadname = (char *)malloc(strlen(tmpstr) + 5);
     sprintf(wadname,"%s.wad",tmpstr);
@@ -200,7 +200,7 @@ void UpdateWadKeyPair( void )
     if (stricmp(pEpair->key,"wad") == 0)
     {
       strcpy(wads,pEpair->value);
-      ConvertDOSToUnixName(wads,wads);
+      HYDRA_ConvertDOSToUnixName(wads,wads);
 
       Sys_Printf("HydraToolz: Current wad key is \"%s\"!\n",wads);
 
@@ -217,7 +217,7 @@ void UpdateWadKeyPair( void )
 
         if (strchr(p1,'/') || strchr(p1,'\\'))
         {
-          ExtractFileName(p1,cleanwadname);
+          HYDRA_ExtractFileName(p1,cleanwadname);
           wadlist = AddToWadList (wadlist, NULL, cleanwadname);
         }
         else
@@ -295,7 +295,7 @@ void UpdateWadKeyPair( void )
       if (wads[0])
         strcat(wads,";");
 
-      actualwad = vfsGetFullPath((char *)wadlist->data);
+      actualwad = vfsGetFullPath((char *)wadlist->data, 0, 0);
 
       if (actualwad)
       {
index 3bb3a33aeb3778dc6ef302f50abe52332a816f74..0237010f814fcce42c4e7e45832547d8ca1711e7 100644 (file)
@@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 //
 
 #include "stdafx.h"
+#include "AboutDialog.h"
 
 #ifdef _DEBUG
 #define new DEBUG_NEW
index e251fa7996dc4cf88796a8ad4f03ed46e636334d..ff28a47446d9daf7d02b7c8fc60a557b5fa08748 100644 (file)
@@ -60,6 +60,7 @@ typedef int   BOOL;
 #include "gtkdlgs.h"
 #include "prtview.h"
 #include "portals.h"
+#include "resource.h"          // main symbols
 
 #define MSG_PREFIX "Portal Viewer plugin: "
 #define PRTVIEW_MINOR "prtview"
index 630d3d34f85ca661b659b7e19859faa527abc57c..e657241faff6100f1d58c3ff134c5157352d9f42 100644 (file)
@@ -38,6 +38,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 class IGL2DWindow
 {
 public:
+       virtual ~IGL2DWindow() { }
        // Increment the number of references to this object
        virtual void IncRef () = 0;
        // Decrement the reference count
@@ -49,6 +50,7 @@ public:
 class IGL3DWindow
 {
 public:
+       virtual ~IGL3DWindow() { }
   // Increment the number of references to this object
   virtual void IncRef () = 0;
   // Decrement the reference count
index e50233ed9264875a11adc277c81588b3fcca8590..b04d867983e6007880ded37b9572ca5ab26c26ff 100644 (file)
@@ -55,6 +55,7 @@ to make sure they have been decref'ed ? (sounds easy, may not be that much).
 class IShader
 {
 public:
+       virtual ~IShader() { }
   // Increment the number of references to this object
   virtual void IncRef () = 0;
   // Decrement the reference count
index d7be03fdf1421ec0457410066f70afe2abacbea8..61e2fdbab80d209fd768c31eb572f57d5c1bd3d2 100644 (file)
@@ -44,6 +44,7 @@ typedef void (* PFN_QERAPP_MAPPRINTF) ( char *text, ... );
 class IPluginTexdef
 {
 public:
+       virtual ~IPluginTexdef() { }
        // Increment the number of references to this object
        virtual void IncRef () = 0;
        // Decrement the reference count
index 221938f6b8ba2ce175b5f3522ee3477859bdc84b..75b7bfdb3c9524c7e96f41a570352cc5df011f41 100644 (file)
@@ -41,6 +41,7 @@ public:
     eRadioButton,
   };
 
+  virtual ~IToolbarButton() { }
   virtual const char* getImage() const = 0;
   virtual const char* getText() const = 0;
   virtual const char* getTooltip() const = 0;
index d3af6777933db7ad7000f9483aa2423dd4f7f8b4..19e93d88caf6969db586a74534ca51bb2d62825a 100644 (file)
@@ -34,6 +34,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 class IWindowListener
 {
 public:
+       virtual ~IWindowListener() { }
   // Increment the number of references to this object
   virtual void IncRef () = 0;
   // Decrement the reference count
@@ -65,6 +66,7 @@ public:
 class IWindow
 {
 public:
+       virtual ~IWindow() {}
   // Increment the number of references to this object
   virtual void IncRef () = 0;
   // Decrement the reference count
@@ -107,6 +109,7 @@ public:
 class IListener
 {
 public:
+       virtual ~IListener() {}
   // Increment the number of references to this object
   virtual void IncRef () = 0;
   // Decrement the reference count
@@ -119,6 +122,7 @@ public:
 class IXYWndWrapper
 {
 public:
+       virtual ~IXYWndWrapper() {}
   virtual void SnapToGrid( int x1, int y1, vec3_t pt ) = 0;
   virtual VIEWTYPE GetViewType( void ) = 0;
 };
index e6f1a96e2842ab794e6ad79dbef3634fba44a5bf..e6b652a841b70d66229f608c186975fc8da522b8 100644 (file)
@@ -580,6 +580,7 @@ typedef unsigned long (* PFN_QERAPP_GETTICKCOUNT) ();
 class IModelCache
 {
 public:
+       virtual ~IModelCache() { }
   virtual entity_interfaces_t *GetByID(const char *id, const char* version) = 0;
   virtual void DeleteByID(const char *id, const char* version) = 0;
   virtual void RefreshAll() = 0;
@@ -590,12 +591,14 @@ typedef IModelCache* (* PFN_GETMODELCACHE)();
 class IFileTypeList
 {
 public:
+       virtual ~IFileTypeList() { }
   virtual void addType(filetype_t type) = 0;
 };
 
 class IFileTypeRegistry
 {
 public:
+       virtual ~IFileTypeRegistry() { }
   virtual void addType(const char* key, filetype_t type) = 0;
   virtual void getTypeList(const char* key, IFileTypeList* typelist) = 0;
 private:
index 066ef39a37c5bc2469e9f661c3c85c4c1fba1fbd..02e3e1008994f0456a7d8229584ed429fea69a79 100644 (file)
@@ -143,7 +143,7 @@ static void LoadIDSP (const char *name, byte ** pic, int *width, int *height)
   //
   // load the file
   //
-  length = vfsLoadFile ((char *) name, (void **) &buffer);
+  length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
   if (length == (unsigned int) -1)
     return;
 
@@ -329,7 +329,7 @@ static void LoadHLW (const char *name, byte ** pic, int *width, int *height)
   //
   // load the file
   //
-  length = vfsLoadFile ((char *) name, (void **) &buffer);
+  length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
   if (length == (unsigned int) -1)
     return;
 
@@ -514,7 +514,7 @@ static void LoadMIP (const char *name, byte ** pic, int *width, int *height)
   //
   // load the file
   //
-  length = vfsLoadFile ((char *) name, (void **) &buffer);
+  length = vfsLoadFile ((char *) name, (void **) &buffer, 0);
   if (length == (unsigned int) -1)
     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);
 
-  palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette);
+  palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette, 0);
   if (palettelength == 768)
     palette = loadedpalette;
   else
index b5a1fe93494225829ae026ff4baa130994cd01d5..5bbe616ed57f4dc1a6db13cb32f25b4e34f5c3f2 100644 (file)
@@ -36,7 +36,7 @@ void LoadM32(const char *name, unsigned char **pic, int *width, int *height)
     unsigned char       *buffer, *m32_file_buffer;
 
     // 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);
        return;
index 8424367e34e983ef439b150b900e801441b07198..4b6dea55ff39182f45a12db402c03ad74c3a0855 100644 (file)
@@ -44,7 +44,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
     strcat(text_buf, ".pcx.m8");
 
     // 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);
        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");
-       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);
                return;
index b46af62b81818e0d3312b478e5b2b667656e5d88..6bb8ca23cd6a99ca664dc58359befd49ec2459d7 100644 (file)
@@ -40,7 +40,7 @@ void LoadWAL(const char *name, unsigned char **pic, int *width, int *height)
     unsigned char       *buffer, *wal_file_buffer;
 
     // 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);
       return;
index ed6278991a9a78f8e1a22e2cdac4d05af9b209ac..7ee893aaf83529409e4ceda2705c568f40bac74f 100644 (file)
@@ -644,7 +644,7 @@ void GetTexMods(bool b_SetUndoPoint)
   {
     g_bListenUpdate=FALSE;
     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;
 
     if (b_SetUndoPoint)
index 45749c6de11b0090430d11aa22f59115cae3bb0c..a9461323cb367deac206a86b4a07f23c22a391b9 100644 (file)
@@ -643,7 +643,7 @@ void GetTexMods(bool b_SetUndoPoint)
   {
     g_bListenUpdate=FALSE;
     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;
 
     if (b_SetUndoPoint)
index ad9e9673f7fea868feb3a6d2c0aa5dfa5c58cca6..e35608905c1f95a0a890e4f1a95ea7050dc6de48 100644 (file)
@@ -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.obj will contain the pre-compiled type information
 
-#include "stdafx.h"
+#include "StdAfx.h"
 
 // TODO: reference any additional headers you need in STDAFX.H
 // and not in this file
index b8d1be75ca0e5bf5860d100bb3196e289d176b17..e352d26a9409107ef7d7e4356b98ea3f6cbce133 100644 (file)
@@ -91,8 +91,8 @@ private:
 
   rectangle_t m_rectangle;
 
-  GdkGC* m_gc;
   GtkWidget* m_widget;
+  GdkGC* m_gc;
 };
 
 class CamWnd : public GLWindow
index 7bc99c949ab30bd160b4db9ad229fcb83608baf7..192c29d3a3d469569a8ef1c9bbd19b87bfc85c5d 100644 (file)
@@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 class CXYWndWrapper : public IXYWndWrapper
 {
 public:
+       virtual ~CXYWndWrapper() {}
   void SnapToGrid( int x1, int y1, vec3_t pt );
   VIEWTYPE GetViewType( void );
 };
index 98acca916254bc1bfa8959a94938c43777702b4d..9d8a514a89d059313e91d18bd14596ac997e72a2 100644 (file)
@@ -44,6 +44,7 @@ struct message_info_s;
 class ISAXHandler
 {
 public:
+       virtual ~ISAXHandler() { }
   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 saxCharacters( struct message_info_s *ctx, const xmlChar *ch, int len ) = 0;