Wespo  2.2
An unofficial tool to create a .po file for your wesnoth add-on
 All Classes Functions Variables
wmlNode.h
1 /*
2  * wesPO - Unofficial wesnoth tool to create a basic .po for your own addon
3  *
4  * Made by Nobun
5  * www.mugenation.com
6  *
7  * Written with: Gcc-c++ (g++) / QT4
8  *
9  *------
10  *
11  * Copyright (C) 2009 Nobun
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program (GPL.txt). If not, see <http://www.gnu.org/licenses/>.
25  *
26  ******************************************************/
27 
28 #ifndef WML_NODE_H
29 #define WML_NODE_H
30 
32 
41 struct Wml_line {
43  int n;
45  QString line;
47  bool is_string;
48 };
49 
51 
58 struct WmlNode {
62  QString tagname;
64  QList <Wml_line> line;
66  bool active; //true if there is at least 1 translatable string
67 };
68 
69 #endif
70 
struct: WML node (used by WmlReader)
Definition: wmlNode.h:58
bool is_string
true if the line is a translatable string
Definition: wmlNode.h:47
WmlNode * upnode
Pointer of parent WmlNode (0 if current node is a root node)
Definition: wmlNode.h:60
QString tagname
Tag name (usually "[tag]: ").
Definition: wmlNode.h:62
struct: used by struct WmlNode
Definition: wmlNode.h:41
int n
line number in src file
Definition: wmlNode.h:43
QList< Wml_line > line
important data contained by current [tag]
Definition: wmlNode.h:64
QString line
line value (example: "speaker = narrator")
Definition: wmlNode.h:45
bool active
deprecated: true if node (tag) contains at least a translatable string
Definition: wmlNode.h:66