gtkradiant/radiant
rambetter b1b208f12e Improving native Windows file dialog in Rambetter-temp-fixes branch some
more.  This adds new code and improves code committed in revision 351.

- Calling GetOpenFileName() and GetSaveFileName() from a new thread, thus
allowing the main thread to continue refreshing GtkRadiant while the native
Windows file dialog is open.  Prevents the ugly "hall of mirrors" effect.
A similar approach is used in the open source Inkscape, so I'm not doing
anything too dangerous here.  However, this _is_ hacky in my opinion.

- Using memset() to zero out the memory of the OPENFILENAME structure.
This is safer than selectively setting fields on this structure.  We no
longer need to explicity set certain field to NULL now.

- "all files" filter now lowercase to be consistent with other code.

These changes have been tested on Windows XP and Windows 7.

THIS COMMIT SHOULD BE MERGED INTO TRUNK AT SOME POINT!!!


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@352 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-18 03:03:55 +00:00
..
.cvsignore transfer from internal tree r5311 branches/1.4-gpl 2007-09-12 18:54:28 +00:00
bp_dlg.cpp ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +00:00
brush.cpp ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +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 apply back 335 and 336, will need to update deps and put a zip out 2010-11-26 19:50:08 +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 Backing out r347 and r345. Keeping r346. 2010-12-15 06:56:33 +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 Progressing on bringing Radiant 1.6.x to a workable state on Windows. 2010-12-15 09:52:26 +00:00
glwidget.h apply back 335 and 336, will need to update deps and put a zip out 2010-11-26 19:50:08 +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 Backing out r347 and r345. Keeping r346. 2010-12-15 06:56:33 +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 Improving native Windows file dialog in Rambetter-temp-fixes branch some 2010-12-18 03:03:55 +00:00
gtkmisc.h ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +00:00
main.cpp apply back 335 and 336, will need to update deps and put a zip out 2010-11-26 19:50:08 +00:00
mainframe.cpp Backing out r347 and r345. Keeping r346. 2010-12-15 06:56:33 +00:00
mainframe.h merge branch work back into trunk 2008-09-01 17:34:10 +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 ixing a big problem on Windows platforms that has to do with copying over 2010-12-13 04:50:40 +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 * applied patch by StefanV (from mailinglist) that fixes an error in config.py (broke compilation) and some string conversion warnings 2008-09-06 08:35:17 +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 Improving native Windows file dialog in Rambetter-temp-fixes branch some 2010-12-18 03:03:55 +00:00
preferences.h * applied Shamus Jedi Academy patch for Zeroradiant (gamepack will follow soon) 2008-12-16 22:33:22 +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 ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +00:00
radiant.vcproj merge branch work back into trunk 2008-09-01 17:34:10 +00:00
radiant_VC9.vcproj Backing out r347 and r345. Keeping r346. 2010-12-15 06:56:33 +00:00
resource.h eol style 2007-11-04 03:47:06 +00:00
select.cpp merge branch work back into trunk 2008-09-01 17:34:10 +00:00
select.h ABToSVK commit 2008-08-24 03:20:51 +00:00
selectedface.cpp ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +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 fix undo bug with entities (lights) - Markus Fischer 2010-01-08 04:01:08 +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 ported over the 1.5 branch version of q3map2 which is newer 2008-07-25 07:31:37 +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 apply back 335 and 336, will need to update deps and put a zip out 2010-11-26 19:50:08 +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