Merge lp:~widelands-dev/widelands/boost-signals2 into lp:widelands

Proposed by Jens Beyer
Status: Merged
Merged at revision: 6695
Proposed branch: lp:~widelands-dev/widelands/boost-signals2
Merge into: lp:widelands
Diff against target: 601 lines (+71/-71)
28 files modified
CMakeLists.txt (+2/-2)
src/game_io/game_loader.cc (+1/-1)
src/logic/building.cc (+1/-1)
src/logic/building.h (+3/-3)
src/logic/instances.h (+2/-2)
src/logic/message.h (+1/-1)
src/logic/player.cc (+1/-1)
src/logic/warelist.h (+2/-2)
src/ui_basic/button.h (+4/-4)
src/ui_basic/checkbox.h (+4/-4)
src/ui_basic/editbox.h (+4/-4)
src/ui_basic/icongrid.h (+4/-4)
src/ui_basic/listselect.h (+4/-4)
src/ui_basic/messagebox.h (+4/-4)
src/ui_basic/multilineeditbox.h (+2/-2)
src/ui_basic/panel.h (+2/-2)
src/ui_basic/radiobutton.h (+3/-3)
src/ui_basic/scrollbar.h (+2/-2)
src/ui_basic/slider.h (+5/-5)
src/ui_basic/table.h (+5/-5)
src/wui/building_ui.cc (+1/-1)
src/wui/fieldaction.cc (+3/-3)
src/wui/gamechatpanel.h (+2/-2)
src/wui/mapview.h (+3/-3)
src/wui/minimap.h (+2/-2)
src/wui/waresdisplay.cc (+1/-1)
src/wui/waresdisplay.h (+2/-2)
src/wui/watchwindow.cc (+1/-1)
To merge this branch: bzr merge lp:~widelands-dev/widelands/boost-signals2
Reviewer Review Type Date Requested Status
SirVer Approve
Review via email: mp+178361@code.launchpad.net

Description of the change

Just for the kicks of it, I ported to (what I think is) boost signals2 ;-)

It compiles and runs fine on Ubuntu 12.04 LTS (with boost 1.46.1).

I also set boost 1.46.1 as minimum required boost version just to make sure, but I am open to set it to 1.39 as this is the version of the last stable API (as hjd says).

To post a comment you must log in.
Revision history for this message
SirVer (sirver) wrote :

Compiles for me and the changes are very straightforward. Merged. Thanks for looking into this Jens!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2013-07-23 18:09:24 +0000
+++ CMakeLists.txt 2013-08-02 18:49:35 +0000
@@ -117,7 +117,7 @@
117 set (Boost_FIND_COMPONENTS unit_test_framework signals)117 set (Boost_FIND_COMPONENTS unit_test_framework signals)
118 set (Boost_USE_MULTITHREADED ON)118 set (Boost_USE_MULTITHREADED ON)
119 set (Boost_DETAILED_FAILURE_MSG ON)119 set (Boost_DETAILED_FAILURE_MSG ON)
120 find_package(Boost 1.35.0 COMPONENTS unit_test_framework signals REQUIRED)120 find_package(Boost 1.46.1 COMPONENTS unit_test_framework signals REQUIRED)
121121
122 if (NOT DEFINED MSVC)122 if (NOT DEFINED MSVC)
123 # If boost unit test library is linked dynamically, BOOST_TEST_DYN_LINK must be defined123 # If boost unit test library is linked dynamically, BOOST_TEST_DYN_LINK must be defined
@@ -150,7 +150,7 @@
150 endif(DEFINED MSVC)150 endif(DEFINED MSVC)
151 set (Boost_USE_MULTITHREADED ON)151 set (Boost_USE_MULTITHREADED ON)
152 set (Boost_DETAILED_FAILURE_MSG ON)152 set (Boost_DETAILED_FAILURE_MSG ON)
153 find_package(Boost 1.35.0 COMPONENTS signals REQUIRED)153 find_package(Boost 1.46.1 COMPONENTS signals REQUIRED)
154endif (WL_UNIT_TESTS)154endif (WL_UNIT_TESTS)
155155
156option (WL_STRICT "If strict compilation mode is requested (almost every warning is an error)" OFF)156option (WL_STRICT "If strict compilation mode is requested (almost every warning is an error)" OFF)
157157
=== modified file 'src/game_io/game_loader.cc'
--- src/game_io/game_loader.cc 2013-07-27 15:09:18 +0000
+++ src/game_io/game_loader.cc 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#include "game_io/game_loader.h"20#include "game_io/game_loader.h"
2121
22#include <boost/bind.hpp>22#include <boost/bind.hpp>
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "game_io/game_cmd_queue_data_packet.h"25#include "game_io/game_cmd_queue_data_packet.h"
26#include "game_io/game_game_class_data_packet.h"26#include "game_io/game_game_class_data_packet.h"
2727
=== modified file 'src/logic/building.cc'
--- src/logic/building.cc 2013-07-27 10:37:24 +0000
+++ src/logic/building.cc 2013-08-02 18:49:35 +0000
@@ -448,7 +448,7 @@
448448
449 PlayerImmovable::cleanup(egbase);449 PlayerImmovable::cleanup(egbase);
450450
451 BOOST_FOREACH(boost::signals::connection& c, options_window_connections)451 BOOST_FOREACH(boost::signals2::connection& c, options_window_connections)
452 c.disconnect();452 c.disconnect();
453}453}
454454
455455
=== modified file 'src/logic/building.h'
--- src/logic/building.h 2013-07-26 20:19:36 +0000
+++ src/logic/building.h 2013-08-02 18:49:35 +0000
@@ -24,7 +24,7 @@
24#include <string>24#include <string>
25#include <vector>25#include <vector>
2626
27#include <boost/signal.hpp>27#include <boost/signals2.hpp>
2828
29#include "ai/ai_hints.h"29#include "ai/ai_hints.h"
30#include "logic/buildcost.h"30#include "logic/buildcost.h"
@@ -261,7 +261,7 @@
261261
262 void add_worker(Worker &);262 void add_worker(Worker &);
263 void remove_worker(Worker &);263 void remove_worker(Worker &);
264 mutable boost::signal<void ()> workers_changed;264 mutable boost::signals2::signal<void ()> workers_changed;
265265
266 void send_message266 void send_message
267 (Game & game,267 (Game & game,
@@ -308,7 +308,7 @@
308 bool m_seeing;308 bool m_seeing;
309309
310 // Signals connected for the option window310 // Signals connected for the option window
311 std::vector<boost::signals::connection> options_window_connections;311 std::vector<boost::signals2::connection> options_window_connections;
312312
313 // The former buildings descrs, with the current one in last position.313 // The former buildings descrs, with the current one in last position.
314 FormerBuildings m_old_buildings;314 FormerBuildings m_old_buildings;
315315
=== modified file 'src/logic/instances.h'
--- src/logic/instances.h 2013-07-27 15:09:18 +0000
+++ src/logic/instances.h 2013-08-02 18:49:35 +0000
@@ -28,7 +28,7 @@
28#include <boost/function.hpp>28#include <boost/function.hpp>
29#include <boost/noncopyable.hpp>29#include <boost/noncopyable.hpp>
30#include <boost/unordered_map.hpp>30#include <boost/unordered_map.hpp>
31#include <boost/signal.hpp>31#include <boost/signals2.hpp>
3232
33#include "logic/cmd_queue.h"33#include "logic/cmd_queue.h"
34#include "log.h"34#include "log.h"
@@ -202,7 +202,7 @@
202 * the game. No conncetion is handled in this class.202 * the game. No conncetion is handled in this class.
203 * \param serial : the object serial203 * \param serial : the object serial
204 */204 */
205 boost::signal<void(uint32_t)> removed;205 boost::signals2::signal<void(uint32_t)> removed;
206206
207 /**207 /**
208 * Attributes are fixed boolean properties of an object.208 * Attributes are fixed boolean properties of an object.
209209
=== modified file 'src/logic/message.h'
--- src/logic/message.h 2013-07-27 15:09:18 +0000
+++ src/logic/message.h 2013-08-02 18:49:35 +0000
@@ -21,7 +21,7 @@
21#define MESSAGE_H21#define MESSAGE_H
2222
23#include <string>23#include <string>
24#include <boost/signal.hpp>24#include <boost/signals2.hpp>
2525
26#include "logic/widelands.h"26#include "logic/widelands.h"
27#include "logic/widelands_geometry.h"27#include "logic/widelands_geometry.h"
2828
=== modified file 'src/logic/player.cc'
--- src/logic/player.cc 2013-08-01 08:33:15 +0000
+++ src/logic/player.cc 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#include "logic/player.h"20#include "logic/player.h"
2121
22#include <boost/bind.hpp>22#include <boost/bind.hpp>
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "economy/economy.h"25#include "economy/economy.h"
26#include "economy/flag.h"26#include "economy/flag.h"
2727
=== modified file 'src/logic/warelist.h'
--- src/logic/warelist.h 2013-07-26 20:19:36 +0000
+++ src/logic/warelist.h 2013-08-02 18:49:35 +0000
@@ -25,7 +25,7 @@
2525
26#include <SDL.h>26#include <SDL.h>
27#include <boost/bind.hpp>27#include <boost/bind.hpp>
28#include <boost/signal.hpp>28#include <boost/signals2.hpp>
2929
30#include "logic/widelands.h"30#include "logic/widelands.h"
3131
@@ -62,7 +62,7 @@
62 bool operator== (const WareList &) const;62 bool operator== (const WareList &) const;
63 bool operator!= (const WareList & wl) const {return not (*this == wl);}63 bool operator!= (const WareList & wl) const {return not (*this == wl);}
6464
65 mutable boost::signal<void ()> changed;65 mutable boost::signals2::signal<void ()> changed;
6666
67private:67private:
68 vector_type m_wares;68 vector_type m_wares;
6969
=== modified file 'src/ui_basic/button.h'
--- src/ui_basic/button.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/button.h 2013-08-02 18:49:35 +0000
@@ -22,7 +22,7 @@
2222
23#include <boost/bind.hpp>23#include <boost/bind.hpp>
24#include <boost/function.hpp>24#include <boost/function.hpp>
25#include <boost/signal.hpp>25#include <boost/signals2.hpp>
2626
27#include "constants.h"27#include "constants.h"
28#include "ui_basic/panel.h"28#include "ui_basic/panel.h"
@@ -85,9 +85,9 @@
85 // If no background is drawn, the button is drawn over the current background85 // If no background is drawn, the button is drawn over the current background
86 void set_draw_flat_background(bool set);86 void set_draw_flat_background(bool set);
8787
88 boost::signal<void ()> sigclicked;88 boost::signals2::signal<void ()> sigclicked;
89 boost::signal<void ()> sigmousein;89 boost::signals2::signal<void ()> sigmousein;
90 boost::signal<void ()> sigmouseout;90 boost::signals2::signal<void ()> sigmouseout;
9191
92protected:92protected:
93 virtual void clicked() {} /// Override this to react on the click.93 virtual void clicked() {} /// Override this to react on the click.
9494
=== modified file 'src/ui_basic/checkbox.h'
--- src/ui_basic/checkbox.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/checkbox.h 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#ifndef UI_CHECKBOX_H20#ifndef UI_CHECKBOX_H
21#define UI_CHECKBOX_H21#define UI_CHECKBOX_H
2222
23#include <boost/signals.hpp>23#include <boost/signals2.hpp>
2424
25#include "ui_basic/panel.h"25#include "ui_basic/panel.h"
26#include "rgbcolor.h"26#include "rgbcolor.h"
@@ -42,9 +42,9 @@
42 const std::string & tooltip_text = std::string());42 const std::string & tooltip_text = std::string());
43 ~Statebox();43 ~Statebox();
4444
45 boost::signal<void ()> changed;45 boost::signals2::signal<void ()> changed;
46 boost::signal<void (bool)> changedto;46 boost::signals2::signal<void (bool)> changedto;
47 boost::signal<void (bool)> clickedto; // same as changedto but only called when clicked47 boost::signals2::signal<void (bool)> clickedto; // same as changedto but only called when clicked
4848
49 void set_enabled(bool enabled);49 void set_enabled(bool enabled);
5050
5151
=== modified file 'src/ui_basic/editbox.h'
--- src/ui_basic/editbox.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/editbox.h 2013-08-02 18:49:35 +0000
@@ -21,7 +21,7 @@
21#define UI_EDITBOX_H21#define UI_EDITBOX_H
2222
23#include <SDL_keyboard.h>23#include <SDL_keyboard.h>
24#include <boost/signal.hpp>24#include <boost/signals2.hpp>
2525
26#include "align.h"26#include "align.h"
27#include "ui_basic/button.h"27#include "ui_basic/button.h"
@@ -43,9 +43,9 @@
43 const Image* background = g_gr->images().get("pics/but2.png"), Align align = Align_Center);43 const Image* background = g_gr->images().get("pics/but2.png"), Align align = Align_Center);
44 virtual ~EditBox();44 virtual ~EditBox();
4545
46 boost::signal<void ()> changed;46 boost::signals2::signal<void ()> changed;
47 boost::signal<void ()> ok;47 boost::signals2::signal<void ()> ok;
48 boost::signal<void ()> cancel;48 boost::signals2::signal<void ()> cancel;
4949
50 const std::string & text() const;50 const std::string & text() const;
51 void setText(const std::string &);51 void setText(const std::string &);
5252
=== modified file 'src/ui_basic/icongrid.h'
--- src/ui_basic/icongrid.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/icongrid.h 2013-08-02 18:49:35 +0000
@@ -22,7 +22,7 @@
2222
23#include <vector>23#include <vector>
2424
25#include <boost/signal.hpp>25#include <boost/signals2.hpp>
2626
27#include "ui_basic/panel.h"27#include "ui_basic/panel.h"
28#include "ui_basic/textarea.h"28#include "ui_basic/textarea.h"
@@ -41,9 +41,9 @@
41 int32_t x, int32_t y, int32_t cellw, int32_t cellh,41 int32_t x, int32_t y, int32_t cellw, int32_t cellh,
42 int32_t cols);42 int32_t cols);
4343
44 boost::signal<void (int32_t)> clicked;44 boost::signals2::signal<void (int32_t)> clicked;
45 boost::signal<void (int32_t)> mouseout;45 boost::signals2::signal<void (int32_t)> mouseout;
46 boost::signal<void (int32_t)> mousein;46 boost::signals2::signal<void (int32_t)> mousein;
4747
48 int32_t add48 int32_t add
49 (const std::string & name,49 (const std::string & name,
5050
=== modified file 'src/ui_basic/listselect.h'
--- src/ui_basic/listselect.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/listselect.h 2013-08-02 18:49:35 +0000
@@ -24,7 +24,7 @@
24#include <deque>24#include <deque>
25#include <limits>25#include <limits>
2626
27#include <boost/signal.hpp>27#include <boost/signals2.hpp>
2828
29#include "align.h"29#include "align.h"
30#include "ui_basic/panel.h"30#include "ui_basic/panel.h"
@@ -51,9 +51,9 @@
51 bool show_check = false);51 bool show_check = false);
52 ~BaseListselect();52 ~BaseListselect();
5353
54 boost::signal<void (uint32_t)> selected;54 boost::signals2::signal<void (uint32_t)> selected;
55 boost::signal<void (uint32_t)> clicked;55 boost::signals2::signal<void (uint32_t)> clicked;
56 boost::signal<void (uint32_t)> double_clicked;56 boost::signals2::signal<void (uint32_t)> double_clicked;
5757
58 void clear();58 void clear();
59 void sort59 void sort
6060
=== modified file 'src/ui_basic/messagebox.h'
--- src/ui_basic/messagebox.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/messagebox.h 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#ifndef UI_MESSAGEBOX_H20#ifndef UI_MESSAGEBOX_H
21#define UI_MESSAGEBOX_H21#define UI_MESSAGEBOX_H
2222
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "align.h"25#include "align.h"
26#include "ui_basic/window.h"26#include "ui_basic/window.h"
@@ -61,9 +61,9 @@
61 Align = Align_Center);61 Align = Align_Center);
62 ~WLMessageBox();62 ~WLMessageBox();
6363
64 boost::signal<void ()> ok;64 boost::signals2::signal<void ()> ok;
65 boost::signal<void ()> yes;65 boost::signals2::signal<void ()> yes;
66 boost::signal<void ()> no;66 boost::signals2::signal<void ()> no;
6767
68 bool handle_mousepress (Uint8 btn, int32_t mx, int32_t my);68 bool handle_mousepress (Uint8 btn, int32_t mx, int32_t my);
69 bool handle_mouserelease(Uint8 btn, int32_t mx, int32_t my);69 bool handle_mouserelease(Uint8 btn, int32_t mx, int32_t my);
7070
=== modified file 'src/ui_basic/multilineeditbox.h'
--- src/ui_basic/multilineeditbox.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/multilineeditbox.h 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#ifndef UI_MULTILINEEDITBOX_H20#ifndef UI_MULTILINEEDITBOX_H
21#define UI_MULTILINEEDITBOX_H21#define UI_MULTILINEEDITBOX_H
2222
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "ui_basic/panel.h"25#include "ui_basic/panel.h"
2626
@@ -36,7 +36,7 @@
36 Multiline_Editbox36 Multiline_Editbox
37 (Panel *, int32_t x, int32_t y, uint32_t w, uint32_t h, const std::string & text);37 (Panel *, int32_t x, int32_t y, uint32_t w, uint32_t h, const std::string & text);
3838
39 boost::signal<void ()> changed;39 boost::signals2::signal<void ()> changed;
4040
41 const std::string & get_text() const;41 const std::string & get_text() const;
42 void set_text(const std::string &);42 void set_text(const std::string &);
4343
=== modified file 'src/ui_basic/panel.h'
--- src/ui_basic/panel.h 2013-07-26 19:16:51 +0000
+++ src/ui_basic/panel.h 2013-08-02 18:49:35 +0000
@@ -28,7 +28,7 @@
2828
29#include <SDL_keyboard.h>29#include <SDL_keyboard.h>
30#include <boost/noncopyable.hpp>30#include <boost/noncopyable.hpp>
31#include <boost/signals/trackable.hpp>31#include <boost/signals2/trackable.hpp>
3232
33#include "point.h"33#include "point.h"
3434
@@ -57,7 +57,7 @@
57 * its desired size changes, this automatically changes the actual size (which then invokes57 * its desired size changes, this automatically changes the actual size (which then invokes
58 * \ref layout and \ref move_inside_parent).58 * \ref layout and \ref move_inside_parent).
59 */59 */
60struct Panel : boost::signals::trackable, boost::noncopyable {60struct Panel : boost::signals2::trackable, boost::noncopyable {
61 enum {61 enum {
62 pf_handle_mouse = 1, ///< receive mouse events62 pf_handle_mouse = 1, ///< receive mouse events
63 pf_think = 2, ///< call think() function during run63 pf_think = 2, ///< call think() function during run
6464
=== modified file 'src/ui_basic/radiobutton.h'
--- src/ui_basic/radiobutton.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/radiobutton.h 2013-08-02 18:49:35 +0000
@@ -58,9 +58,9 @@
58 Radiogroup();58 Radiogroup();
59 ~Radiogroup();59 ~Radiogroup();
6060
61 boost::signal<void ()> changed;61 boost::signals2::signal<void ()> changed;
62 boost::signal<void (int32_t)> changedto;62 boost::signals2::signal<void (int32_t)> changedto;
63 boost::signal<void ()> clicked; // clicked without things changed63 boost::signals2::signal<void ()> clicked; // clicked without things changed
6464
65 int32_t add_button65 int32_t add_button
66 (Panel * parent, Point, const Image* pic, const std::string& tooltip = "", Radiobutton ** = nullptr);66 (Panel * parent, Point, const Image* pic, const std::string& tooltip = "", Radiobutton ** = nullptr);
6767
=== modified file 'src/ui_basic/scrollbar.h'
--- src/ui_basic/scrollbar.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/scrollbar.h 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#ifndef UI_SCROLLBAR_H20#ifndef UI_SCROLLBAR_H
21#define UI_SCROLLBAR_H21#define UI_SCROLLBAR_H
2222
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "ui_basic/panel.h"25#include "ui_basic/panel.h"
26#include "rect.h"26#include "rect.h"
@@ -50,7 +50,7 @@
50 (Panel * parent,50 (Panel * parent,
51 int32_t x, int32_t y, uint32_t w, uint32_t h, bool horiz);51 int32_t x, int32_t y, uint32_t w, uint32_t h, bool horiz);
5252
53 boost::signal<void (int32_t)> moved;53 boost::signals2::signal<void (int32_t)> moved;
5454
55 void set_steps(int32_t steps);55 void set_steps(int32_t steps);
56 void set_singlestepsize(uint32_t singlestepsize);56 void set_singlestepsize(uint32_t singlestepsize);
5757
=== modified file 'src/ui_basic/slider.h'
--- src/ui_basic/slider.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/slider.h 2013-08-02 18:49:35 +0000
@@ -19,7 +19,7 @@
19#ifndef UI_SLIDER_H19#ifndef UI_SLIDER_H
20#define UI_SLIDER_H20#define UI_SLIDER_H
2121
22#include <boost/signal.hpp>22#include <boost/signals2.hpp>
2323
24#include "graphic/font.h"24#include "graphic/font.h"
25#include "ui_basic/panel.h"25#include "ui_basic/panel.h"
@@ -85,8 +85,8 @@
85 void set_highlighted(bool highlighted);85 void set_highlighted(bool highlighted);
8686
87public:87public:
88 boost::signal<void ()> changed;88 boost::signals2::signal<void ()> changed;
89 boost::signal<void (int32_t)> changedto;89 boost::signals2::signal<void (int32_t)> changedto;
9090
91private:91private:
92 int32_t m_min_value; // cursor values92 int32_t m_min_value; // cursor values
@@ -195,8 +195,8 @@
195195
196 void set_labels(std::vector<std::string>);196 void set_labels(std::vector<std::string>);
197197
198 boost::signal<void ()> changed;198 boost::signals2::signal<void ()> changed;
199 boost::signal<void (int32_t)> changedto;199 boost::signals2::signal<void (int32_t)> changedto;
200200
201protected:201protected:
202 virtual void draw(RenderTarget & dst);202 virtual void draw(RenderTarget & dst);
203203
=== modified file 'src/ui_basic/table.h'
--- src/ui_basic/table.h 2013-07-26 20:19:36 +0000
+++ src/ui_basic/table.h 2013-08-02 18:49:35 +0000
@@ -25,7 +25,7 @@
25#include <vector>25#include <vector>
2626
27#include <boost/function.hpp>27#include <boost/function.hpp>
28#include <boost/signal.hpp>28#include <boost/signals2.hpp>
2929
30#include "align.h"30#include "align.h"
31#include "ui_basic/panel.h"31#include "ui_basic/panel.h"
@@ -54,8 +54,8 @@
54 bool descending = false);54 bool descending = false);
55 ~Table();55 ~Table();
5656
57 boost::signal<void (uint32_t)> selected;57 boost::signals2::signal<void (uint32_t)> selected;
58 boost::signal<void (uint32_t)> double_clicked;58 boost::signals2::signal<void (uint32_t)> double_clicked;
5959
60 /// A column that has a title is sortable (by clicking on the title).60 /// A column that has a title is sortable (by clicking on the title).
61 void add_column61 void add_column
@@ -160,8 +160,8 @@
160 bool descending = false);160 bool descending = false);
161 ~Table();161 ~Table();
162162
163 boost::signal<void (uint32_t)> selected;163 boost::signals2::signal<void (uint32_t)> selected;
164 boost::signal<void (uint32_t)> double_clicked;164 boost::signals2::signal<void (uint32_t)> double_clicked;
165165
166 void add_column166 void add_column
167 (uint32_t width,167 (uint32_t width,
168168
=== modified file 'src/wui/building_ui.cc'
--- src/wui/building_ui.cc 2013-07-26 20:19:36 +0000
+++ src/wui/building_ui.cc 2013-08-02 18:49:35 +0000
@@ -57,7 +57,7 @@
57 */57 */
58void Building::hide_options()58void Building::hide_options()
59{59{
60 BOOST_FOREACH(boost::signals::connection& c, options_window_connections)60 BOOST_FOREACH(boost::signals2::connection& c, options_window_connections)
61 c.disconnect();61 c.disconnect();
62 delete m_optionswindow;62 delete m_optionswindow;
63 m_optionswindow = nullptr;63 m_optionswindow = nullptr;
6464
=== modified file 'src/wui/fieldaction.cc'
--- src/wui/fieldaction.cc 2013-07-26 20:19:36 +0000
+++ src/wui/fieldaction.cc 2013-08-02 18:49:35 +0000
@@ -65,9 +65,9 @@
65 int32_t x, int32_t y,65 int32_t x, int32_t y,
66 int32_t cols);66 int32_t cols);
6767
68 boost::signal<void (Widelands::Building_Index::value_t)> buildclicked;68 boost::signals2::signal<void (Widelands::Building_Index::value_t)> buildclicked;
69 boost::signal<void (Widelands::Building_Index::value_t)> buildmouseout;69 boost::signals2::signal<void (Widelands::Building_Index::value_t)> buildmouseout;
70 boost::signal<void (Widelands::Building_Index::value_t)> buildmousein;70 boost::signals2::signal<void (Widelands::Building_Index::value_t)> buildmousein;
7171
72 void add(Widelands::Building_Index::value_t);72 void add(Widelands::Building_Index::value_t);
7373
7474
=== modified file 'src/wui/gamechatpanel.h'
--- src/wui/gamechatpanel.h 2013-07-26 19:16:51 +0000
+++ src/wui/gamechatpanel.h 2013-08-02 18:49:35 +0000
@@ -41,12 +41,12 @@
41 /**41 /**
42 * Signal is called when a message has been sent by the user.42 * Signal is called when a message has been sent by the user.
43 */43 */
44 boost::signal<void ()> sent;44 boost::signals2::signal<void ()> sent;
4545
46 /**46 /**
47 * Signal is called when the user has aborted entering a message.47 * Signal is called when the user has aborted entering a message.
48 */48 */
49 boost::signal<void ()> aborted;49 boost::signals2::signal<void ()> aborted;
5050
51 const std::string & get_edit_text() const {return editbox.text();}51 const std::string & get_edit_text() const {return editbox.text();}
52 void set_edit_text(const std::string & text) {editbox.setText(text);}52 void set_edit_text(const std::string & text) {editbox.setText(text);}
5353
=== modified file 'src/wui/mapview.h'
--- src/wui/mapview.h 2013-07-26 19:16:51 +0000
+++ src/wui/mapview.h 2013-08-02 18:49:35 +0000
@@ -21,7 +21,7 @@
21#define MAPVIEW_H21#define MAPVIEW_H
2222
23#include <boost/function.hpp>23#include <boost/function.hpp>
24#include <boost/signal.hpp>24#include <boost/signals2.hpp>
2525
26#include "logic/widelands_geometry.h"26#include "logic/widelands_geometry.h"
27#include "ui_basic/panel.h"27#include "ui_basic/panel.h"
@@ -54,9 +54,9 @@
54 *54 *
55 * Parameters are x/y position in screen coordinates.55 * Parameters are x/y position in screen coordinates.
56 */56 */
57 boost::signal<void (int32_t, int32_t)> changeview;57 boost::signals2::signal<void (int32_t, int32_t)> changeview;
5858
59 boost::signal<void ()> fieldclicked;59 boost::signals2::signal<void ()> fieldclicked;
6060
61 void warp_mouse_to_node(Widelands::Coords);61 void warp_mouse_to_node(Widelands::Coords);
6262
6363
=== modified file 'src/wui/minimap.h'
--- src/wui/minimap.h 2013-02-09 23:18:23 +0000
+++ src/wui/minimap.h 2013-08-02 18:49:35 +0000
@@ -20,7 +20,7 @@
20#ifndef MINIMAP_H20#ifndef MINIMAP_H
21#define MINIMAP_H21#define MINIMAP_H
2222
23#include <boost/signal.hpp>23#include <boost/signals2.hpp>
2424
25#include "ui_basic/button.h"25#include "ui_basic/button.h"
26#include "ui_basic/unique_window.h"26#include "ui_basic/unique_window.h"
@@ -36,7 +36,7 @@
3636
37 MiniMap(Interactive_Base & parent, Registry *);37 MiniMap(Interactive_Base & parent, Registry *);
3838
39 boost::signal<void (int32_t, int32_t)> warpview;39 boost::signals2::signal<void (int32_t, int32_t)> warpview;
4040
41 void set_view_pos(int32_t const x, int32_t const y) {41 void set_view_pos(int32_t const x, int32_t const y) {
42 m_view.set_view_pos(x, y);42 m_view.set_view_pos(x, y);
4343
=== modified file 'src/wui/waresdisplay.cc'
--- src/wui/waresdisplay.cc 2013-07-26 20:19:36 +0000
+++ src/wui/waresdisplay.cc 2013-08-02 18:49:35 +0000
@@ -275,7 +275,7 @@
275275
276void WaresDisplay::remove_all_warelists() {276void WaresDisplay::remove_all_warelists() {
277 m_warelists.clear();277 m_warelists.clear();
278 BOOST_FOREACH(boost::signals::connection& c, connections_)278 BOOST_FOREACH(boost::signals2::connection& c, connections_)
279 c.disconnect();279 c.disconnect();
280 connections_.clear();280 connections_.clear();
281 update();281 update();
282282
=== modified file 'src/wui/waresdisplay.h'
--- src/wui/waresdisplay.h 2013-07-26 19:16:51 +0000
+++ src/wui/waresdisplay.h 2013-08-02 18:49:35 +0000
@@ -22,7 +22,7 @@
2222
23#include <vector>23#include <vector>
2424
25#include <boost/signal.hpp>25#include <boost/signals2.hpp>
2626
27#include "logic/tribe.h"27#include "logic/tribe.h"
28#include "logic/warelist.h"28#include "logic/warelist.h"
@@ -144,7 +144,7 @@
144private:144private:
145 typedef std::vector<const Widelands::WareList *> vector_type;145 typedef std::vector<const Widelands::WareList *> vector_type;
146 vector_type m_warelists;146 vector_type m_warelists;
147 std::vector<boost::signals::connection> connections_;147 std::vector<boost::signals2::connection> connections_;
148};148};
149149
150std::string waremap_to_richtext150std::string waremap_to_richtext
151151
=== modified file 'src/wui/watchwindow.cc'
--- src/wui/watchwindow.cc 2013-07-26 20:19:36 +0000
+++ src/wui/watchwindow.cc 2013-08-02 18:49:35 +0000
@@ -58,7 +58,7 @@
58 return ref_cast<Interactive_GameBase, UI::Panel>(*get_parent()).game();58 return ref_cast<Interactive_GameBase, UI::Panel>(*get_parent()).game();
59 }59 }
6060
61 boost::signal<void (Point)> warp_mainview;61 boost::signals2::signal<void (Point)> warp_mainview;
6262
63 void add_view(Widelands::Coords);63 void add_view(Widelands::Coords);
64 void next_view(bool first = false);64 void next_view(bool first = false);

Subscribers

People subscribed via source and target branches

to status/vote changes: