KeosConsoleLook.h

Go to the documentation of this file.
00001 /*
00002  * This source file is part of KEOS (Free 3D Engine)
00003  * For the latest info, see http://www.keosengine.org/
00004  * E-mails : thierry.vouriot@keosengine.org, yeri@keosengine.org
00005  *
00006  * This program is free software; you can redistribute it and/or modify it under
00007  * the terms of the GNU Lesser General Public License as published by the Free Software
00008  * Foundation; either version 2 of the License, or (at your option) any later
00009  * version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00013  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public License along with
00016  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00017  * Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00018  * http://www.gnu.org/copyleft/lesser.txt.
00019  *
00020  */
00021 
00022 //==========================================================
00023 // ORIGINAL COPYRIGHT FOLLOWS
00024 //==========================================================
00025 // Yes::Engine - Free C++ 3D engine
00026 //
00027 // Copyright (C) 2004-2005 Laurent Gomila
00028 //
00029 // This program is free software; you can redistribute it and/or
00030 // modify it under the terms of the GNU General Public License
00031 // as published by the Free Software Foundation; either version 2
00032 // of the License, or (at your option) any later version.
00033 //
00034 // This program is distributed in the hope that it will be useful,
00035 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00036 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00037 // GNU General Public License for more details.
00038 //
00039 // You should have received a copy of the GNU General Public License
00040 // along with this program; if not, write to the Free Software
00041 // Foundation, Inc.,
00042 // 59 Temple Place - Suite 330,
00043 // Boston, MA  02111-1307, USA.
00044 //
00045 // E-mail : laurent.gom@gmail.com
00046 //==========================================================
00047 
00048 #ifndef KEOS_CONSOLELOOK_H
00049 #define KEOS_CONSOLELOOK_H
00050 
00051 #include "KeosPrerequisites.h"
00052 
00053 namespace Keos
00054 {
00055   namespace Console
00056   {
00060     class ILook
00061     {
00062     public :
00063 
00064       //----------------------------------------------------------
00065       // Destructeur
00066       //----------------------------------------------------------
00067       virtual ~ILook()
00068       {}
00069 
00070       //----------------------------------------------------------
00071       // Fonction appelée lors de la mise à jour de la console
00072       //----------------------------------------------------------
00073       virtual void Update() = 0;
00074 
00075       //----------------------------------------------------------
00076       // Fonction appelée lors de l'affichage de la console
00077       //----------------------------------------------------------
00078       virtual void Draw() const = 0;
00079 
00080       //----------------------------------------------------------
00081       // Fonction appelée lors de l'activation / désactivation de la console
00082       //----------------------------------------------------------
00083       virtual void Show(bool Visible) = 0;
00084 
00085       //----------------------------------------------------------
00086       // Fonction appelée après l'appel à une commande
00087       //----------------------------------------------------------
00088       virtual void CommandCalled(const String& Result) = 0;
00089 
00090       //----------------------------------------------------------
00091       // Fonction appelée à chaque changement de la ligne courante
00092       //----------------------------------------------------------
00093       virtual void TextChanged(const String& NewText) = 0;
00094 
00095       //----------------------------------------------------------
00096       // Fonction appelée en cas d'erreur
00097       //----------------------------------------------------------
00098       virtual void Error(const String& Message) = 0;
00099     };
00100 
00101   } // namespace Console
00102 
00103 } // namespace Keos
00104 
00105 
00106 #endif // KEOS_CONSOLELOOK_H

Generated on Fri Mar 9 14:29:02 2007 for Keos by  doxygen 1.5.1-p1