vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AbilityEditor.h
Go to the documentation of this file.
1 #ifndef ABILITYEDITOR_H
2 #define ABILITYEDITOR_H
3 
4 #include "../EditorController/ControllableAbility.h"
5 #include <vrecko/Ability.h>
7 #include <helpers/DynamicArray.h>
8 #include "../ObjectUtils/ConnectionViz.h"
9 
10 
11 namespace APEditorQAbilities {
12 
14 public:
15  AbilityEditor();
16  virtual ~AbilityEditor() { deactivate(); };
17  virtual bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parameters = NULL);
18 
19 protected:
20 
22  public:
23  std::string abilityName;
24  std::string pluginName;
25 
26  // auxiliary variables for the menu creation
27  bool bProcessed;
28  };
29 
31 
32  unsigned long object1ID, object2ID;
34  // these variables are reliable only in the menuItemClicked() and subsequent functions
35 
37 
38  virtual void fillDefaultInfo();
39  virtual bool activate();
40  virtual void deactivate();
41  virtual void processButtonRelease(vrecko::CABUTTONEVENT* eventData);
42  virtual void menuItemClicked(const char* itemID);
43 
44  bool createConnectionViz();
45  void destroyConnectionViz();
46 
47  bool executeAddAbility(int iIndex);
48  bool executeDeleteAbility(const char *abilityID);
49  bool executeAddConnection(const char *connectionMenuString);
50  bool executeDeleteConnection(const char *connectionMenuString);
51 };
52 
53 }
54 
55 #endif