summaryrefslogtreecommitdiffstats
path: root/src/edit.h
diff options
context:
space:
mode:
authorKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
committerKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
commit84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 (patch)
tree842825145ada8e6f53d1de9f100383cc028d2b46 /src/edit.h
parenta4c804b49ec872b71bd5a0167c3ad45704a3cc30 (diff)
downloadcolobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.gz
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.bz2
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.zip
Added license info using a small program SrcHead.
Diffstat (limited to 'src/edit.h')
-rw-r--r--src/edit.h48
1 files changed, 31 insertions, 17 deletions
diff --git a/src/edit.h b/src/edit.h
index 0cc10e5..1ba82f3 100644
--- a/src/edit.h
+++ b/src/edit.h
@@ -1,4 +1,18 @@
-// edit.h
+// * 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 .
#ifndef _EDIT_H_
#define _EDIT_H_
@@ -12,11 +26,11 @@ class CScroll;
-#define EDITSTUDIOMAX 20000 // nb max de caractères pour éditer CBOT
+#define EDITSTUDIOMAX 20000 // nb max de caract�res pour �diter CBOT
#define EDITLINEMAX 1000 // nb max total de lignes
#define EDITIMAGEMAX 50 // nb max total de lignes avec images
#define EDITLINKMAX 100 // nb max de liens
-#define EDITHISTORYMAX 50 // nb max de niveaux concervés
+#define EDITHISTORYMAX 50 // nb max de niveaux concerv�s
#define EDITUNDOMAX 20 // nb max de undo successifs
@@ -26,16 +40,16 @@ typedef struct
int len; // longueur du texte
int cursor1; // offset curseur
int cursor2; // offset curseur
- int lineFirst; // première ligne affichée.
+ int lineFirst; // premi�re ligne affich�e.
}
EditUndo;
enum OperUndo
{
- OPERUNDO_SPEC = 0, // opération spéciale
- OPERUNDO_INSERT = 1, // insertion de caractères
- OPERUNDO_DELETE = 2, // suppression de caractères
+ OPERUNDO_SPEC = 0, // op�ration sp�ciale
+ OPERUNDO_INSERT = 1, // insertion de caract�res
+ OPERUNDO_DELETE = 2, // suppression de caract�res
};
typedef struct
@@ -64,7 +78,7 @@ HyperMarker;
typedef struct
{
char filename[50]; // nom complet du fichier texte
- int firstLine; // rang de la première ligne affichée
+ int firstLine; // rang de la premi�re ligne affich�e
}
HyperHistory;
@@ -185,30 +199,30 @@ protected:
BOOL UndoRecall();
protected:
- CScroll* m_scroll; // ascenseur vertical à droite
+ CScroll* m_scroll; // ascenseur vertical � droite
int m_maxChar; // lg max du buffer m_text
- char* m_text; // texte (sans zéro terminateur)
- char* m_format; // format des caractères
- int m_len; // longueur utilisée dans m_text
+ char* m_text; // texte (sans z�ro terminateur)
+ char* m_format; // format des caract�res
+ int m_len; // longueur utilis�e dans m_text
int m_cursor1; // offset curseur
int m_cursor2; // offset curseur
BOOL m_bMulti; // TRUE -> multi lignes
- BOOL m_bEdit; // TRUE -> éditable
+ BOOL m_bEdit; // TRUE -> �ditable
BOOL m_bHilite; // TRUE -> hilitable
BOOL m_bInsideScroll; // TRUE -> ascenseur dans le cadre
- BOOL m_bDisplaySpec; // TRUE -> affiche les caractères spéciaux
+ BOOL m_bDisplaySpec; // TRUE -> affiche les caract�res sp�ciaux
BOOL m_bMultiFont; // TRUE -> plusieurs fontes possible
BOOL m_bSoluce; // TRUE -> montre les liens-solution
- BOOL m_bGeneric; // TRUE -> générique qui défile
+ BOOL m_bGeneric; // TRUE -> g�n�rique qui d�file
BOOL m_bAutoIndent; // TRUE -> indentation automatique
float m_lineHeight; // hauteur d'une ligne
float m_lineAscent; // hauteur au-dessus de la ligne de base
float m_lineDescent; // hauteur au-dessous de la ligne de base
int m_lineVisible; // nb total de ligne affichables
- int m_lineFirst; // première ligne affichée
- int m_lineTotal; // nb lignes utilisées (ds m_lineOffset)
+ int m_lineFirst; // premi�re ligne affich�e
+ int m_lineTotal; // nb lignes utilis�es (ds m_lineOffset)
int m_lineOffset[EDITLINEMAX];
char m_lineIndent[EDITLINEMAX];
int m_imageTotal;