1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // VariableParserDlg.h : header file
20 #include "nel/misc/sstring.h"
21 #include "lua_helper.h"
23 using namespace NLMISC
;
26 #if !defined(AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_)
27 #define AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_
31 #endif // _MSC_VER > 1000
35 typedef vector
< string
> ParseParameters
;
39 /////////////////////////////////////////////////////////////////////////////
40 // CVariableParserDlg dialog
42 class CVariableParserDlg
: public CDialog
46 CVariableParserDlg(CWnd
* pParent
= NULL
); // standard constructor
47 ~CVariableParserDlg();
50 //{{AFX_DATA(CVariableParserDlg)
51 enum { IDD
= IDD_VARIABLEPARSER_DIALOG
};
52 CListBox m_varDefList
;
55 // ClassWizard generated virtual function overrides
56 //{{AFX_VIRTUAL(CVariableParserDlg)
58 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
65 // Generated message map functions
66 //{{AFX_MSG(CVariableParserDlg)
67 virtual BOOL
OnInitDialog();
68 afx_msg
void OnPaint();
69 afx_msg HCURSOR
OnQueryDragIcon();
70 afx_msg
void OnHdrBrowse();
71 afx_msg
void OnTmplBrowse();
72 afx_msg
void OnFootBrowse();
73 afx_msg
void OnOutputBrowse();
74 afx_msg
void OnGenerate();
75 afx_msg
void OnGenBrowse();
76 afx_msg
void OnLUABrowse();
77 afx_msg
void OnAddvardef();
78 afx_msg
void OnRemvardef();
83 void ProcessGeneratorFile( const string
& generatorFile
);
85 void ParseTemplate( const ParseParameters
& params
);
87 void BuildParseParameters( ParseParameters
& params
, uint ligne
, uint colonne
);
90 vector
< string
> m_nomVariables
;
91 vector
< vector
< string
> > m_variables
;
93 CSString m_templateText
, m_outputText
;
98 //{{AFX_INSERT_LOCATION}}
99 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
101 #endif // !defined(AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_)