The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
campaign_settings.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Nathan Walker <[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 GUI_DIALOGS_CAMPAIGN_SETTINGS_HPP_INCLUDED
16 #define GUI_DIALOGS_CAMPAIGN_SETTINGS_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 
20 #include "addon/validation.hpp"
21 #include "addon/state.hpp"
22 
24 
25 namespace gui2
26 {
27 
29 {
30 public:
32 
33  // whether configure is enabled
34  bool enable_configure();
35 
36  // whether connect is enabled
37  bool enable_connect();
38 
39 private:
41 
42  // called on era change
43  // sets era via create_engine
44  void change_era(twindow& window);
45 
46  // called on mod change
47  // sets mod via create_engine
48  void change_mod(size_t index, twindow& window);
49 
50  // populate era and mod lists
51  void update_lists(twindow& window);
52 
53  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
54  virtual const std::string& window_id() const;
55 
56  /** Inherited from tdialog. */
57  void pre_show(twindow& window);
58 
59  /** Inherited from tdialog. */
60  void post_show(twindow& window);
61 
62 };
63 
64 } // end namespace gui2
65 #endif
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
void pre_show(twindow &window)
Inherited from tdialog.
Abstract base class for all dialogs.
Definition: dialog.hpp:121
GLuint index
Definition: glew.h:1782
tcampaign_settings(ng::create_engine &eng)
void change_mod(size_t index, twindow &window)
void post_show(twindow &window)
Inherited from tdialog.
ng::create_engine & engine_
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
void change_era(twindow &window)
GLsizei const GLcharARB ** string
Definition: glew.h:4503
void update_lists(twindow &window)