khanat-opennel-code/code/ryzom/tools/leveldesign/variable_parser/variable_parserDlg.h
StudioEtrange 91e6b23d3f ** PCH Support for NMake with VS2012
NMAKE-VS2012 Error LNK2011
while NMAKE-VS2010 does not complain
we need to link the pch.obj file
see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx

** PCH Support for Ninja
Ninja need to add property
        OBJECT_DEPENDS for using PCH
        OBJECT_OUTPUTS for create PCH
see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
2013-09-05 17:18:01 +02:00

101 lines
2.8 KiB
C++

// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// VariableParserDlg.h : header file
//
#include "nel/misc/sstring.h"
#include "lua_helper.h"
using namespace NLMISC;
using namespace std;
#if !defined(AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_)
#define AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef vector< string > ParseParameters;
/////////////////////////////////////////////////////////////////////////////
// CVariableParserDlg dialog
class CVariableParserDlg : public CDialog
{
// Construction
public:
CVariableParserDlg(CWnd* pParent = NULL); // standard constructor
~CVariableParserDlg();
// Dialog Data
//{{AFX_DATA(CVariableParserDlg)
enum { IDD = IDD_VARIABLEPARSER_DIALOG };
CListBox m_varDefList;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVariableParserDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CVariableParserDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHdrBrowse();
afx_msg void OnTmplBrowse();
afx_msg void OnFootBrowse();
afx_msg void OnOutputBrowse();
afx_msg void OnGenerate();
afx_msg void OnGenBrowse();
afx_msg void OnLUABrowse();
afx_msg void OnAddvardef();
afx_msg void OnRemvardef();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
void ProcessGeneratorFile( const string& generatorFile );
void ParseTemplate( const ParseParameters& params );
void BuildParseParameters( ParseParameters& params, uint ligne, uint colonne );
vector< string > m_nomVariables;
vector< vector< string > > m_variables;
CSString m_templateText, m_outputText;
CLuaState m_luaState;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VARIABLEPARSERDLG_H__65EA6C6E_3D9A_4929_944C_28D932505ECC__INCLUDED_)