~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/ptb-signals-v2.diff

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng, Evgeni Golov, Gonéri Le Bouder, Julien Jorge, Vincent Cheng
  • Date: 2014-01-23 13:20:52 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140123132052-r0kg74mh6egto11t
Tags: 0.6.0-2
* Team upload.

[ Evgeni Golov ]
* Correct Vcs-* URLs to point to anonscm.debian.org

[ Gonéri Le Bouder ]
* import patches by Julien Jorge to fix a FTBFS  with the current
  Boost.FileSystem (closes: #720819)
* Add myself in Uploaders
* Indent the B-D

[ Julien Jorge ]
* Add mipsn32el mips64 mips64el in the architecures (closes: #726176)
* Add a patch to use the full path to the icon in the menu files
  (closes: #726853)

[ Vincent Cheng ]
* Refresh patches.
* Update to Standards version 3.9.5.
* Update to source format "3.0 (quilt)".

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/bear-engine/core/src/engine/code/game.cpp
 
2
+++ b/bear-engine/core/src/engine/code/game.cpp
 
3
@@ -407,7 +407,7 @@
 
4
  * \param name The name of the variable.
 
5
  * \param f The listener.
 
6
  */
 
7
-boost::signals::connection
 
8
+boost::signals2::connection
 
9
 bear::engine::game::listen_int_variable_change
 
10
 ( const std::string& name, const boost::function<void (int)>& f )
 
11
 {
 
12
@@ -421,7 +421,7 @@
 
13
  * \param name The name of the variable.
 
14
  * \param f The listener.
 
15
  */
 
16
-boost::signals::connection
 
17
+boost::signals2::connection
 
18
 bear::engine::game::listen_uint_variable_change
 
19
 ( const std::string& name, const boost::function<void (unsigned int)>& f )
 
20
 {
 
21
@@ -434,7 +434,7 @@
 
22
  * \param name The name of the variable.
 
23
  * \param f The listener.
 
24
  */
 
25
-boost::signals::connection
 
26
+boost::signals2::connection
 
27
 bear::engine::game::listen_bool_variable_change
 
28
 ( const std::string& name, const boost::function<void (bool)>& f )
 
29
 {
 
30
@@ -447,7 +447,7 @@
 
31
  * \param name The name of the variable.
 
32
  * \param f The listener.
 
33
  */
 
34
-boost::signals::connection
 
35
+boost::signals2::connection
 
36
 bear::engine::game::listen_double_variable_change
 
37
 ( const std::string& name, const boost::function<void (double)>& f )
 
38
 {
 
39
@@ -460,7 +460,7 @@
 
40
  * \param name The name of the variable.
 
41
  * \param f The listener.
 
42
  */
 
43
-boost::signals::connection
 
44
+boost::signals2::connection
 
45
 bear::engine::game::listen_string_variable_change
 
46
 ( const std::string& name, const boost::function<void (std::string)>& f )
 
47
 {
 
48
--- a/bear-engine/core/src/engine/code/game_local_client.cpp
 
49
+++ b/bear-engine/core/src/engine/code/game_local_client.cpp
 
50
@@ -463,7 +463,7 @@
 
51
  * \param name The name of the variable.
 
52
  * \param f The listener.
 
53
  */
 
54
-boost::signals::connection
 
55
+boost::signals2::connection
 
56
 bear::engine::game_local_client::listen_int_variable_change
 
57
 ( const std::string& name, const boost::function<void (int)>& f )
 
58
 {
 
59
@@ -477,7 +477,7 @@
 
60
  * \param name The name of the variable.
 
61
  * \param f The listener.
 
62
  */
 
63
-boost::signals::connection
 
64
+boost::signals2::connection
 
65
 bear::engine::game_local_client::listen_uint_variable_change
 
66
 ( const std::string& name, const boost::function<void (unsigned int)>& f )
 
67
 {
 
68
@@ -490,7 +490,7 @@
 
69
  * \param name The name of the variable.
 
70
  * \param f The listener.
 
71
  */
 
72
-boost::signals::connection
 
73
+boost::signals2::connection
 
74
 bear::engine::game_local_client::listen_bool_variable_change
 
75
 ( const std::string& name, const boost::function<void (bool)>& f )
 
76
 {
 
77
@@ -503,7 +503,7 @@
 
78
  * \param name The name of the variable.
 
79
  * \param f The listener.
 
80
  */
 
81
-boost::signals::connection
 
82
+boost::signals2::connection
 
83
 bear::engine::game_local_client::listen_double_variable_change
 
84
 ( const std::string& name, const boost::function<void (double)>& f )
 
85
 {
 
86
@@ -516,7 +516,7 @@
 
87
  * \param name The name of the variable.
 
88
  * \param f The listener.
 
89
  */
 
90
-boost::signals::connection
 
91
+boost::signals2::connection
 
92
 bear::engine::game_local_client::listen_string_variable_change
 
93
 ( const std::string& name, const boost::function<void (std::string)>& f )
 
94
 {
 
95
@@ -1183,7 +1183,7 @@
 
96
  * \param f The function to call when the value of the variable change.
 
97
  */
 
98
 template<typename T>
 
99
-boost::signals::connection
 
100
+boost::signals2::connection
 
101
 bear::engine::game_local_client::listen_variable_change
 
102
 ( const std::string& name, boost::function<void (T)> f )
 
103
 {
 
104
--- a/bear-engine/core/src/engine/game.hpp
 
105
+++ b/bear-engine/core/src/engine/game.hpp
 
106
@@ -104,20 +104,20 @@
 
107
       void save_game_variables
 
108
         ( std::ostream& os, const std::string& pattern = ".*" );
 
109
 
 
110
-      boost::signals::connection
 
111
+      boost::signals2::connection
 
112
         listen_int_variable_change
 
113
         ( const std::string& name, const boost::function<void (int)>& f );
 
114
-      boost::signals::connection
 
115
+      boost::signals2::connection
 
116
         listen_uint_variable_change
 
117
         ( const std::string& name,
 
118
           const boost::function<void (unsigned int)>& f );
 
119
-      boost::signals::connection
 
120
+      boost::signals2::connection
 
121
         listen_bool_variable_change
 
122
         ( const std::string& name, const boost::function<void (bool)>& f );
 
123
-      boost::signals::connection
 
124
+      boost::signals2::connection
 
125
         listen_double_variable_change
 
126
         ( const std::string& name, const boost::function<void (double)>& f );
 
127
-      boost::signals::connection
 
128
+      boost::signals2::connection
 
129
         listen_string_variable_change
 
130
         ( const std::string& name,
 
131
           const boost::function<void (const std::string)>& f );
 
132
--- a/bear-engine/core/src/engine/game_local_client.hpp
 
133
+++ b/bear-engine/core/src/engine/game_local_client.hpp
 
134
@@ -137,20 +137,20 @@
 
135
       bool game_variable_exists( const base_variable& val ) const;
 
136
       void get_all_game_variables( var_map& vars ) const;
 
137
 
 
138
-      boost::signals::connection
 
139
+      boost::signals2::connection
 
140
         listen_int_variable_change
 
141
         ( const std::string& name, const boost::function<void (int)>& f );
 
142
-      boost::signals::connection
 
143
+      boost::signals2::connection
 
144
         listen_uint_variable_change
 
145
         ( const std::string& name,
 
146
           const boost::function<void (unsigned int)>& f );
 
147
-      boost::signals::connection
 
148
+      boost::signals2::connection
 
149
         listen_bool_variable_change
 
150
         ( const std::string& name, const boost::function<void (bool)>& f );
 
151
-      boost::signals::connection
 
152
+      boost::signals2::connection
 
153
         listen_double_variable_change
 
154
         ( const std::string& name, const boost::function<void (double)>& f );
 
155
-      boost::signals::connection
 
156
+      boost::signals2::connection
 
157
         listen_string_variable_change
 
158
         ( const std::string& name,
 
159
           const boost::function<void (std::string)>& f );
 
160
@@ -201,7 +201,7 @@
 
161
         ( const std::list<std::string>& args, const char sep );
 
162
 
 
163
       template<typename T>
 
164
-        boost::signals::connection
 
165
+        boost::signals2::connection
 
166
         listen_variable_change
 
167
         ( const std::string& name, boost::function<void (T)> f );
 
168
 
 
169
--- a/bear-engine/core/src/engine/variable/code/var_map.cpp
 
170
+++ b/bear-engine/core/src/engine/variable/code/var_map.cpp
 
171
@@ -36,7 +36,7 @@
 
172
  */
 
173
 template<typename T>
 
174
 void bear::engine::var_map::delete_signal::operator()
 
175
-  ( const std::string& name, boost::signal<void (T)>* value ) const
 
176
+  ( const std::string& name, boost::signals2::signal<void (T)>* value ) const
 
177
 {
 
178
   delete value;
 
179
 } // var_map::delete_signal::operator()()
 
180
@@ -65,7 +65,7 @@
 
181
 void bear::engine::var_map::trigger_signal::operator()
 
182
   ( const std::string& name, const T& value ) const
 
183
 {
 
184
-  typedef boost::signal<void (T)>* signal_type;
 
185
+  typedef boost::signals2::signal<void (T)>* signal_type;
 
186
 
 
187
   if ( m_signals.exists<signal_type>(name) )
 
188
     (*m_signals.get<signal_type>(name))(value);
 
189
@@ -102,7 +102,7 @@
 
190
 {
 
191
   if ( !m_map.exists<T>(name) )
 
192
     {
 
193
-      typedef boost::signal<void (T)>* signal_type;
 
194
+      typedef boost::signals2::signal<void (T)>* signal_type;
 
195
 
 
196
       if ( m_signals.exists<signal_type>(name) )
 
197
         {
 
198
--- a/bear-engine/core/src/engine/variable/impl/var_map.tpp
 
199
+++ b/bear-engine/core/src/engine/variable/impl/var_map.tpp
 
200
@@ -37,10 +37,10 @@
 
201
  * \param name The name of the variable to listen.
 
202
  */
 
203
 template<typename T>
 
204
-boost::signal<void (T)>&
 
205
+boost::signals2::signal<void (T)>&
 
206
 bear::engine::var_map::variable_changed( const std::string& name )
 
207
 {
 
208
-  typedef boost::signal<void (T)> signal_type;
 
209
+  typedef boost::signals2::signal<void (T)> signal_type;
 
210
 
 
211
   if ( !m_signals.exists<signal_type*>(name) )
 
212
     m_signals.set<signal_type*>( name, new signal_type() );
 
213
@@ -69,7 +69,7 @@
 
214
   else
 
215
     super::set<T>(k, v);
 
216
 
 
217
-  typedef boost::signal<void (T)> signal_type;
 
218
+  typedef boost::signals2::signal<void (T)> signal_type;
 
219
 
 
220
   if ( signal && m_signals.exists<signal_type*>(k) )
 
221
     (*m_signals.get<signal_type*>(k))(v);
 
222
--- a/bear-engine/core/src/engine/variable/var_map.hpp
 
223
+++ b/bear-engine/core/src/engine/variable/var_map.hpp
 
224
@@ -36,7 +36,7 @@
 
225
 #include <claw/meta/type_list.hpp>
 
226
 
 
227
 #include <string>
 
228
-#include <boost/signal.hpp>
 
229
+#include <boost/signals2.hpp>
 
230
 
 
231
 namespace bear
 
232
 {
 
233
@@ -59,9 +59,9 @@
 
234
 
 
235
       /** \brief The types of the signals used to observe the variables. */
 
236
       typedef claw::meta::type_list_maker
 
237
-      < boost::signal<void (int)>*, boost::signal<void (unsigned int)>*,
 
238
-        boost::signal<void (bool)>*, boost::signal<void (double)>*,
 
239
-        boost::signal<void (std::string)>* >::result signal_types;
 
240
+      < boost::signals2::signal<void (int)>*, boost::signals2::signal<void (unsigned int)>*,
 
241
+        boost::signals2::signal<void (bool)>*, boost::signals2::signal<void (double)>*,
 
242
+        boost::signals2::signal<void (std::string)>* >::result signal_types;
 
243
 
 
244
       /**
 
245
        * \brief The map containing the signals associated with the variables.
 
246
@@ -78,7 +78,7 @@
 
247
       public:
 
248
         template<typename T>
 
249
         void operator()
 
250
-        ( const std::string& name, boost::signal<void (T)>* value ) const;
 
251
+        ( const std::string& name, boost::signals2::signal<void (T)>* value ) const;
 
252
 
 
253
       }; // class delete_signal
 
254
 
 
255
@@ -133,7 +133,7 @@
 
256
       var_map& operator=( const var_map& that );
 
257
 
 
258
       template<typename T>
 
259
-      boost::signal<void (T)>& variable_changed( const std::string& name );
 
260
+      boost::signals2::signal<void (T)>& variable_changed( const std::string& name );
 
261
 
 
262
       template<typename T>
 
263
       void set( const std::string& k, const T& v );
 
264
--- a/plee-the-bear/src/ptb/item/code/power_effect.cpp
 
265
+++ b/plee-the-bear/src/ptb/item/code/power_effect.cpp
 
266
@@ -127,12 +127,12 @@
 
267
 
 
268
 /*----------------------------------------------------------------------------*/
 
269
 /**
 
270
- * \brief Add a connection to a boost::signals instance.
 
271
+ * \brief Add a connection to a boost::signals2 instance.
 
272
  * \param c The connection to follow.
 
273
  */
 
274
-void ptb::power_effect::connect( const boost::signals::connection& c )
 
275
+void ptb::power_effect::connect( const boost::signals2::connection& c )
 
276
 {
 
277
-  m_signals.push_back( new boost::signals::scoped_connection(c) );
 
278
+  m_signals.push_back( new boost::signals2::scoped_connection(c) );
 
279
 } // power_effect::connect()
 
280
 
 
281
 /*----------------------------------------------------------------------------*/
 
282
--- a/plee-the-bear/src/ptb/item/power_effect.hpp
 
283
+++ b/plee-the-bear/src/ptb/item/power_effect.hpp
 
284
@@ -35,7 +35,7 @@
 
285
 #include "universe/forced_movement/forced_rotation.hpp"
 
286
 
 
287
 #include <claw/smart_ptr.hpp>
 
288
-#include <boost/signals.hpp>
 
289
+#include <boost/signals2.hpp>
 
290
 
 
291
 namespace ptb
 
292
 {
 
293
@@ -59,7 +59,7 @@
 
294
 
 
295
   private:
 
296
     typedef
 
297
-    std::list< claw::memory::smart_ptr<boost::signals::scoped_connection> >
 
298
+    std::list< claw::memory::smart_ptr<boost::signals2::scoped_connection> >
 
299
     signal_connection_list;
 
300
 
 
301
   public:
 
302
@@ -72,7 +72,7 @@
 
303
     ( std::list<bear::universe::physical_item*>& d ) const;
 
304
 
 
305
   private:
 
306
-    void connect( const boost::signals::connection& c );
 
307
+    void connect( const boost::signals2::connection& c );
 
308
 
 
309
     std::size_t get_powers_count() const;
 
310
 
 
311
--- a/plee-the-bear/src/ptb/layer/status_layer.hpp
 
312
+++ b/plee-the-bear/src/ptb/layer/status_layer.hpp
 
313
@@ -181,7 +181,7 @@
 
314
       const static double s_bar_length;
 
315
 
 
316
       /** \brief The connections to various signals. */
 
317
-      std::list<boost::signals::connection> m_signals;
 
318
+      std::list<boost::signals2::connection> m_signals;
 
319
 
 
320
     }; // class player_status
 
321
 
 
322
@@ -283,7 +283,7 @@
 
323
     const static unsigned int s_margin;
 
324
 
 
325
     /** \brief The connections to various signals. */
 
326
-    std::list<boost::signals::connection> m_signals;
 
327
+    std::list<boost::signals2::connection> m_signals;
 
328
 
 
329
   }; // class status_layer
 
330
 } // namespace ptb
 
331
--- a/plee-the-bear/src/ptb/player_signals.hpp
 
332
+++ b/plee-the-bear/src/ptb/player_signals.hpp
 
333
@@ -29,7 +29,7 @@
 
334
 #ifndef __PTB_PLAYER_SIGNALS_HPP__
 
335
 #define __PTB_PLAYER_SIGNALS_HPP__
 
336
 
 
337
-#include <boost/signal.hpp>
 
338
+#include <boost/signals2.hpp>
 
339
 
 
340
 namespace ptb
 
341
 {
 
342
@@ -41,37 +41,37 @@
 
343
   {
 
344
   public:
 
345
     /** \brief The signal when the player enters in the water. */
 
346
-    boost::signal<void ()> enters_water_zone;
 
347
+    boost::signals2::signal<void ()> enters_water_zone;
 
348
 
 
349
     /** \brief The signal when the player leaves the water. */
 
350
-    boost::signal<void ()> leaves_water_zone;
 
351
+    boost::signals2::signal<void ()> leaves_water_zone;
 
352
 
 
353
     /** \brief The signal when the the oxygen gauge changes. */
 
354
-    boost::signal<void (double)> oxygen_gauge_changed;
 
355
+    boost::signals2::signal<void (double)> oxygen_gauge_changed;
 
356
 
 
357
     /** \brief The signal when the player enters in a cold zone. */
 
358
-    boost::signal<void ()> enters_cold_zone;
 
359
+    boost::signals2::signal<void ()> enters_cold_zone;
 
360
 
 
361
     /** \brief The signal when the player gos in a cold zone. */
 
362
-    boost::signal<void ()> leaves_cold_zone;
 
363
+    boost::signals2::signal<void ()> leaves_cold_zone;
 
364
 
 
365
     /** \brief The signal when the the ice gauge changes. */
 
366
-    boost::signal<void (double)> cold_gauge_changed;
 
367
+    boost::signals2::signal<void (double)> cold_gauge_changed;
 
368
 
 
369
     /** \brief The signal when the player enters in a heat zone. */
 
370
-    boost::signal<void ()> enters_heat_zone;
 
371
+    boost::signals2::signal<void ()> enters_heat_zone;
 
372
 
 
373
     /** \brief The signal when the player leaves in a heat zone. */
 
374
-    boost::signal<void ()> leaves_heat_zone;
 
375
+    boost::signals2::signal<void ()> leaves_heat_zone;
 
376
 
 
377
     /** \brief The signal when the the heat gauge changes. */
 
378
-    boost::signal<void (double)> heat_gauge_changed;
 
379
+    boost::signals2::signal<void (double)> heat_gauge_changed;
 
380
 
 
381
     /** \brief The signal when the player wins energy. */
 
382
-    boost::signal<void (double)> energy_added;
 
383
+    boost::signals2::signal<void (double)> energy_added;
 
384
 
 
385
     /** \brief The signal when the player loses energy. */
 
386
-    boost::signal<void (double)> energy_removed;
 
387
+    boost::signals2::signal<void (double)> energy_removed;
 
388
   }; // class player_signals
 
389
 } // namespace ptb
 
390
 
 
391
--- a/plee-the-bear/src/ptb/throwable_item/throwable_items_container.hpp
 
392
+++ b/plee-the-bear/src/ptb/throwable_item/throwable_items_container.hpp
 
393
@@ -32,7 +32,7 @@
 
394
 #include "ptb/throwable_item/throwable_item.hpp"
 
395
 #include "universe/types.hpp"
 
396
 
 
397
-#include <boost/signal.hpp>
 
398
+#include <boost/signals2.hpp>
 
399
 #include <map>
 
400
 
 
401
 namespace ptb
 
402
@@ -80,10 +80,10 @@
 
403
 
 
404
   public:
 
405
     /** \brief The signal when the selected throwable item changes. */
 
406
-    boost::signal<void (const std::string&)> throwable_item_changed;
 
407
+    boost::signals2::signal<void (const std::string&)> throwable_item_changed;
 
408
 
 
409
     /** \brief The signal when stock of current throwable item changes. */
 
410
-    boost::signal<void (unsigned int)> throwable_item_stock_changed;
 
411
+    boost::signals2::signal<void (unsigned int)> throwable_item_stock_changed;
 
412
   }; // class throwable_items_container
 
413
 } // namespace ptb
 
414