| 1 |
#ifndef HEADER_LABELS_H |
| 2 |
#define HEADER_LABELS_H |
| 3 |
|
| 4 |
class Path; |
| 5 |
class ResDialogPack; |
| 6 |
|
| 7 |
#include "Scripter.h" |
| 8 |
#include "StringTool.h" |
| 9 |
|
| 10 |
/** |
| 11 |
* Loads localized labels. |
| 12 |
*/ |
| 13 |
class Labels : public Scripter { |
| 14 |
private: |
| 15 |
mutable ResDialogPack *m_labels; |
| 16 |
public: |
| 17 |
Labels(const Path &source); |
| 18 |
virtual ~Labels(); |
| 19 |
|
| 20 |
void addLabel(const std::string &name, const std::string &lang, |
| 21 |
const std::string &text); |
| 22 |
|
| 23 |
std::string getLabel(const std::string &name) const; |
| 24 |
std::string getFormatedLabel(const std::string &name, |
| 25 |
const StringTool::t_args &args) const; |
| 26 |
}; |
| 27 |
|
| 28 |
#endif |