Commit graph

132 commits

Author SHA1 Message Date
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
d7f0d04051 Fix "Wdith" typeo in preferences dialog. 2018-03-16 13:36:51 -04:00
Pan
9f52d441d9 Disable cubic clipping by default 2018-02-03 18:46:47 +01:00
Timothee "TTimo" Besset
a2bdc7ca43
Merge pull request #563 from illwieckz/emptydir
do not list empty shader/texture directories
2018-01-27 14:24:08 -06:00
neumond
cfaa83f3b1 Unvanquished appears in menu 2018-01-07 21:16:53 +01:00
Thomas Debesse
b1c4fb1304 make “hide empty directories” an option 2017-09-03 20:16:53 +02:00
Thomas Debesse
9d7cc6cd17 preproc: FreeBSD game names are like Linux ones 2017-08-31 00:45:29 +02:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Timothee Besset
732497b098 make hollow uses caulk, based on a pref setting 2017-08-20 16:24:56 -05:00
Pan7
816bfc0081 Fix warning missing sentinel in function call 3 2017-08-13 20:46:34 +02:00
Pan7
5e4b1607f7 Allow 6 default texture scale digits 2017-08-13 14:04:57 +02:00
Pan7
0a83bde73e Fix/Add missing loading of fixed texture size settings 2017-08-13 00:52:15 +02:00
TTimo
db467908ad Re-enable intel HD GL workaround, still needed .. see issue #512 2017-08-05 15:50:28 -05:00
Pan7
2d23567675 Fixed textures for the texture browser 2017-07-22 06:11:47 +02:00
Pan7
55ef0c7e53 Move Texture Directory List setting to Texture Settings 2017-05-28 01:29:00 +02:00
Timothee Besset
e02a9194b7 clean out a bunch of obsolete vendor and hardware specific GL workarounds 2017-05-27 17:15:06 -05:00
Timothee Besset
9123ea1cb0 fix preferences panes being off by 1 2017-05-27 17:01:11 -05:00
Pan7
1294c35880 Merge branch 'master' of https://github.com/TTimo/GtkRadiant into TexDirList
# Conflicts:
#	radiant/preferences.cpp
2017-05-22 13:51:27 +02:00
Pan7
c1f482b034 Adjusting the layout of the "Configure games" dialog 2017-05-08 00:01:49 +02:00
Pan7
7e95dbb1e0 Texture directory list 2017-05-02 02:15:35 +02:00
Pan7
9bdaea08a6 Turn text fields into numeric text fields only 2017-04-27 17:21:14 +02:00
Pan7
0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02:00
Pan7
ecf10f473a Switch OK-Cancel order for the preference dialog 2017-04-22 21:32:38 +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
Timothee "TTimo" Besset
81256e7f8a Merge pull request #440 from Pan7/gtkref
Replacing deprecated gtk_widget_ref/unref
2017-03-19 09:25:58 -05:00
Pan7
dc6faca5b0 Replacing deprecated gtk_widget_ref/unref 2017-03-19 11:30:01 +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
Timothee "TTimo" Besset
d9b4f20896 Merge pull request #427 from Pan7/beepsave
Beep save option
2017-03-09 06:57:32 -05:00
Pan7
3ebb7df7a5 Beep save option 2017-03-09 08:50:45 +01:00
Timothee Besset
1c83f98625 another UI tweak 2017-03-02 22:11:29 -06:00
Timothee Besset
f716de2a5b reword the game config and selection dialog for clarity. exit without opting into the preferences since that would crash 2017-03-02 22:04:15 -06:00
Timothee "TTimo" Besset
9154ce75a7 Merge pull request #306 from Pan7/min3dmspeed
Min speed for 3d mouse velocity
2015-10-03 11:47:11 -05:00
Ensiform
cbab8835f9 C++11 and newer reserves X"foo" and "bar"Y for string literal syntax.
This patch fixes the instances that were found by MSVC 2015 compiling so far.
2015-09-29 18:35:44 -05:00
Pan7
3496e421c6 Min speed for 3d mouse velocity 2015-09-28 15:22:37 +02:00
Eric Wasylishen
12bc0b1633 Add basic quake1 support to preferences.{h,cpp} 2015-05-26 21:23:29 -06:00
Jay Dolan
c626a12e7a Use glib's g_get_user_special_dir to resolve 'Documents'. This works on XP (My Documents) and Vista+ (Documents). 2015-03-18 11:00:57 -04:00
Jay Dolan
3446bf9b27 Merge branch 'master' of https://github.com/TTimo/GtkRadiant 2015-03-08 11:32:56 -04:00
Jay Dolan
7cd4aa4fe0 Use \My Documents\My Games\ on Windows. This aligns us with NetRadiant and the actual location of this folder on Windows systems. It was an error to use /Users/jdolan\My Games. That's not a thing. 2015-03-08 11:31:53 -04:00
Timothee "TTimo" Besset
f555e3d13e Merge pull request #261 from neumond/imzoom
Improved mousewheel zoom-in
2015-03-08 10:23:43 -05:00
Jay Dolan
6a5412d95c Updates for Quake2World -> Quetoo project renaming. 2015-03-08 09:55:36 -04:00
neumond
27946b2e13 Zoom option in preferences 2014-03-24 07:46:49 +04:00
jdolan
084169f348 Re-introduce 'quake2' flag is 'idTech2' flag for properly launching legacy games. 2013-10-05 15:21:27 -04:00
jdolan
5101b5b0aa Setup engine, enginepath, executablespath and prefix more thoroughly for q2w.game. 2013-10-05 11:21:44 -04:00