Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
varyingseveritysetup.hpp
1 //////////////////////////////
2 //
3 // File: swce/varyingseveritysetup.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 24 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_VHSS_FORM_
15 #define _SWCE_VHSS_FORM_
16 #include "lxs/windowing/form.hpp"
17 namespace SWCE{
18  //! form to set up whenever hindrance is taken as minor one or major one
20  {
21  std::string hindrance_name;
22  SWRS::Character* character;
23  public:
24  //! constructor
26  //!
27  //! \brief set hindrance as minor
28  //! \param b1 button clicked (one that will set minor severity)
30  //!
31  //! \brief set hindrance as major
32  //! \param b1 button clicked (one that will set major severity)
34  //! set name of hindrance
35  void SetHindranceName(const std::string & h) {hindrance_name.assign(h);}
36  //! set character to which form applies
37  void SetCharacter(SWRS::Character* c) {character=c;}
38  void OnFocus();
39  };
40 }
41 #endif