Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
hindranceview.hpp
1 //////////////////////////////
2 //
3 // File: swce/hindranceview.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 11 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_HINDRANCES_V_FORM_
15 #define _SWCE_HINDRANCES_V_FORM_
16 #include "swce/optionview.hpp"
17 namespace SWRS {
18  class Feature;
19 }
20 namespace SWCE {
21  //! form for viewing hindrances
22  class HindranceView: public OptionView
23  {
24  std::string hindrance_name;
25  SWRS::Character* character;
26  LxS::Windowing::Button * severity_toggle;
27  void InitSeverityToggle();
29  public:
30  //! is it minor or major?
32  //! set hindrance object associated
33  void SetHindrance(const SWRS::Hindrance * rf);
34  //! set associated character (widget won't work without it)
36  HindranceView();
37  };
38 }
39 #endif