151 Commits

Author SHA1 Message Date
Steve Cotton
3279973960 Remove gui/auxiliary/filter.hpp and unused includes of pane.hpp
Remove filter.hpp, which wasn't included by any file, and relied on
pane.hpp indirectly via one of the lines removed in this commit. The sorting
functionality seems to have moved into pane.cpp when matrix.hpp was added.
Note: there are two other unrelated `filter.hpp` files.

Header pane.hpp is only used by matrix.hpp, pane.cpp, and window_builder.cpp;
the class is also used via a forward-declaration in window.hpp, which friends
it, allowing a call to window::layout_linked_widgets. The class is also made
accessible via REGISTER_WIDGET.

Part of #6540.
2022-03-09 13:54:05 +01:00
Pentarctagon
c4c292fa3b Replace all remaining usages if MAKE_ENUM. 2022-03-03 21:23:02 -06:00
newfrenchy83
4664946dc5 update codeblock projectfiles 2021-08-01 15:34:16 +02:00
newfrenchy83
88873e3fae update codeblock projectfiles 2021-07-18 11:48:58 -05:00
newfrenchy83
3e05480b5b fix codeblock projectfiles 2021-06-03 18:53:16 -05:00
newfrenchy83
b9cbc084c3 update codeblock projectfiles 2021-06-02 13:18:21 -05:00
newfrenchy83
8c1142be4b update codeblock projectfiles 2021-05-22 12:26:00 -05:00
newfrenchy83
612e6c5f84 update codeblock projectfiles 2021-05-12 13:23:35 -05:00
newfrenchy83
1df8572726 Update Codeblock projectfiles 2021-03-17 14:42:18 -05:00
newfrenchy83
6f85e689e6
Update codeblock for recent changes (#5455)
* update codeblock for recent changes

* update codeblock test for recent changes

* Update wesnothd.cbp

* Update wesnothd.cbp

* update scons codeblock
2021-01-17 21:45:31 +11:00
newfrenchy83
3e46f3d4b4
update codeblock projectfiles (#5444)
* update codeblock project

* updat campaingd codeblock projectfiles

* update wesnothd codeblock scons
2021-01-17 03:04:18 +11:00
Steve Cotton
4205de91e5 Remove the editor's unused set_starting_position dialog
6424d79f489129791fedb23e267565922dba3751 changed to using an editor palette instead.
2020-12-30 15:01:47 +01:00
newfrenchy83
b9dcc32e24
fix codeblocks projectfiles (#5356) 2020-12-14 10:35:42 +11:00
newfrenchy83
1d17f559a3
update codeblocks projectfiles 2020-12-10 16:21:29 +01:00
Charles Dang
6e2f3e099e Removed utils/functional.hpp 2020-12-04 15:30:46 +11:00
newfrenchy83
da224661c4 update scons codeblock projectfiles 2020-12-01 16:53:09 -06:00
newfrenchy83
118dcc0f09
update code block projectfiles (#5271)
* Update campaignd.cbp

* add commandline_arg to codeblock projectfiles

* Update tests.cbp

* Update wesnoth.cbp
2020-11-10 09:04:56 -06:00
newfrenchy83
51f7340067
fix codeblocks project for lua widget 2020-09-04 13:20:16 +02:00
newfrenchy83
2be22c8030
fix codeblock projectfiles (#5078) 2020-08-12 11:11:28 +02:00
newfrenchy83
f33330de19
fix wesnothd and campaignd codeblock projectfiles after #5029 (#5035) 2020-08-07 11:18:05 +02:00
newfrenchy83
e05be0b597
update codeblocks projectfiles (#5033) 2020-08-06 12:21:02 -05:00
newfrenchy83
4becc858f1
update codeblock projectfiles 2020-07-03 17:16:26 -05:00
newfrenchy83
fd0cd29683
updated codeblock projectfiles 2020-06-29 16:48:26 -05:00
newfrenchy83
a3859e4b46
fix cb projecfile after #4797 (#4811)
* fix cb projecfile after https://github.com/wesnoth/wesnoth/pull/4797/files

* Update tests.cbp

* Update wesnoth.cbp
2020-03-16 08:31:26 -05:00
Iris Morelle
48e6b821b0 i18n: Convert POSIX/Win32 locale table file into a map
This removes the need for the separate file and the giant if chain by
using a std::map instead.
2020-01-19 12:40:03 -03:00
newfrenchy83
207954ac09
Update wesnoth.cbp 2019-12-10 11:44:20 +01:00
newfrenchy83
ee98253671 Update wesnoth.cbp 2019-11-06 07:49:33 +11:00
newfrenchy83
0c04d26543 Update wesnoth.cbp 2019-10-19 04:02:48 -05:00
Celtic Minstrel
7c07cc71c0 Remove support for legacy menu markup 2019-09-18 22:48:53 -04:00
newfrenchy83
62a005f4cf fix for sample_user_handler removal. (#4273) 2019-08-24 14:26:32 +02:00
newfrenchy83
148ea6fbe7 update CB scons project 2019-01-04 19:06:28 +02:00
newfrenchy83
6d06cee014 Update Code::Blocks SCons project (#3762) 2018-12-06 09:29:00 +02:00
Martin Hrubý
96bbebb514 Fix building with Xcode 10 (#3460)
Resolves #3458.

(cherry-picked from commit 50301f84e33d828c39835bc47f04dd1107631960)
2018-10-07 03:24:17 +00:00
Celtic Minstrel
c2ed9c5c19 MSVC project file cleanup
- Add a few missing headers
- Remove redundant headers
- Remove duplicate include of filesystem sources
- Remove an empty source file

[ci skip]
2016-12-01 16:18:03 -05:00
Celtic Minstrel
1816e1147f Remove asserts.hpp
This file seemed to be some sort of reimplementation of <cassert> except
with some "feature" of trying to force the debugger to hit a breakpoint.
However, any decent debugger already hits a breakpoint with a standard
assert(), and this file really only served to make it harder to see the
actual error when using a Windows console.

Some instances of these macros were replaced with assert(), others with
VALIDATE() which instead throws an exception (and possibly puts up a
dialog, if the exception is caught before main()).

A few other related changes that got mixed in:
- Several error conditions now have a better error message (or indeed
  any error message at all)
- Removed an unnecessary use of std::distance on a Boost iterator range.
- Removed a large chunk of code which did nothing but construct a widget
  builder and then crash; the code was unreachable since an earlier loop
  did the same thing (without crashing), and the comment seems to suggest
  that it was a (seemingly no longer necessary) workaround for some buggy
  compilers / linkers.
- noreturn added to the list of compatibilty C++11 features in global.hpp
  (Of supported compilers, only VC12 lacks the new [[attribute]] syntax.)
- Fix detection of GCC in global.hpp

# Conflicts:
#	src/gui/widgets/settings.cpp
2016-09-18 15:57:47 -04:00
JaMiT
d46a327029 Missing file, moved files, and alphabetical order 2016-09-05 00:42:03 -05:00
Kevin_Xi
cb482a38fc Register the new stage and update build files 2014-08-23 01:12:51 +08:00
Nathan Walker
2e362fb75e update project files for campaign_settings 2014-08-09 19:38:28 -05:00
aquileia
8f2010ebf5 Remove config_assign.cpp 2014-07-18 15:48:42 +02:00
aquileia
add4f9a558 Fix projectfiles for #242 2014-07-18 15:44:56 +02:00
Chris Beck
a4b194c079 add recall list manager
This commit adds a dedicated recall list manager class.

The purpose of this is to

- Simplify the code that interacts with the recall list. Prior to
the commit most such code was based on iteration with explicit
iterators, and called global helper functions implemented in
unit.cpp to wrap the code that finds a unit in a vector. It turns
out that interacting with the recall list was the *only* use of
that code, so we make it a member function of the recall list
manager and take it out of unit.cpp.

Most of the code that touches the recall list was previously
7 or 8 lines with a for loop, now it tends to be 1 or 2 lines,
although further refactor may be possible.

- Improve encapsulation. This makes it possible to track how
other classes are interacting with the recall list, and may
make it easier to debug recall list problems by adding debugging
output to the class.
2014-06-18 12:54:32 -04:00
Chris Beck
504e4932b5 split off animation fcs from unit to unit_animation_component
This is a strict refactor, all we do is move the functions and
variables used just for animations to "unit_animation_component",
and include the necessary headers appropriate.

With a bit more work we can probably remove the graphics related
headers from unit.hpp
2014-06-17 02:18:46 -04:00
Chris Beck
0be1d731d5 add drawable unit class
drawable unit inherits from unit, and implements the draw function,
used only by the display. when the display wants to use the function,
it casts a unit pointer to a drawable_unit, and draws it. this
improves encapsulation.
2014-06-16 22:10:31 -04:00
Chris Beck
c8ada18ff4 update project files 2014-06-16 17:37:53 -04:00
Chris Beck
2510b779f6 rename animated.i to animated.tpp 2014-06-15 09:54:55 -04:00
Chris Beck
a60d5b0018 move formula ai features of unit to a unit formula manager
This use of handle-body idiom saves *alot* of includes, since a
huge number of objects include unit indirectly, and make no use
of the ai formula features.
2014-06-14 18:39:57 -04:00
Alexander van Gessel
07a6ba695e Merge pull request #199 from aquileia/ignore
Restructure and merge .gitignore files
2014-06-13 16:27:01 +02:00
Chris Beck
da552fc10e fixup segfaulting editor, favoring display_context over game_board
Currently, the editor does not generate game_board objects, and
leaves the pointer resources::gameboard null. This commit makes
map_location, reports, and tod_manager, three things used in
editor mode, use the display_context pointer instead of the
game_board pointer. We also move a function to display_context,
which finds a const unit * to a visible unit at a hex.
2014-06-11 01:28:15 -04:00
Chris Beck
522988c689 update projectfiles to include display_context.hpp 2014-06-10 18:45:44 -04:00
aquileia
1e9a508795 gitignore: Merge rules from projectfiles/ 2014-06-09 01:00:41 +02:00