Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# 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             // Fonction appelée lors de la mise à jour de la console
    00071             //----------------------------------------------------------
    00072             virtual void Update() = 0;
    00073
    00074             //----------------------------------------------------------
    00075             // Fonction appelée lors de l'affichage de la console
    00076             //----------------------------------------------------------
    00077             virtual void Draw() const = 0;
    00078
    00079             //----------------------------------------------------------
    00080             // Fonction appelée lors de l'activation / désactivation de la console
    00081             //----------------------------------------------------------
    00082             virtual void Show(bool Visible) = 0;
    00083
    00084             //----------------------------------------------------------
    00085             // Fonction appelée après l'appel à une commande
    00086             //----------------------------------------------------------
    00087             virtual void CommandCalled(const String& Result) = 0;
    00088
    00089             //----------------------------------------------------------
    00090             // Fonction appelée à chaque changement de la ligne courante
    00091             //----------------------------------------------------------
    00092             virtual void TextChanged(const String& NewText) = 0;
    00093
    00094             //----------------------------------------------------------
    00095             // Fonction appelée en cas d'erreur
    00096             //----------------------------------------------------------
    00097             virtual void Error(const String& Message) = 0;
    00098         };
    00099
    00100     } // namespace Console
    00101
    00102 } // namespace Keos
    00103
    00104
    00105 #endif // KEOS_CONSOLELOOK_H