The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
multiplayer_configure.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013 - 2016 Boldizsár Lipka <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef MULTIPLAYER_CONFIGURE_HPP_INCLUDED
16 #define MULTIPLAYER_CONFIGURE_HPP_INCLUDED
17 
18 #include "depcheck.hpp"
19 #include "mp_game_settings.hpp"
20 #include "multiplayer_ui.hpp"
21 #include "widgets/slider.hpp"
22 #include "widgets/scrollpane.hpp"
23 #include "widgets/combo.hpp"
24 #include "tooltips.hpp"
25 #include "mp_options.hpp"
26 #include "configure_engine.hpp"
27 #include <boost/scoped_ptr.hpp>
28 
29 class saved_game;
30 namespace mp {
31 
32 class configure : public mp::ui
33 {
34 public:
35  ///gives the user the option to adjust the passed saved_game
36  ///Call get_parameters to finalize;
37  configure(CVideo& v, twesnothd_connection* wesnothd_connection, const config& game_config, chat& c, config& gamelist, saved_game& game, bool local_players_only);
38  ~configure();
39 
40  void get_parameters();
41 protected:
42  virtual void layout_children(const SDL_Rect& rect);
43  virtual void process_event();
44  virtual void hide_children(bool hide=true);
45 
46 private:
47  //Settings that can be changed unledd wml forbids it
49  {
51 
65  };
67 
71 
81 
89 
93 
95 
98 
101 
102  std::vector<config const*> entry_points_;
104 
110 
111  boost::scoped_ptr<nolock_settings> nolock_settings_;
113  bool launch, quit;
114 
116  : launch(false), quit(false)
117  {}
118  process_event_data(bool l, bool q)
119  : launch(l), quit(q)
120  {}
121  };
122 
123  void process_event_impl(const process_event_data &);
124  bool plugin_event_helper(const process_event_data &);
125 };
126 
127 } // end namespace mp
128 
129 #endif
gui::button observers_game_
configure_engine
void process_event_impl(const process_event_data &)
gui::label countdown_turn_bonus_label_
gui::scrollpane options_pane_left_
const GLfloat * c
Definition: glew.h:12741
gui::button shuffle_sides_
gui::button registered_users_only_
mp_game_settings & parameters_
Definition: video.hpp:58
gui::slider countdown_turn_bonus_slider_
gui::button countdown_game_
gui::label countdown_init_time_label_
Scrollpane.
Definition: scrollpane.hpp:30
GLdouble l
Definition: glew.h:6966
ng::configure_engine engine_
gui::label countdown_action_bonus_label_
GLdouble GLdouble GLdouble GLdouble q
Definition: glew.h:1382
This module controls the multiplayer lobby.
gui::label random_faction_mode_label_
A class that represents a TCP/IP connection to the wesnothd server.
virtual void hide(bool value=true)
Definition: widget.cpp:162
const GLdouble * v
Definition: glew.h:1359
tooltips::manager tooltip_manager_
gui::label countdown_reservoir_time_label_
options::manager options_manager_
CVideo & video()
virtual void hide_children(bool hide=true)
Hides or shows all gui::widget children of this widget.
gui::textbox name_entry_
gui::scrollpane options_pane_right_
configure(CVideo &v, twesnothd_connection *wesnothd_connection, const config &game_config, chat &c, config &gamelist, saved_game &game, bool local_players_only)
gives the user the option to adjust the passed saved_game Call get_parameters to finalize; ...
Game configuration data as global variables.
Definition: build_info.cpp:38
virtual void layout_children(const SDL_Rect &rect)
Lays the children out.
config & gamelist()
Returns the current gamelist.
gui::slider countdown_init_time_slider_
gui::slider countdown_action_bonus_slider_
gui::label entry_points_label_
gui::combo random_faction_mode_
gui::button password_button_
virtual void process_event()
std::vector< config const * > entry_points_
this class memorizes a chat session.
gui::label name_entry_label_
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83
gui::slider countdown_reservoir_time_slider_
boost::scoped_ptr< nolock_settings > nolock_settings_
gui::combo entry_points_combo_
a base class for the different multiplayer base dialogs: game list, create game, wait game...
bool plugin_event_helper(const process_event_data &)