Commit Graph

58 Commits

Author SHA1 Message Date
Timothee 'TTimo' Besset c9fce466d1 Upgrade Windows project files to 2019 2022-11-24 18:19:08 -06:00
Thomas Debesse 8aeff6b09a Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.

It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.

This also makes the code future proof if the STL decides
to define some other types with common name.

This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.

```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
  132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
      |                                            ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/ios:40,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from libs/missing.h:76,
                 from radiant/qe3.h:40,
                 from radiant/stdafx.h:39,
                 from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
  404 |   enum class byte : unsigned char;
      |                              ^~~~
```
2022-07-14 17:18:51 +02:00
Jay Dolan 3b8e83fb80 Set increments on the surface inspector step spinners. This makes these far more useful. 2018-03-16 15:12:03 -04:00
Timothee Besset 08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Pan7 902e311149 Fix Surface Inspector texture name 2017-08-10 21:42:09 +02:00
Pan7 0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02:00
Timothee Besset 0a03a455c3 fix win32 msvc build - this should be tested more often, really 2017-04-16 21:28:07 -05:00
Timothee Besset 3de5e43b8f Merge branch 'surfmainwin' of git://github.com/Pan7/GtkRadiant into Pan7-surfmainwin 2017-04-15 13:17:56 -05:00
Pan7 cc75513546 Main app window for surface plugins 2017-03-31 13:56:34 +02:00
Pan7 aeaa370f09 Left align for the text of Labels 2017-03-28 09:29:11 +02:00
Pan7 e9aa6a836f More Dialog improvements 2017-03-26 17:09:18 +02:00
Pan7 c2e44c532a Dialog improvements 2017-03-23 09:37:50 +01:00
Pan7 626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Timothee "TTimo" Besset 044c0b6156 Merge pull request #430 from Pan7/axialcrash
Fix axial button click crash
2017-03-12 12:43:03 -05:00
Timothee "TTimo" Besset f3f2e0262f Merge branch 'master' into gtk-i81n 2017-03-12 12:42:16 -05:00
Timothee "TTimo" Besset cb1e21565b Merge pull request #429 from Pan7/gtkimpro
gtk improvements
2017-03-12 12:41:24 -05:00
Pan7 74a1d9bc17 Fix axial button click crash 2017-03-12 03:25:26 +01:00
Pan7 26f4bd0f4f gtk i81n 2017-03-10 23:03:03 +01:00
Pan7 9f22a81a64 gtk improvements 2017-03-10 22:44:05 +01:00
Pan7 afca61523a Use GTK2 events 2017-03-04 18:36:21 +01:00
TTimo a26c818a1e remove the old .vcproj 2017-01-01 09:08:37 -06:00
Timothee Besset b36b3ba4b6 Visual Studio 2015 on debug configs too 2016-04-24 14:52:52 -05:00
Timothee Besset 5ed4d02c78 more Visual Studio 2015 conversion 2015-12-24 19:21:23 -06:00
TTimo 48369d78f9 - Convert to Visual Studio 2015
- Drop STLPort
- Rebuild libxml2 binaries, update project files accordingly
- Rebuild jpeg-9 binaries
2015-11-07 23:44:49 -06:00
Timothee "TTimo" Besset d12e955133 wtf. better 2013-11-26 16:11:55 -06:00
Timothee Besset 4d6d4d8f6c fix surface dialog closing up when typing in the texture box 2013-11-26 20:45:15 +00:00
Timothee "TTimo" Besset 99e8ea8cf2 Remove done, apply button from idtech3 surface inspector.
Turn off the half baked undo, all changes applied immediate for now.
2013-09-14 18:45:29 -05:00
Timothee "TTimo" Besset 0912498271 remove the offsets column 2013-09-08 08:51:14 -05:00
TTimo 666847b0ce switch to xp compatible compiler toolchain, add/fix an archive and upload script for the VM builder 2013-08-24 22:50:12 +00:00
Chris Brooke 60a0f49052 some more gtk spin-button cleanup ( Preferences / Surface Inspector / Patch Inspector / Arbitrary Rotation / gtkGenSurf plugin ) 2013-07-22 03:06:06 +01:00
Timothee "TTimo" Besset 48998b0f4a rework the surface inspector buttons. support Esc key to hide/cancel the dialog, support Enter key to apply. and a bunch of internal cleanup to get familiar with that code. 2013-07-07 14:10:02 -05:00
Timothee Besset f72f41cf1d fix ws2_32 lib dep 2013-06-02 00:17:56 +01:00
Timothee Besset f397e4a8d6 link libxml2 2013-06-01 23:39:34 +01:00
Timothee Besset 9f425c0c72 add include path for gdk-pixbuf 2013-06-01 23:26:37 +01:00
Timothee Besset 1ec0ec94ba switching to newer gtk and libxml. wip 2013-06-01 23:05:35 +01:00
Timothee "TTimo" Besset 974213d297 Use a new version of the jpeg library, with x64 support 2013-05-27 22:08:36 -05:00
Timothee "TTimo" Besset 2ca658fe9f convert projects to msvc 2012 2013-05-23 20:44:41 -05:00
Timothee 'TTimo' Besset b36ee55e96 cleanup 2012-05-27 18:53:14 -05:00
Timothee TTimo Besset 830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
rambetter 88f8603d62 8MB stack size linker options on all VC2008 proj files.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@485 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:12:34 +00:00
rambetter 33da149be0 Backing out commit 483. Going to set linker flags instead.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@484 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:08:22 +00:00
rambetter e39f6f4bae Increasing stack size on Windows build.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@483 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 03:56:18 +00:00
rambetter 561e062c87 This is a major change that updates the 3rd party libs on Windows builds.
A couple of things are broken right now:
- OpenGL font in Windows not appearing (expected to be broken, will fix)
- Linux build broken because it loads some .vcproj files that are removed
- 3rd party libs are downloaded from porky.nerius.com, not id Software


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@473 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-02-21 14:37:49 +00:00
TTimo 7c46911658 rebuilt gtk binary dependencies file
fixed/optimized a number of VC9 project settings
fixed sprintf being hijacked by intl.dll stuff


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@345 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-13 04:21:05 +00:00
TTimo cc4e44e31a merge branch work back into trunk
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@319 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-01 17:34:10 +00:00
Forest Hale 88cea027e6 ported over the 1.5 branch version of q3map2 which is newer
made Visual Studio files work in VS2005 Express
fixed a ton of warnings in VS2005 Express
fixed some compile problems on OpenSUSE 11.0


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@302 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-25 07:31:37 +00:00
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
mattn d5fc00a4f8 * removed unnecessary gi18n.h inclusions
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@283 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 14:30:58 +00:00
mattn 99b8049c8c * fixed warnings
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@278 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 11:40:59 +00:00