Last change
on this file was
18738,
checked in by westram, 4 years ago
|
- moved code for label translation to separate unit.
|
File size:
1.1 KB
|
Line | |
---|
1 | // ========================================================= // |
---|
2 | // // |
---|
3 | // File : LabelTranslator.h // |
---|
4 | // Purpose : Translate tree labels // |
---|
5 | // // |
---|
6 | // Coded by Ralf Westram (coder@reallysoft.de) in Sep 21 // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // ========================================================= // |
---|
10 | |
---|
11 | #ifndef LABELTRANSLATOR_H |
---|
12 | #define LABELTRANSLATOR_H |
---|
13 | |
---|
14 | #ifndef ARBDB_BASE_H |
---|
15 | #include <arbdb_base.h> |
---|
16 | #endif |
---|
17 | |
---|
18 | class LabelTranslator { |
---|
19 | |
---|
20 | |
---|
21 | public: |
---|
22 | LabelTranslator() {} |
---|
23 | |
---|
24 | const char *translate(const char *label) const { |
---|
25 | return label; // performs no translation |
---|
26 | } |
---|
27 | |
---|
28 | void translate_unlinked_labels_in_tree(TreeNode *tree) const; |
---|
29 | }; |
---|
30 | |
---|
31 | GB_ERROR TREE_translate_labels(GBDATA *gb_main, TreeNode *tree, const LabelTranslator& translator); |
---|
32 | |
---|
33 | #else |
---|
34 | #error LabelTranslator.h included twice |
---|
35 | #endif // LABELTRANSLATOR_H |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.