gtkradiant/radiant
mattn 995f6a1011 * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer)
* Quote http://zerowing.idsoftware.com/pipermail/gtkradiant/2008-July/011094.html : Attached to this message is a patch for a "somewhat working" brush
primitives surface dialog. It is an ugly hack, as it converts between
fake texdef notations and brush primitives whenever values are needed.
Had to fix an accuracy bug: the surface dialog rounded all rotation
values to integer angles, which SEVERELY broke things for me (changed
the Gtk spin object to use 4 digits, which is enough for me).

Also, I changed the fake texdef / brush primitives conversions to use
long double internally, as float's roundoff errors were quite visible to
me when testing.

Hope the remaining roundoff errors from converting back and forth won't
kill me, but it worked for a simple map example.

Also, I had to separate out "Snap to grid" and "Don't clamp" into two
separare options. They now mean:

- Snap to grid: snaps drag/etc. actions to the grid
- Don't clamp: disable brush point snapping during many operations, like
  merely shifting brushes, editing texturing parameters, map loading,
  etc.

The reason is that I do need the grid, but I don't want to get my
objects messed up by the snapping in my map. As I am using free
rotations, this DOES change quite much.

The config.py change is needed for compilation on Debian stable;
Debian's scons does not use the CFLAGS variable, but just CCFLAGS and
CXXFLAGS. In newer scons versions, CFLAGS is _shared_ flags for C and
C++, so if you want to require these, you don't need to include the
CFLAGS in CXXFLAGS too.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@301 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-10 08:30:47 +00:00
..
.cvsignore transfer from internal tree r5311 branches/1.4-gpl 2007-09-12 18:54:28 +00:00
bp_dlg.cpp * some new translateable strings 2008-07-04 21:43:45 +00:00
brush.cpp * brush primitive patch by divVerent 2008-07-10 07:38:14 +00:00
brush.h eol style 2007-11-04 03:47:06 +00:00
brush_primit.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
brushscript.cpp more eol-style 2007-11-04 03:53:53 +00:00
camera.h eol style 2007-11-04 03:47:06 +00:00
camwindow.cpp * removed unnecessary gi18n.h inclusions 2008-06-26 14:30:58 +00:00
camwindow.h apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes 2008-02-18 20:54:58 +00:00
csg.cpp more eol-style 2007-11-04 03:53:53 +00:00
dialog.cpp * removed unnecessary gi18n.h inclusions 2008-06-26 14:30:58 +00:00
dialog.h * removed unnecessary gi18n.h inclusions 2008-06-26 14:30:58 +00:00
dialoginfo.cpp * removed unnecessary gi18n.h inclusions 2008-06-26 14:30:58 +00:00
drag.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
eclass.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
eclass_def.cpp more eol-style 2007-11-04 03:53:53 +00:00
eclass_def.h eol style 2007-11-04 03:47:06 +00:00
error.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
feedback.cpp from nxn 2007-11-04 03:59:18 +00:00
feedback.h from nxn 2007-11-04 03:59:18 +00:00
file.cpp more eol-style 2007-11-04 03:53:53 +00:00
file.h eol style 2007-11-04 03:47:06 +00:00
filters.cpp * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data) 2008-06-26 07:52:02 +00:00
filters.h * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data) 2008-06-26 07:52:02 +00:00
findtexturedialog.cpp * more translateable strings 2008-07-04 22:11:30 +00:00
findtexturedialog.h eol style 2007-11-04 03:47:06 +00:00
glinterface.cpp more eol-style 2007-11-04 03:53:53 +00:00
glwidget.cpp * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data) 2008-06-26 07:52:02 +00:00
glwidget.h eol style 2007-11-04 03:47:06 +00:00
glwindow.cpp more eol-style 2007-11-04 03:53:53 +00:00
glwindow.h eol style 2007-11-04 03:47:06 +00:00
groupdialog.cpp * fixed spawnflags dialog due to local and global variable mix (thanks divVerent) 2008-07-10 07:41:14 +00:00
groupdialog.h * reactivated some old quake2 code 2008-07-05 08:53:43 +00:00
gtkdlgs.cpp * more translateable strings 2008-07-05 08:37:22 +00:00
gtkfilesel-darwin.c eol style 2007-11-04 03:47:06 +00:00
gtkfilesel-darwin.h eol style 2007-11-04 03:47:06 +00:00
gtkfilesel-linux.c * more translateable strings 2008-07-05 08:37:22 +00:00
gtkfilesel-linux.h eol style 2007-11-04 03:47:06 +00:00
gtkfilesel.c eol style 2007-11-04 03:47:06 +00:00
gtkfilesel.h eol style 2007-11-04 03:47:06 +00:00
gtkmisc.cpp * more translateable strings 2008-07-04 22:11:30 +00:00
gtkmisc.h * introduced a new config variable to be able to load maps directly from the enginePath/basePath/maps directory 2008-06-26 18:50:18 +00:00
main.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
mainframe.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
mainframe.h * reverted some const changes in order to let g_slist_append work again 2008-06-26 13:53:24 +00:00
Makefile.mac transfer from internal tree r5311 branches/1.4-gpl 2007-09-12 18:54:28 +00:00
map.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
map.h eol style 2007-11-04 03:47:06 +00:00
missing.cpp * fixed dir handle leaks for windows 2008-06-26 15:19:48 +00:00
parse.cpp more eol-style 2007-11-04 03:53:53 +00:00
parse.h eol style 2007-11-04 03:47:06 +00:00
patchdialog.cpp * more translateable strings 2008-07-04 22:11:30 +00:00
patchdialog.h eol style 2007-11-04 03:47:06 +00:00
plugin.h eol style 2007-11-04 03:47:06 +00:00
pluginentities.cpp more eol-style 2007-11-04 03:53:53 +00:00
pluginmanager.cpp * added filter api to create new filters from within plugins 2008-03-16 09:42:56 +00:00
pluginmanager.h eol style 2007-11-04 03:47:06 +00:00
pmesh.cpp * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data) 2008-06-26 07:52:02 +00:00
points.cpp more eol-style 2007-11-04 03:53:53 +00:00
points.h from nxn 2007-11-04 03:59:18 +00:00
preferences.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
preferences.h * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
profile.cpp more eol-style 2007-11-04 03:53:53 +00:00
qe3.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
qe3.h * brush primitive patch by divVerent 2008-07-10 07:38:14 +00:00
qedefs.h eol style 2007-11-04 03:47:06 +00:00
qfiles.h eol style 2007-11-04 03:47:06 +00:00
qgl-mac.c eol style 2007-11-04 03:47:06 +00:00
qgl.c eol style 2007-11-04 03:47:06 +00:00
qgl.h * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
qgl_ext.cpp more eol-style 2007-11-04 03:53:53 +00:00
queuedraw.cpp more eol-style 2007-11-04 03:53:53 +00:00
radiant.ico transfer from internal tree r5311 branches/1.4-gpl 2007-09-12 18:54:28 +00:00
radiant.rc transfer from internal tree r5311 branches/1.4-gpl 2007-09-12 18:54:28 +00:00
radiant.vcproj MSVC8: change output dir rules to put binaries into install/ 2008-04-25 02:17:12 +00:00
resource.h eol style 2007-11-04 03:47:06 +00:00
select.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
select.h eol style 2007-11-04 03:47:06 +00:00
selectedface.cpp more eol-style 2007-11-04 03:53:53 +00:00
stdafx.cpp more eol-style 2007-11-04 03:53:53 +00:00
stdafx.h eol style 2007-11-04 03:47:06 +00:00
surfacedialog.cpp * more translateable strings 2008-07-04 22:11:30 +00:00
surfacedialog.h eol style 2007-11-04 03:47:06 +00:00
surfaceplugin.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
surfaceplugin.h eol style 2007-11-04 03:47:06 +00:00
targetname.cpp more eol-style 2007-11-04 03:53:53 +00:00
texmanip.cpp more eol-style 2007-11-04 03:53:53 +00:00
texmanip.h eol style 2007-11-04 03:47:06 +00:00
textures.h eol style 2007-11-04 03:47:06 +00:00
texwindow.cpp * reactivated WXY_Print function to generate screenshots from the xy window 2008-06-27 15:09:36 +00:00
texwindow.h eol style 2007-11-04 03:47:06 +00:00
ui.cpp more eol-style 2007-11-04 03:53:53 +00:00
ui.h apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes 2008-02-18 20:54:58 +00:00
undo.cpp * const stuff 2008-06-26 13:58:20 +00:00
undo.h * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data) 2008-06-26 07:52:02 +00:00
vertsel.cpp more eol-style 2007-11-04 03:53:53 +00:00
watchbsp.cpp * removed a lot of HACKs for several games by merging the enginepath_win32, enginepath_linux and enginepath_macos from 1.5 2008-07-05 10:21:36 +00:00
watchbsp.h eol style 2007-11-04 03:47:06 +00:00
winding.cpp more eol-style 2007-11-04 03:53:53 +00:00
winding.h eol style 2007-11-04 03:47:06 +00:00
xmlstuff.h apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes 2008-02-18 20:54:58 +00:00
xywindow.cpp * divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer) 2008-07-10 08:30:47 +00:00
xywindow.h eol style 2007-11-04 03:47:06 +00:00
z.cpp more eol-style 2007-11-04 03:53:53 +00:00
z.h eol style 2007-11-04 03:47:06 +00:00
zwindow.cpp more eol-style 2007-11-04 03:53:53 +00:00
zwindow.h eol style 2007-11-04 03:47:06 +00:00