Commit graph

20 commits

Author SHA1 Message Date
Wedge009
c06ae14efc VS2019 seems to complain if std::string is used but <string> is not actually #included. 2019-04-06 17:20:14 +11:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0
(cherry-picked from commit bc4d22dc72)
2018-10-07 03:23:36 +00:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
6c22e41914 Quit Confirmation: delete copy and move constructors 2016-10-07 14:13:25 +11:00
Charles Dang
0ca4e6c943 Convert uses of boost functional to standard library variants
This commit converts the following function calls:

* boost::bind                          -> std::bind
* boost::function and boost::functionN -> std::function
* boost::ref and boost::cref           -> std::ref and std::cref
* boost::bad_function_call             -> std::bad_function_call

In the process, it was discovered that std::bind has trouble with overloaded
functions. There were two such cases in the code:

* gui2::twindow had an ancient unused overload to draw(). The overload was removed.
* gui2::trepeating_button was binding tdispatcher::fire. This case was converted
  to a lambda.
2016-04-04 02:20:52 +11:00
Ignacio R. Morelle
c548e4a61a New Year copyright update 2016-03-02 22:16:50 -03:00
Charles Dang
a33a669858 Mark quit_confirmation constructor as explicit 2016-02-24 16:54:34 +11:00
Charles Dang
7d0a02ec7d Bunch of refactoring of editor quit handling 2016-02-24 12:28:38 +11:00
Charles Dang
27d4091ec5 Reapplied a fix from f067332d0f that got lost in ed9ead2ac9 2016-02-24 10:35:26 +11:00
Charles Dang
ed9ead2ac9 Add flag to quit_confirmation::quit() to only quit out of game 2016-02-24 10:30:48 +11:00
Celtic Minstrel
f067332d0f fix spelling 2016-02-23 17:48:45 -05:00
Charles Dang
b73cc5eb08 Small formatting cleanup 2016-02-24 09:44:33 +11:00
gfgtdf
0484fdd414 fix quit confirmation promt in editor
previously it showed the default "do you want to quit the game" message
when leaving the editor. using the red cross in the corner.

This also changes some dublication of the "Do you really want to quit?"
translatable string in the c++ code.
2016-02-23 20:35:54 +01:00
Ignacio R. Morelle
39033be9d3 Doxygen and other comment formatting 2015-09-07 20:21:40 -03:00
Ignacio R. Morelle
b68686eb45 Add include guards 2015-09-01 16:35:59 -03:00
gfgtdf
e5920a1240 fix warning
previously this happened when bringing up the quit dialog with the
Objectives (GUI2) dialog active: warning gui/event: Unhandled event 12.
2015-09-01 00:43:20 +02:00
gfgtdf
a247fae572 add comments 2015-08-31 22:59:08 +02:00
gfgtdf
0abde389dc show confirmation dialog when quitting
when quitting (for example by clicking on the red cross in the corner) the
game now asks for a confirmation, if there is currently a (re-)play or
the editor running.
2015-08-31 22:45:57 +02:00