Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
summary.hpp
1 //////////////////////////////
2 //
3 // File: swce/summary.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 16 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __SWCE_SUMMARY_H__
15 #define __SWCE_SUMMARY_H__
16 #include "lxs/windowing/form.hpp"
17 #include "lxs/windowing/button.hpp"
18 #include "lxs/windowing/textbox.hpp"
19 namespace SWRS
20 {
21  class Character;
22 }
23 namespace SWCE
24 {
25  //! form containing summary (of trait/edge/character sheet)
27  {
28  LxS::Windowing::Button * button;
30  SWRS::Character * attached_character;
31  void PrintLn(const std::string & s);
32  void PrepareSummary();
33  public:
34  //! set associated character
36  void Refresh();
37  //! add arbitrary button
38  void AddButton();
39  //! set text (must add button first)
40  void SetButtonText(const std::string & _text);
41  //! set click handler (if button exists = must exist)
43  Summary();
44  };
45 
46 }
47 
48 #endif