Commit Graph

37 Commits

Author SHA1 Message Date
ttimo 0f24e27e6b retarget to Visual Studio 2022 (v143) and Windows 10 SDK 2024-01-21 18:30:08 -06:00
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 0f6034a0af Hurr empty the texture dropdown like the Q3 surface inspector does. 2018-03-18 15:11:17 -04:00
Jay Dolan 54f4d2b1f5 Use the configured texture scale as default for SnapToGrid. 2018-03-16 15:12:30 -04:00
Jay Dolan 36bd918baf Copy the Q3 surface inspector's increments setup, and improve it to set increments on the step spinners. 2018-03-16 15:11:22 -04:00
Jay Dolan 90967079d7 Fix copypasta bug in idtech2 surface in spector scale increments 2018-03-16 14:57:32 -04:00
Jay Dolan a2082a31bc Provide better defaults for increments. 2018-03-16 14:26:37 -04:00
Jay Dolan 2daf5a71eb Fix debug copy-pasta. 2018-03-16 14:26:08 -04:00
Jay Dolan f1e2b7862b #TTimo/GtkRadiant/issues/608 Populate the texture name if only one texture is used in faces list. 2018-03-16 13:34:47 -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 0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02: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
Pan7 bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01: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 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
jdolan 43594358c1 Enable decimal precision for texture rotation in idTech2 surface dialog. 2013-11-19 21:30:28 -05:00
jdolan 7d092b3417 Cleanup to idTech2 surface inspector. 2013-10-05 11:20:01 -04:00
jdolan 19cd2b04fd Merging. 2013-09-11 20:44:05 -04:00
jdolan 87c191207b Hide surface inspector on ESC, just like Q3 inspector. 2013-09-11 18:39:13 -04: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
jdolan f79bd4709b Remove unused variables. 2013-07-08 23:21:28 -04:00
jdolan b28ec5a77d Start to clean up the internal structure of the idTech2 surface inspector. 2013-07-08 23:09:09 -04:00
jdolan 1019199749 Rename surface_ufoai to surface_idtech2. This plugin should be used for all Quake1 / Quake2 derived games. Updated game packs to be checked in shortly. 2013-07-08 22:20:13 -04:00