Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
importer.hpp
1 //////////////////////////////
2 //
3 // File: swce/importer.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 15 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 __LXS_SWCE_IMPORTER__
15 #define __LXS_SWCE_IMPORTER__
16 #include "helper/opengl.hpp"
17 #include "helper/tr1.hpp"
18 #include <string>
19 #include "lxs/windowing/form.hpp"
20 #include "lxs/windowing/form.hpp"
21 namespace SWRS
22 {
23  class Character;
24  class RulesSystem;
25 }
26 namespace LxS
27 {
28  namespace Network
29  {
30  class Command;
31  }
32 }
33 namespace SWCE
34 {
35  class Summary;
36  class Editor;
37  //! allows importing character sheets from the net
39  {
40  private:
41  friend class Exporter;
42  Editor * editor;
43  Summary * summary;
44  LxS::Windowing::Label * status;
45  int import_progress;
47  SWRS::Character * ch;
48  std::string imported_character_name;
49  void EditCharacter(LxS::Windowing::Button * b);
50  void ImportCharacter(LxS::Windowing::Button * b);
51  public:
52  //! constructor
53  Importer(Editor * e);
54  void Animate(float dt);
55  //! attach it to an editor object
56  void AttachEditor(Editor * e) {editor=e;}
57  ~Importer();
58  void Initialize();
59  void UnloadResources();
60  void OnFocus();
61  };
62 }
63 #endif