From f7d892cf4ef6bfce3747c4b6a810d4828b79833d Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Mon, 19 Mar 2012 12:44:39 +0100 Subject: Last coding fix ;) --- src/CBot/old TstCBot/BotConsoleDlg.cpp | 21 ++-------- src/CBot/old TstCBot/BotConsoleDlg.h | 15 ------- src/CBot/old TstCBot/BotErrorDlg.cpp | 17 +------- src/CBot/old TstCBot/BotErrorDlg.h | 15 ------- src/CBot/old TstCBot/CMyThread.cpp | 19 ++------- src/CBot/old TstCBot/CMyThread.h | 18 ++------- src/CBot/old TstCBot/MainFrm.cpp | 17 +------- src/CBot/old TstCBot/MainFrm.h | 18 ++------- src/CBot/old TstCBot/Resource.h | 19 ++------- src/CBot/old TstCBot/StdAfx.cpp | 18 ++------- src/CBot/old TstCBot/StdAfx.h | 19 ++------- src/CBot/old TstCBot/TstCBot.cpp | 71 ++++++++++++++-------------------- src/CBot/old TstCBot/TstCBot.h | 17 +------- src/CBot/old TstCBot/TstCBotDoc.cpp | 17 +------- src/CBot/old TstCBot/TstCBotDoc.h | 18 ++------- src/CBot/old TstCBot/TstCBotView.cpp | 29 ++++---------- src/CBot/old TstCBot/TstCBotView.h | 22 +++-------- 17 files changed, 77 insertions(+), 293 deletions(-) (limited to 'src/CBot/old TstCBot') diff --git a/src/CBot/old TstCBot/BotConsoleDlg.cpp b/src/CBot/old TstCBot/BotConsoleDlg.cpp index bd1cb11..077f080 100644 --- a/src/CBot/old TstCBot/BotConsoleDlg.cpp +++ b/src/CBot/old TstCBot/BotConsoleDlg.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// BotConsoleDlg.cpp : implementation file +// #include "stdafx.h" #include "TstCBot.h" @@ -81,7 +68,7 @@ UINT ThreadProc(ThreadInfo *info) CTimeSpan ts = t - t0; char buffer[200]; - sprintf( buffer, "\r\nEx�cution termin�e en %d secondes.\r\nInterrompue %d fois.\r\n", + sprintf( buffer, "\r\nExécution terminée en %d secondes.\r\nInterrompue %d fois.\r\n", ts.GetTotalSeconds(), Cpt); info->m_pEdit1->ReplaceSel(buffer); @@ -139,7 +126,7 @@ void CBotConsoleDlg::OnOK() m_Edit2.EnableWindow(FALSE); m_cOK.EnableWindow(FALSE); - // lance un processus paral�le pour l'ex�cution + // lance un processus paralèle pour l'exécution m_threadinfo.m_pWndMessage = this ; m_threadinfo.m_pEdit1 = &m_Edit1; diff --git a/src/CBot/old TstCBot/BotConsoleDlg.h b/src/CBot/old TstCBot/BotConsoleDlg.h index aa23b0d..9b54ff2 100644 --- a/src/CBot/old TstCBot/BotConsoleDlg.h +++ b/src/CBot/old TstCBot/BotConsoleDlg.h @@ -1,18 +1,3 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. #if !defined(AFX_BOTCONSOLEDLG_H__A11450A2_8E09_11D4_A439_00D059085115__INCLUDED_) #define AFX_BOTCONSOLEDLG_H__A11450A2_8E09_11D4_A439_00D059085115__INCLUDED_ diff --git a/src/CBot/old TstCBot/BotErrorDlg.cpp b/src/CBot/old TstCBot/BotErrorDlg.cpp index 4d3cf04..87d56f0 100644 --- a/src/CBot/old TstCBot/BotErrorDlg.cpp +++ b/src/CBot/old TstCBot/BotErrorDlg.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// BotErrorDlg.cpp : implementation file +// #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/BotErrorDlg.h b/src/CBot/old TstCBot/BotErrorDlg.h index 0efaefc..522afad 100644 --- a/src/CBot/old TstCBot/BotErrorDlg.h +++ b/src/CBot/old TstCBot/BotErrorDlg.h @@ -1,18 +1,3 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. #if !defined(AFX_BOTERRORDLG_H__80E73D20_7454_11D4_A439_00D059085115__INCLUDED_) #define AFX_BOTERRORDLG_H__80E73D20_7454_11D4_A439_00D059085115__INCLUDED_ diff --git a/src/CBot/old TstCBot/CMyThread.cpp b/src/CBot/old TstCBot/CMyThread.cpp index ed1e2ea..ca92c77 100644 --- a/src/CBot/old TstCBot/CMyThread.cpp +++ b/src/CBot/old TstCBot/CMyThread.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// CMyThread.cpp : pour créer un processus pour la console +// #include "stdafx.h" #include "TstCBot.h" @@ -51,7 +38,7 @@ BOOL CMyThread::InitInstance() CTstCBotApp* pApp = (CTstCBotApp*)AfxGetApp(); - // ouvre une fen�tre pour afficher les sorties + // ouvre une fenêtre pour afficher les sorties CRect rect; AfxGetMainWnd()->GetClientRect( rect ); rect += CPoint(30,30); diff --git a/src/CBot/old TstCBot/CMyThread.h b/src/CBot/old TstCBot/CMyThread.h index 89b8fa2..1134077 100644 --- a/src/CBot/old TstCBot/CMyThread.h +++ b/src/CBot/old TstCBot/CMyThread.h @@ -1,18 +1,6 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// CMyThread.h : pour créer un processus pour la console +// +///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__20B3756C_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_MAINFRM_H__20B3756C_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ diff --git a/src/CBot/old TstCBot/MainFrm.cpp b/src/CBot/old TstCBot/MainFrm.cpp index 6b55222..6c0962c 100644 --- a/src/CBot/old TstCBot/MainFrm.cpp +++ b/src/CBot/old TstCBot/MainFrm.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// MainFrm.cpp : implementation of the CMainFrame class +// #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/MainFrm.h b/src/CBot/old TstCBot/MainFrm.h index 3eb4271..56b9c41 100644 --- a/src/CBot/old TstCBot/MainFrm.h +++ b/src/CBot/old TstCBot/MainFrm.h @@ -1,18 +1,6 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// MainFrm.h : interface of the CMainFrame class +// +///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__70B3756C_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_MAINFRM_H__70B3756C_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ diff --git a/src/CBot/old TstCBot/Resource.h b/src/CBot/old TstCBot/Resource.h index 326e0e0..6863fd8 100644 --- a/src/CBot/old TstCBot/Resource.h +++ b/src/CBot/old TstCBot/Resource.h @@ -1,18 +1,7 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by TstCBot.rc +// #define IDD_ABOUTBOX 100 #define IDR_MAINFRAME 128 #define IDR_TSTCBOTYPE 129 diff --git a/src/CBot/old TstCBot/StdAfx.cpp b/src/CBot/old TstCBot/StdAfx.cpp index a3471af..ae0ec93 100644 --- a/src/CBot/old TstCBot/StdAfx.cpp +++ b/src/CBot/old TstCBot/StdAfx.cpp @@ -1,18 +1,6 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// stdafx.cpp : source file that includes just the standard includes +// TstCBot.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information #include "stdafx.h" diff --git a/src/CBot/old TstCBot/StdAfx.h b/src/CBot/old TstCBot/StdAfx.h index 42fdf52..7d46ace 100644 --- a/src/CBot/old TstCBot/StdAfx.h +++ b/src/CBot/old TstCBot/StdAfx.h @@ -1,18 +1,7 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// #if !defined(AFX_STDAFX_H__70B3756A_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_STDAFX_H__70B3756A_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ diff --git a/src/CBot/old TstCBot/TstCBot.cpp b/src/CBot/old TstCBot/TstCBot.cpp index 2cc2c9b..8ac4557 100644 --- a/src/CBot/old TstCBot/TstCBot.cpp +++ b/src/CBot/old TstCBot/TstCBot.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBot.cpp : Defines the class behaviors for the application. +// #include "stdafx.h" #include "TstCBot.h" @@ -32,9 +19,9 @@ static char THIS_FILE[] = __FILE__; //////////////////////////////////////////////////////////////////// // routine show() -// utilisable depuis le programme �crit en CBot +// utilisable depuis le programme écrit en CBot -// ex�cution +// exécution BOOL rShow( CBotVar* pVar, CBotVar* pResult, int& Exception ) { CString s; @@ -69,7 +56,7 @@ BOOL rShow( CBotVar* pVar, CBotVar* pResult, int& Exception ) int cShow( CBotVar* &pVar, CBotString& RetClass) { if ( pVar == NULL ) return 22; - return CBotTypInt; // tous param�tres accept�s, un entier en retour + return CBotTypInt; // tous paramètres acceptés, un entier en retour } int cErr( CBotVar* &pVar, CBotString& RetClass) @@ -80,9 +67,9 @@ int cErr( CBotVar* &pVar, CBotString& RetClass) //////////////////////////////////////////////////////////////////// // routine print() -// utilisable depuis le programme �crit en CBot +// utilisable depuis le programme écrit en CBot -// ex�cution +// exécution BOOL rPrintLn( CBotVar* pVar, CBotVar* pResult, int& Exception ) { CString s; @@ -131,19 +118,19 @@ BOOL rPrint( CBotVar* pVar, CBotVar* pResult, int& Exception ) int cPrint( CBotVar* &pVar, CBotString& RetClass) { - return 0; // tous param�tres accept�s, un entier en retour + return 0; // tous paramètres acceptés, un entier en retour } ////////////////////////////////////////////////////////////////// // class CPoint pour essayer -// ex�cution +// exécution BOOL rCPoint( CBotVar* pThis, CBotVar* pVar, CBotVar* pResult, int& Exception ) { CString s; - if ( pVar == NULL )return TRUE; // constructeur sans param�tres est ok + if ( pVar == NULL )return TRUE; // constructeur sans paramètres est ok if ( pVar->RetType() > CBotTypDouble ) { @@ -188,41 +175,41 @@ BOOL rCPoint( CBotVar* pThis, CBotVar* pVar, CBotVar* pResult, int& Exception ) int cCPoint( CBotVar* pThis, CBotVar* &pVar, CBotString& RetClass) { - // l'objet doit �tre de la classe CPoint + // l'objet doit être de la classe CPoint if ( !pThis->IsElemOfClass("CPoint") ) return 6021; - // ok si aucun param�tres ! + // ok si aucun paramètres ! if ( pVar == NULL ) return 0; - // param�tre de type num�rique svp + // paramètre de type numérique svp if ( pVar->RetType() > CBotTypDouble ) return 6023; pVar = pVar->RetNext(); - // il doit y avoir un second param�tre + // il doit y avoir un second paramètre if ( pVar == NULL ) return 6022; - // �galement de type num�rique + // également de type numérique if ( pVar->RetType() > CBotTypDouble )return 6023; pVar = pVar->RetNext(); - // et pas plus de 2 param�tres svp + // et pas plus de 2 paramètres svp if ( pVar != NULL ) return 6025; return 0; // cette fonction retourne void } -// m�thode d�terminant l'oppos� +// méthode déterminant l'opposé BOOL rOppose( CBotVar* pThis, CBotVar* pVar, CBotVar* pResult, int& Exception ) { CString s; - if ( pVar != NULL ) // pas de param�tre + if ( pVar != NULL ) // pas de paramètre { Exception = 6025; return FALSE; } - CBotVar* pvar = pThis->RetItemList(); // demande la cha�ne des items + CBotVar* pvar = pThis->RetItemList(); // demande la chaîne des items - // tous les param�tres sont des nombres + // tous les paramètres sont des nombres while (pvar != NULL) { pvar->SetValFloat( -pvar->RetValFloat() ); @@ -235,15 +222,15 @@ BOOL rOppose( CBotVar* pThis, CBotVar* pVar, CBotVar* pResult, int& Exception ) int cOppose( CBotVar* pThis, CBotVar* &pVar, CBotString& RetClass) { - // l'objet doit �tre de la classe CPoint + // l'objet doit être de la classe CPoint if ( !pThis->IsElemOfClass("CPoint") ) return 6021; RetClass = "CPoint"; // l'objet rendu est de cette class - // ok si aucun param�tres ! - if ( pVar == NULL ) return CBotTypClass; // le param�tre retourn� est une instance de la classe + // ok si aucun paramètres ! + if ( pVar == NULL ) return CBotTypClass; // le paramètre retourné est une instance de la classe - return TX_OVERPARAM; // �a va pas + return TX_OVERPARAM; // ça va pas } @@ -326,7 +313,7 @@ BOOL CTstCBotApp::InitInstance() /////////////////////////////////// -// d�fini la fonction "show()" +// défini la fonction "show()" // -------------------------------- CBotProgram::AddFunction("show", rShow, cShow); @@ -336,7 +323,7 @@ BOOL CTstCBotApp::InitInstance() /////////////////////////////////// -// d�finie la classe globale CPoint +// définie la classe globale CPoint // -------------------------------- CBotClass* m_pClassPoint; @@ -349,8 +336,8 @@ BOOL CTstCBotApp::InitInstance() // ajoute le constructeur pour cette classe m_pClassPoint->AddFunction("CPoint", rCPoint, cCPoint); - // ajoute la m�thode Oppos� - m_pClassPoint->AddFunction("Oppos�", rOppose, cOppose); + // ajoute la méthode Opposé + m_pClassPoint->AddFunction("Opposé", rOppose, cOppose); ////////////////////////////////////////////////////////////////// @@ -361,7 +348,7 @@ BOOL CTstCBotApp::InitInstance() CBotStringArray Liste; p->Compile(" public void MonProgram( ) { show (\"mon programme\") ;}", Liste ); - // l'objet n'est pas d�truit et plus r�f�renc� + // l'objet n'est pas détruit et plus référencé // je sais c'est pas bien diff --git a/src/CBot/old TstCBot/TstCBot.h b/src/CBot/old TstCBot/TstCBot.h index df38f3d..616db43 100644 --- a/src/CBot/old TstCBot/TstCBot.h +++ b/src/CBot/old TstCBot/TstCBot.h @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBot.h : main header file for the TSTCBOT application +// #if !defined(AFX_TSTCBOT_H__70B37568_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_TSTCBOT_H__70B37568_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ diff --git a/src/CBot/old TstCBot/TstCBotDoc.cpp b/src/CBot/old TstCBot/TstCBotDoc.cpp index 4949b0e..7d7e2ef 100644 --- a/src/CBot/old TstCBot/TstCBotDoc.cpp +++ b/src/CBot/old TstCBot/TstCBotDoc.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBotDoc.cpp : implementation of the CTstCBotDoc class +// #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/TstCBotDoc.h b/src/CBot/old TstCBot/TstCBotDoc.h index 976982c..ae1d0f7 100644 --- a/src/CBot/old TstCBot/TstCBotDoc.h +++ b/src/CBot/old TstCBot/TstCBotDoc.h @@ -1,18 +1,6 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBotDoc.h : interface of the CTstCBotDoc class +// +///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_TSTCBOTDOC_H__70B3756E_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_TSTCBOTDOC_H__70B3756E_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ diff --git a/src/CBot/old TstCBot/TstCBotView.cpp b/src/CBot/old TstCBot/TstCBotView.cpp index 4c82e2a..3ee9094 100644 --- a/src/CBot/old TstCBot/TstCBotView.cpp +++ b/src/CBot/old TstCBot/TstCBotView.cpp @@ -1,18 +1,5 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBotView.cpp : implementation of the CTstCBotView class +// #include "stdafx.h" #include "TstCBot.h" @@ -202,13 +189,13 @@ void CTstCBotView::OnCp1() m_pProg = NULL; m_pEdit->SetSel( start, end ); - m_pEdit->SetFocus(); // met en �vidence la partie avec probl�me + m_pEdit->SetFocus(); // met en évidence la partie avec problème TextError.LoadString( code ); if (TextError.IsEmpty()) { char buf[100]; - sprintf(buf, "Erreur num�ro %d.", code); + sprintf(buf, "Erreur numéro %d.", code); TextError = buf; } AfxMessageBox( TextError ); @@ -227,13 +214,13 @@ void CTstCBotView::OnExe() if( m_pProg == NULL) { - AfxMessageBox("Pas de programme compil� !"); + AfxMessageBox("Pas de programme compilé !"); return; } if( pApp->m_Liste.RetSize() == 0 ) { - AfxMessageBox("Aucune fonction marqu�e \"extern\" !"); + AfxMessageBox("Aucune fonction marquée \"extern\" !"); return; } @@ -247,13 +234,13 @@ void CTstCBotView::OnExe() CString TextError; m_pEdit->SetSel( dlg.m_start, dlg.m_end ); - m_pEdit->SetFocus(); // met en �vidence la partie avec probl�me + m_pEdit->SetFocus(); // met en évidence la partie avec problème TextError.LoadString( dlg.m_code ); if (TextError.IsEmpty()) { char buf[100]; - sprintf(buf, "Erreur num�ro %d.", dlg.m_code); + sprintf(buf, "Erreur numéro %d.", dlg.m_code); TextError = buf; } // AfxMessageBox( TextError ); diff --git a/src/CBot/old TstCBot/TstCBotView.h b/src/CBot/old TstCBot/TstCBotView.h index 7c755d7..d5aede5 100644 --- a/src/CBot/old TstCBot/TstCBotView.h +++ b/src/CBot/old TstCBot/TstCBotView.h @@ -1,18 +1,6 @@ -// * This file is part of the COLOBOT source code -// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU 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 General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// TstCBotView.h : interface of the CTstCBotView class +// +///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_TSTCBOTVIEW_H__70B37570_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_TSTCBOTVIEW_H__70B37570_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ @@ -32,9 +20,9 @@ protected: // create from serialization only CTstCBotView(); DECLARE_DYNCREATE(CTstCBotView) - CEdit* m_pEdit; // texte en �dition + CEdit* m_pEdit; // texte en édition CWnd* m_pWnd; - CBotProgram* m_pProg; // programme compil� + CBotProgram* m_pProg; // programme compilé // Attributes public: -- cgit v1.2.3-1-g7c22