From 84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Fri, 9 Mar 2012 17:08:05 +0100 Subject: Added license info using a small program SrcHead. --- 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, 293 insertions(+), 77 deletions(-) (limited to 'src/CBot/old TstCBot') diff --git a/src/CBot/old TstCBot/BotConsoleDlg.cpp b/src/CBot/old TstCBot/BotConsoleDlg.cpp index 077f080..b7348ed 100644 --- a/src/CBot/old TstCBot/BotConsoleDlg.cpp +++ b/src/CBot/old TstCBot/BotConsoleDlg.cpp @@ -1,5 +1,18 @@ -// BotConsoleDlg.cpp : implementation file -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" @@ -68,7 +81,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); @@ -126,7 +139,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 9b54ff2..6a483da 100644 --- a/src/CBot/old TstCBot/BotConsoleDlg.h +++ b/src/CBot/old TstCBot/BotConsoleDlg.h @@ -1,3 +1,18 @@ +// * 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 . #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 87d56f0..8dc9b37 100644 --- a/src/CBot/old TstCBot/BotErrorDlg.cpp +++ b/src/CBot/old TstCBot/BotErrorDlg.cpp @@ -1,5 +1,18 @@ -// BotErrorDlg.cpp : implementation file -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/BotErrorDlg.h b/src/CBot/old TstCBot/BotErrorDlg.h index 522afad..9d87848 100644 --- a/src/CBot/old TstCBot/BotErrorDlg.h +++ b/src/CBot/old TstCBot/BotErrorDlg.h @@ -1,3 +1,18 @@ +// * 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 . #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 ca92c77..ab54ab4 100644 --- a/src/CBot/old TstCBot/CMyThread.cpp +++ b/src/CBot/old TstCBot/CMyThread.cpp @@ -1,5 +1,18 @@ -// CMyThread.cpp : pour créer un processus pour la console -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" @@ -38,7 +51,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 1134077..6d5d866 100644 --- a/src/CBot/old TstCBot/CMyThread.h +++ b/src/CBot/old TstCBot/CMyThread.h @@ -1,6 +1,18 @@ -// CMyThread.h : pour créer un processus pour la console -// -///////////////////////////////////////////////////////////////////////////// +// * 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 . #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 6c0962c..6550a89 100644 --- a/src/CBot/old TstCBot/MainFrm.cpp +++ b/src/CBot/old TstCBot/MainFrm.cpp @@ -1,5 +1,18 @@ -// MainFrm.cpp : implementation of the CMainFrame class -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/MainFrm.h b/src/CBot/old TstCBot/MainFrm.h index 56b9c41..fe86ee6 100644 --- a/src/CBot/old TstCBot/MainFrm.h +++ b/src/CBot/old TstCBot/MainFrm.h @@ -1,6 +1,18 @@ -// MainFrm.h : interface of the CMainFrame class -// -///////////////////////////////////////////////////////////////////////////// +// * 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 . #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 6863fd8..f131d7c 100644 --- a/src/CBot/old TstCBot/Resource.h +++ b/src/CBot/old TstCBot/Resource.h @@ -1,7 +1,18 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Developer Studio generated include file. -// Used by TstCBot.rc -// +// * 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 . #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 ae0ec93..7a91baa 100644 --- a/src/CBot/old TstCBot/StdAfx.cpp +++ b/src/CBot/old TstCBot/StdAfx.cpp @@ -1,6 +1,18 @@ -// 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 +// * 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 . #include "stdafx.h" diff --git a/src/CBot/old TstCBot/StdAfx.h b/src/CBot/old TstCBot/StdAfx.h index 7d46ace..eea8584 100644 --- a/src/CBot/old TstCBot/StdAfx.h +++ b/src/CBot/old TstCBot/StdAfx.h @@ -1,7 +1,18 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// +// * 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 . #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 8ac4557..5b831e3 100644 --- a/src/CBot/old TstCBot/TstCBot.cpp +++ b/src/CBot/old TstCBot/TstCBot.cpp @@ -1,5 +1,18 @@ -// TstCBot.cpp : Defines the class behaviors for the application. -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" @@ -19,9 +32,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; @@ -56,7 +69,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) @@ -67,9 +80,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; @@ -118,19 +131,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 ) { @@ -175,41 +188,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() ); @@ -222,15 +235,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 } @@ -313,7 +326,7 @@ BOOL CTstCBotApp::InitInstance() /////////////////////////////////// -// défini la fonction "show()" +// d�fini la fonction "show()" // -------------------------------- CBotProgram::AddFunction("show", rShow, cShow); @@ -323,7 +336,7 @@ BOOL CTstCBotApp::InitInstance() /////////////////////////////////// -// définie la classe globale CPoint +// d�finie la classe globale CPoint // -------------------------------- CBotClass* m_pClassPoint; @@ -336,8 +349,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); ////////////////////////////////////////////////////////////////// @@ -348,7 +361,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 616db43..a351344 100644 --- a/src/CBot/old TstCBot/TstCBot.h +++ b/src/CBot/old TstCBot/TstCBot.h @@ -1,5 +1,18 @@ -// TstCBot.h : main header file for the TSTCBOT application -// +// * 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 . #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 7d7e2ef..6c14f11 100644 --- a/src/CBot/old TstCBot/TstCBotDoc.cpp +++ b/src/CBot/old TstCBot/TstCBotDoc.cpp @@ -1,5 +1,18 @@ -// TstCBotDoc.cpp : implementation of the CTstCBotDoc class -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" diff --git a/src/CBot/old TstCBot/TstCBotDoc.h b/src/CBot/old TstCBot/TstCBotDoc.h index ae1d0f7..dd71389 100644 --- a/src/CBot/old TstCBot/TstCBotDoc.h +++ b/src/CBot/old TstCBot/TstCBotDoc.h @@ -1,6 +1,18 @@ -// TstCBotDoc.h : interface of the CTstCBotDoc class -// -///////////////////////////////////////////////////////////////////////////// +// * 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 . #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 3ee9094..33777a6 100644 --- a/src/CBot/old TstCBot/TstCBotView.cpp +++ b/src/CBot/old TstCBot/TstCBotView.cpp @@ -1,5 +1,18 @@ -// TstCBotView.cpp : implementation of the CTstCBotView class -// +// * 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 . #include "stdafx.h" #include "TstCBot.h" @@ -189,13 +202,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 ); @@ -214,13 +227,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; } @@ -234,13 +247,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 d5aede5..12f779d 100644 --- a/src/CBot/old TstCBot/TstCBotView.h +++ b/src/CBot/old TstCBot/TstCBotView.h @@ -1,6 +1,18 @@ -// TstCBotView.h : interface of the CTstCBotView class -// -///////////////////////////////////////////////////////////////////////////// +// * 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 . #if !defined(AFX_TSTCBOTVIEW_H__70B37570_5DFD_11D4_A15E_00E0189013DF__INCLUDED_) #define AFX_TSTCBOTVIEW_H__70B37570_5DFD_11D4_A15E_00E0189013DF__INCLUDED_ @@ -20,9 +32,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