Wespo  2.2
An unofficial tool to create a .po file for your wesnoth add-on
 All Classes Functions Variables
luaReader.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 LUA_READER_H
29 #define LUA_READER_H
30 
31 #include "wespo.h"
32 #include "wespoCMD.h"
33 
34 
36 
41 class LuaReader {
42 
43  public:
45 
50  LuaReader(WesPo *wp_x, QString &srcfile_);
52  void loadLua();
53 
54  private:
55  WesPo *wespo;
56  QString srcfile;
57  QString fileref;
58  QList <WespoCMD> wespoCmds;
59  QList <WespoEntry> wpdata;
60  QString maxstring;
61 
62  private:
64  void maxStringElab();
65 };
66 
67 
68 #endif
69 
WesPo class does the real work. It is where skele.po is created.
Definition: wespo.h:46
LuaReader(WesPo *wp_x, QString &srcfile_)
LuaReader constructor. Initialized with WesPo pointer and the file name to parse. ...
Definition: luaReader.cpp:38
void loadLua()
function invoked by WesPo. It is the "main" function of LuaReader
Definition: luaReader.cpp:115
LuaReader "parse" a single .lua file.
Definition: luaReader.h:41