https://github.com/Pingus/pingus/commit/fef8cf6512fa4aa09e87643c22ef66de9ec7bb41.patch From fef8cf6512fa4aa09e87643c22ef66de9ec7bb41 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 26 Jul 2014 20:49:11 +0200 Subject: [PATCH] Switched to boost::signals2 --- SConscript | 5 ++--- src/editor/button.hpp | 4 ++-- src/editor/checkbox.hpp | 4 ++-- src/editor/combobox.hpp | 4 ++-- src/editor/file_list.hpp | 4 ++-- src/editor/inputbox.hpp | 6 +++--- src/editor/message_box.hpp | 2 +- src/editor/object_selector.cpp | 4 ++-- src/editor/viewport.hpp | 4 ++-- src/pingus/components/check_box.hpp | 4 ++-- src/pingus/components/choice_box.hpp | 4 ++-- src/pingus/components/slider_box.hpp | 4 ++-- src/pingus/config_manager.hpp | 28 ++++++++++++++-------------- src/pingus/screens/option_menu.hpp
aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-01-09 16:44:13 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-01-09 17:13:52 +0100
commitafc0d8158b654381789b7e1c9dea9512cf63afbf (patch)
tree87b6c4fe0544ef1aec7d797b72f1ff3bec36d06c /gnu
parent4fcbd7eaf33bd597f8e982f4d230f3670bbd64cf (diff)
downloadguix-afc0d8158b654381789b7e1c9dea9512cf63afbf.tar.gz
guix-afc0d8158b654381789b7e1c9dea9512cf63afbf.zip
gnu: Add r-bootstrap.
* gnu/packages/cran.scm (r-bootstrap): New variable.
Diffstat (limited to 'gnu')
ssage_box.hpp b/src/editor/message_box.hpp index 385387a61..d885767cf 100644 --- a/src/editor/message_box.hpp +++ b/src/editor/message_box.hpp @@ -45,7 +45,7 @@ class MessageBox : public GUI::GroupComponent void on_cancel_button(); public: - boost::signal on_ok; + boost::signals2::signal on_ok; private: MessageBox(const MessageBox&); diff --git a/src/editor/object_selector.cpp b/src/editor/object_selector.cpp index 28e306826..f3a36b5e8 100644 --- a/src/editor/object_selector.cpp +++ b/src/editor/object_selector.cpp @@ -16,7 +16,7 @@ #include "editor/object_selector.hpp" -#include +#include #include "editor/generic_level_obj.hpp" #include "editor/gui_style.hpp" @@ -47,7 +47,7 @@ class ObjectSelectorButton : public GUI::RectComponent std::string tooltip; public: - boost::signal on_click; + boost::signals2::signal on_click; public: ObjectSelectorButton(ObjectSelectorList* object_list_, diff --git a/src/editor/viewport.hpp b/src/editor/viewport.hpp index 1ae9eff7c..18868254d 100644 --- a/src/editor/viewport.hpp +++ b/src/editor/viewport.hpp @@ -18,7 +18,7 @@ #ifndef HEADER_PINGUS_EDITOR_VIEWPORT_HPP #define HEADER_PINGUS_EDITOR_VIEWPORT_HPP -#include +#include #include #include "editor/selection.hpp" @@ -148,7 +148,7 @@ class Viewport : public GUI::RectComponent void clear_selection(); - boost::signal selection_changed; + boost::signals2::signal selection_changed; private: Viewport(); Viewport (const Viewport&); diff --git a/src/pingus/components/check_box.hpp b/src/pingus/components/check_box.hpp index 00e23b764..5bef50f6b 100644 --- a/src/pingus/components/check_box.hpp +++ b/src/pingus/components/check_box.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_CHECK_BOX_HPP #define HEADER_PINGUS_PINGUS_COMPONENTS_CHECK_BOX_HPP -#include +#include #include "engine/display/sprite.hpp" #include "engine/gui/rect_component.hpp" @@ -39,7 +39,7 @@ class CheckBox : public GUI::RectComponent void set_state(bool v, bool send_signal); - boost::signal on_change; + boost::signals2::signal on_change; private: CheckBox (const CheckBox&); diff --git a/src/pingus/components/choice_box.hpp b/src/pingus/components/choice_box.hpp index 49d6e1948..ef51b6dd2 100644 --- a/src/pingus/components/choice_box.hpp +++ b/src/pingus/components/choice_box.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_CHOICE_BOX_HPP #define HEADER_PINGUS_PINGUS_COMPONENTS_CHOICE_BOX_HPP -#include +#include #include "engine/gui/rect_component.hpp" @@ -36,7 +36,7 @@ class ChoiceBox : public GUI::RectComponent void add_choice(const std::string& str); void set_current_choice(int choice); - boost::signal on_change; + boost::signals2::signal on_change; private: ChoiceBox (const ChoiceBox&); diff --git a/src/pingus/components/slider_box.hpp b/src/pingus/components/slider_box.hpp index ae4d92406..75118eac2 100644 --- a/src/pingus/components/slider_box.hpp +++ b/src/pingus/components/slider_box.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_SLIDER_BOX_HPP #define HEADER_PINGUS_PINGUS_COMPONENTS_SLIDER_BOX_HPP -#include +#include #include "engine/gui/rect_component.hpp" @@ -39,7 +39,7 @@ class SliderBox : public GUI::RectComponent void set_value(int v); - boost::signal on_change; + boost::signals2::signal on_change; private: SliderBox (const SliderBox&); diff --git a/src/pingus/config_manager.hpp b/src/pingus/config_manager.hpp index b07b83e65..4cf08e046 100644 --- a/src/pingus/config_manager.hpp +++ b/src/pingus/config_manager.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_CONFIG_MANAGER_HPP #define HEADER_PINGUS_PINGUS_CONFIG_MANAGER_HPP -#include +#include #include "math/size.hpp" #include "pingus/options.hpp" @@ -39,55 +39,55 @@ class ConfigManager void set_master_volume(int); int get_master_volume() const; - boost::signal on_master_volume_change; + boost::signals2::signal on_master_volume_change; void set_sound_volume(int); int get_sound_volume() const; - boost::signal on_sound_volume_change; + boost::signals2::signal on_sound_volume_change; void set_music_volume(int); int get_music_volume() const; - boost::signal on_music_volume_change; + boost::signals2::signal on_music_volume_change; void set_fullscreen_resolution(const Size& size); Size get_fullscreen_resolution() const; - boost::signal on_fullscreen_resolution_change; + boost::signals2::signal on_fullscreen_resolution_change; void set_fullscreen(bool); bool get_fullscreen() const; - boost::signal on_fullscreen_change; + boost::signals2::signal on_fullscreen_change; void set_renderer(FramebufferType type); FramebufferType get_renderer() const; - boost::signal on_renderer_change; + boost::signals2::signal on_renderer_change; void set_resizable(bool); bool get_resizable() const; - boost::signal on_resizable_change; + boost::signals2::signal on_resizable_change; void set_mouse_grab(bool); bool get_mouse_grab() const; - boost::signal on_mouse_grab_change; + boost::signals2::signal on_mouse_grab_change; void set_print_fps(bool); bool get_print_fps() const; - boost::signal on_print_fps_change; + boost::signals2::signal on_print_fps_change; void set_language(const tinygettext::Language&); tinygettext::Language get_language() const; - boost::signal on_language_change; + boost::signals2::signal on_language_change; void set_software_cursor(bool); bool get_software_cursor() const; - boost::signal on_software_cursor_change; + boost::signals2::signal on_software_cursor_change; void set_auto_scrolling(bool); bool get_auto_scrolling() const; - boost::signal on_auto_scrolling_change; + boost::signals2::signal on_auto_scrolling_change; void set_drag_drop_scrolling(bool); bool get_drag_drop_scrolling() const; - boost::signal on_drag_drop_scrolling_change; + boost::signals2::signal on_drag_drop_scrolling_change; private: ConfigManager (const ConfigManager&); diff --git a/src/pingus/screens/option_menu.hpp b/src/pingus/screens/option_menu.hpp index 60b1578d2..154ef0f69 100644 --- a/src/pingus/screens/option_menu.hpp +++ b/src/pingus/screens/option_menu.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_SCREENS_OPTION_MENU_HPP #define HEADER_PINGUS_PINGUS_SCREENS_OPTION_MENU_HPP -#include +#include #include #include @@ -66,7 +66,7 @@ class OptionMenu : public GUIScreen //Label* defaults_label; //CheckBox* defaults_box; - typedef std::vector Connections; + typedef std::vector Connections; Connections connections; tinygettext::Language m_language;