Game Develop Core: ConditionSentenceFormatter.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
ConditionSentenceFormatter.h
Go to the documentation of this file.
1
6 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
7 #ifndef TRANSLATECONDITION_H
8 #define TRANSLATECONDITION_H
9 #include <string>
10 #include <vector>
11 #include <map>
12 #include "GDCore/IDE/TextFormatting.h"
13 #include "GDCore/Events/Instruction.h"
14 #include <wx/bitmap.h>
15 namespace gd { class InstructionMetadata; }
16
17 namespace gd
18 {
19
26 class GD_CORE_API ConditionSentenceFormatter
27 {
28 public:
29
33 static std::string Translate(const gd::Instruction & condition, const gd::InstructionMetadata & infos);
34
38 static std::vector< std::pair<std::string, TextFormatting> > GetAsFormattedText(const gd::Instruction & condition, const gd::InstructionMetadata & infos);
39
43 static TextFormatting GetFormattingFromType(const std::string & type);
44
48 static std::string LabelFromType(const std::string & type);
49
53 static wxBitmap BitmapFromType(const std::string & type);
54
55 private:
56 ConditionSentenceFormatter() {};
57 virtual ~ConditionSentenceFormatter() {};
58 };
59
60 }
61
62 #endif // TRANSLATECONDITION_H
63 #endif