Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / leveldesign / variable_parser / variable_parser.cpp
blob405db5e905cea2787e50832cd07c07b3e1b7532e
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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 // VariableParser.cpp : Defines the class behaviors for the application.
20 #include "stdafx.h"
21 #include "variable_parser.h"
22 #include "variable_parserDlg.h"
24 /*#ifdef _DEBUG
25 #define new DEBUG_NEW
26 #undef THIS_FILE
27 static char THIS_FILE[] = __FILE__;
28 #endif
32 /////////////////////////////////////////////////////////////////////////////
33 // CVariableParserApp
35 BEGIN_MESSAGE_MAP(CVariableParserApp, CWinApp)
36 //{{AFX_MSG_MAP(CVariableParserApp)
37 // NOTE - the ClassWizard will add and remove mapping macros here.
38 // DO NOT EDIT what you see in these blocks of generated code!
39 //}}AFX_MSG
40 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
41 END_MESSAGE_MAP()
43 /////////////////////////////////////////////////////////////////////////////
44 // CVariableParserApp construction
46 CVariableParserApp::CVariableParserApp()
48 // TODO: add construction code here,
49 // Place all significant initialization in InitInstance
52 /////////////////////////////////////////////////////////////////////////////
53 // The one and only CVariableParserApp object
55 CVariableParserApp theApp;
57 /////////////////////////////////////////////////////////////////////////////
58 // CVariableParserApp initialization
60 BOOL CVariableParserApp::InitInstance()
62 AfxEnableControlContainer();
64 // Standard initialization
65 // If you are not using these features and wish to reduce the size
66 // of your final executable, you should remove from the following
67 // the specific initialization routines you do not need.
69 #ifdef _AFXDLL
70 Enable3dControls(); // Call this when using MFC in a shared DLL
71 #else
72 Enable3dControlsStatic(); // Call this when linking to MFC statically
73 #endif
75 CVariableParserDlg dlg;
76 m_pMainWnd = &dlg;
77 int nResponse = dlg.DoModal();
78 if (nResponse == IDOK)
80 // TODO: Place code here to handle when the dialog is
81 // dismissed with OK
83 else if (nResponse == IDCANCEL)
85 // TODO: Place code here to handle when the dialog is
86 // dismissed with Cancel
89 // Since the dialog has been closed, return FALSE so that we exit the
90 // application, rather than start the application's message pump.
91 return FALSE;