summaryrefslogtreecommitdiffstats
path: root/src/list.cpp
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/list.cpp
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/list.cpp')
-rw-r--r--src/list.cpp52
1 files changed, 33 insertions, 19 deletions
diff --git a/src/list.cpp b/src/list.cpp
index 79a3dd6..9d8baf6 100644
--- a/src/list.cpp
+++ b/src/list.cpp
@@ -1,4 +1,18 @@
-// list.cpp
+// * 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 STRICT
#define D3D_OVERLOADS
@@ -76,7 +90,7 @@ CList::~CList()
}
-// Crée une nouvelle liste.
+// Cr�e une nouvelle liste.
BOOL CList::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg,
float expand)
@@ -93,7 +107,7 @@ BOOL CList::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg,
return MoveAdjust();
}
-// Ajuste après un changement de dimensions.
+// Ajuste apr�s un changement de dimensions.
BOOL CList::MoveAdjust()
{
@@ -236,7 +250,7 @@ BOOL CList::ClearState(int state)
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CList::EventProcess(const Event &event)
{
@@ -316,7 +330,7 @@ BOOL CList::EventProcess(const Event &event)
Event newEvent = event;
newEvent.event = m_eventMsg;
- m_event->AddEvent(newEvent); // ligne sélectionnée changée
+ m_event->AddEvent(newEvent); // ligne s�lectionn�e chang�e
}
}
}
@@ -383,7 +397,7 @@ void CList::Draw()
if ( m_button[0] != 0 )
{
dim = m_button[0]->RetDim();
- dim.y *= m_displayLine; // fond pile-poil derrière
+ dim.y *= m_displayLine; // fond pile-poil derri�re
}
}
@@ -494,7 +508,7 @@ void CList::Draw()
uv1.y += dp;
uv2.x -= dp;
uv2.y -= dp;
- DrawIcon(pos, dim, uv1, uv2); // dessine carré
+ DrawIcon(pos, dim, uv1, uv2); // dessine carr�
m_engine->SetState(D3DSTATETTw);
uv1.x = 0.0f/256.0f; // v
@@ -562,7 +576,7 @@ void CList::DrawCase(char *text, FPOINT pos, float width, int justif)
}
-// Vide complètement la liste.
+// Vide compl�tement la liste.
void CList::Flush()
{
@@ -574,7 +588,7 @@ void CList::Flush()
}
-// Spécifie le nombre total de lignes.
+// Sp�cifie le nombre total de lignes.
void CList::SetTotal(int i)
{
@@ -589,7 +603,7 @@ int CList::RetTotal()
}
-// Sélectionne une ligne.
+// S�lectionne une ligne.
void CList::SetSelect(int i)
{
@@ -606,7 +620,7 @@ void CList::SetSelect(int i)
UpdateButton();
}
-// Retourne la ligne sélectionnée.
+// Retourne la ligne s�lectionn�e.
int CList::RetSelect()
{
@@ -621,7 +635,7 @@ int CList::RetSelect()
}
-// Gestion de la capacité à sélectionner une case.
+// Gestion de la capacit� � s�lectionner une case.
void CList::SetSelectCap(BOOL bEnable)
{
@@ -662,7 +676,7 @@ BOOL CList::RetBlink()
}
-// Spécifie le texte d'une ligne.
+// Sp�cifie le texte d'une ligne.
void CList::SetName(int i, char* name)
{
@@ -695,7 +709,7 @@ char* CList::RetName(int i)
}
-// Spécifie le bit "check" pour une case.
+// Sp�cifie le bit "check" pour une case.
void CList::SetCheck(int i, BOOL bMode)
{
@@ -714,7 +728,7 @@ BOOL CList::RetCheck(int i)
}
-// Spécifie le bit "enable" pour une case.
+// Sp�cifie le bit "enable" pour une case.
void CList::SetEnable(int i, BOOL bMode)
{
@@ -749,7 +763,7 @@ float CList::RetTabs(int i)
}
-// Déplace l'ascenseur de la liste pour voir la ligne sélectionnée.
+// D�place l'ascenseur de la liste pour voir la ligne s�lectionn�e.
void CList::ShowSelect(BOOL bFixed)
{
@@ -776,7 +790,7 @@ void CList::ShowSelect(BOOL bFixed)
}
-// Met à jour tous les noms des boutons.
+// Met � jour tous les noms des boutons.
void CList::UpdateButton()
{
@@ -806,7 +820,7 @@ void CList::UpdateButton()
}
}
-// Met à jour l'ascenseur.
+// Met � jour l'ascenseur.
void CList::UpdateScroll()
{
@@ -838,7 +852,7 @@ void CList::UpdateScroll()
m_scroll->SetArrowStep(step);
}
-// Mise à jour lorsque l'ascenseur a été bougé.
+// Mise � jour lorsque l'ascenseur a �t� boug�.
void CList::MoveScroll()
{