The Battle for Wesnoth  1.15.1+dev
formula_debugger.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2018 by Yurii Chernyi <terraninfo@terraninfo.net>
3  Part of the Battle for Wesnoth Project https://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 #pragma once
16 
18 
19 namespace wfl
20 {
21 class formula_debugger;
22 }
23 
24 namespace gui2
25 {
26 namespace dialogs
27 {
28 
30 {
31 public:
32  explicit formula_debugger(wfl::formula_debugger& fdb) : fdb_(fdb)
33  {
34  }
35 
36 private:
37  /** Inherited from modal_dialog. */
38  virtual void pre_show(window& window) override;
39 
40  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
41  virtual const std::string& window_id() const override;
42 
43  /***** ***** button callbacks ***** *****/
44  void callback_continue_button(window& window);
45 
46  void callback_next_button(window& window);
47 
48  void callback_step_button(window& window);
49 
50  void callback_stepout_button(window& window);
51 
53 };
54 
55 } // namespace dialogs
56 } // namespace gui2
Generic file dialog.
Definition: field-fwd.hpp:22
formula_debugger(wfl::formula_debugger &fdb)
Various uncategorised dialogs.
Definition: contexts.hpp:42
wfl::formula_debugger & fdb_
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:63