Commit d25221f5 authored by Yves Combe's avatar Yves Combe

Change section buhaviour in xml files

Registering boards in sqlite at load almost working (--enable-profils).
parent 38dd6128
2005-06-11 Yves Combe <yves@ycombe.net>
* Change section behaviour in xml board description
* some profils works: registering boards almost correct.
2005-06-11 Yves Combe <yves@ycombe.net> 2005-06-11 Yves Combe <yves@ycombe.net>
Profils stuff again. Profils stuff again.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="advanced_colors" name="advanced_colors"
type="advanced_colors" type="advanced_colors"
section="/fun/colors/." section="/fun/colors"
mode="*" mode="*"
difficulty="6" difficulty="6"
icon="boardicons/advanced_colors.png" icon="boardicons/advanced_colors.png"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="algebra_by" name="algebra_by"
type="algebra" type="algebra"
section="/algebra/algebra/." section="/algebra/calculus"
mode="*" mode="*"
difficulty="3" difficulty="3"
icon="boardicons/algebra_by.png" icon="boardicons/algebra_by.png"
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<GCompris> <GCompris>
<Board <Board
name="algebra" name="calculus"
type="menu" type="menu"
section="/algebra/algebra" section="/algebra"
icon="boardicons/algebra_group.png" icon="boardicons/algebra_group.png"
author=""> author="">
<_title>Go to Algebra activities</_title> <_title>Go to Algebra activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="algebra_guesscount" name="algebra_guesscount"
type="algebra_guesscount" type="algebra_guesscount"
section="/algebra/." section="/algebra"
difficulty="3" difficulty="3"
icon="boardicons/algebra_guesscount.png" icon="boardicons/algebra_guesscount.png"
author="Pascal Georges (pascal.georges1@free.fr)" author="Pascal Georges (pascal.georges1@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="algebra_minus" name="algebra_minus"
type="algebra" type="algebra"
section="/algebra/algebra/." section="/algebra/calculus"
mode="-" mode="-"
difficulty="2" difficulty="2"
icon="boardicons/algebra_minus.png" icon="boardicons/algebra_minus.png"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="algebra_plus" name="algebra_plus"
type="algebra" type="algebra"
section="/algebra/algebra/." section="/algebra/calculus"
mode="+" mode="+"
difficulty="1" difficulty="1"
icon="boardicons/algebra_plus.png" icon="boardicons/algebra_plus.png"
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<GCompris> <GCompris>
<Board <Board
name="algebramenu" name="algebra"
type="menu" type="menu"
section="/algebra" section="/"
icon="boardicons/algebramenu.png" icon="boardicons/algebramenu.png"
author=""> author="">
<_title>Go to Maths activities</_title> <_title>Go to Maths activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="algorithm" name="algorithm"
type="python:algorithm" type="python:algorithm"
section="/experience/." section="/experience"
difficulty="2" difficulty="2"
icon="boardicons/algorithm.png" icon="boardicons/algorithm.png"
author="Christof Petig and Ingo Konrad" author="Christof Petig and Ingo Konrad"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="anim" name="anim"
type="python:anim" type="python:anim"
section="/fun/." section="/fun"
mode="normal" mode="normal"
difficulty="3" difficulty="3"
icon="boardicons/anim.png" icon="boardicons/anim.png"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="babymatch" name="babymatch"
type="shapegame" type="shapegame"
section="/computer/." section="/computer"
icon="boardicons/babymatch.png" icon="boardicons/babymatch.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="babyshapes" name="babyshapes"
type="shapegame" type="shapegame"
section="/computer/." section="/computer"
icon="boardicons/babyshapes.png" icon="boardicons/babyshapes.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr) / Andre Connes (andre.connes@toulouse.iufm.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr) / Andre Connes (andre.connes@toulouse.iufm.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="ballcatch" name="ballcatch"
type="python:ballcatch" type="python:ballcatch"
section="/computer/." section="/computer"
icon="boardicons/ballcatch.png" icon="boardicons/ballcatch.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="bargame" name="bargame"
type="python:bargame" type="python:bargame"
section="/boards/." section="/boards"
difficulty="2" difficulty="2"
icon="boardicons/bargame.png" icon="boardicons/bargame.png"
author="Yves Combe" author="Yves Combe"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="billard" name="billard"
type="machpuzzle" type="machpuzzle"
section="/computer/." section="/computer"
icon="boardicons/billard.png" icon="boardicons/billard.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="boards" name="boards"
type="menu" type="menu"
section="/boards" section="/"
icon="boardicons/boards.png" icon="boardicons/boards.png"
author=""> author="">
<_title>Go to board based activities</_title> <_title>Go to board based activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="canal_lock" name="canal_lock"
type="canal_lock" type="canal_lock"
section="/experience/." section="/experience"
icon="boardicons/canal_lock.png" icon="boardicons/canal_lock.png"
difficulty="2" difficulty="2"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="chess" name="chess"
type="menu" type="menu"
section="/boards/chess" section="/boards"
icon="boardicons/chess.png" icon="boardicons/chess.png"
author=""> author="">
<_title>Practice chess</_title> <_title>Practice chess</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="chess_computer" name="chess_computer"
type="chess" type="chess"
section="/boards/chess/." section="/boards/chess"
mode="computer" mode="computer"
icon="boardicons/chess_computer.png" icon="boardicons/chess_computer.png"
difficulty="2" difficulty="2"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="chess_movelearn" name="chess_movelearn"
type="chess" type="chess"
section="/boards/chess/." section="/boards/chess"
mode="movelearn" mode="movelearn"
icon="boardicons/chess_movelearn.png" icon="boardicons/chess_movelearn.png"
difficulty="2" difficulty="2"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="chess_partyend" name="chess_partyend"
type="chess" type="chess"
section="/boards/chess/." section="/boards/chess"
mode="partyend" mode="partyend"
icon="boardicons/chess_partyend.png" icon="boardicons/chess_partyend.png"
difficulty="2" difficulty="2"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="chronos" name="chronos"
type="shapegame" type="shapegame"
section="/fun/." section="/fun"
icon="boardicons/chronos.png" icon="boardicons/chronos.png"
mandatory_sound_file="chronos/space/1.ogg" mandatory_sound_file="chronos/space/1.ogg"
difficulty="1" difficulty="1"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="click_on_letter" name="click_on_letter"
type="click_on_letter" type="click_on_letter"
section="/reading/." section="/reading"
icon="boardicons/click_on_letter.png" icon="boardicons/click_on_letter.png"
mandatory_sound_file="click_on_letter.ogg" mandatory_sound_file="click_on_letter.ogg"
mandatory_sound_dataset="gcompris misc" mandatory_sound_dataset="gcompris misc"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="clickgame" name="clickgame"
type="clickgame" type="clickgame"
section="/computer/mouse/." section="/computer/mouse"
icon="boardicons/clickgame.png" icon="boardicons/clickgame.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="clockgame" name="clockgame"
type="clockgame" type="clockgame"
section="/fun/." section="/fun"
icon="boardicons/clockgame.png" icon="boardicons/clockgame.png"
difficulty="2" difficulty="2"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<GCompris> <GCompris>
<Board <Board
name="colors" name="colors1"
type="colors" type="colors"
section="/fun/colors/." section="/fun/colors"
mode="*" mode="*"
difficulty="1" difficulty="1"
icon="boardicons/colors.png" icon="boardicons/colors.png"
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<GCompris> <GCompris>
<Board <Board
name="colors_group" name="colors"
type="menu" type="menu"
section="/fun/colors" section="/fun"
icon="boardicons/colors.png" icon="boardicons/colors.png"
author=""> author="">
<_title>Go to colors activities</_title> <_title>Go to colors activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="computer" name="computer"
type="menu" type="menu"
section="/computer" section="/"
icon="boardicons/computer.png" icon="boardicons/computer.png"
author=""> author="">
<_title>Discover the Computer</_title> <_title>Discover the Computer</_title>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<GCompris> <GCompris>
<Board type="python:connect4" section="/boards/." <Board type="python:connect4"
name="connect4" icon="boardicons/connect4.png" section="/boards"
difficulty="2" boarddir="connect4" name="connect4"
author="Laurent Lacheny (laurent.lacheny@wanadoo.fr)"> icon="boardicons/connect4.png"
difficulty="2"
boarddir="connect4"
author="Laurent Lacheny (laurent.lacheny@wanadoo.fr)">
<_title>Connect 4</_title> <_title>Connect 4</_title>
<_description>Arrange four coins in a row</_description> <_description>Arrange four coins in a row</_description>
<_prerequisite>Mouse manipulation</_prerequisite> <_prerequisite>Mouse manipulation</_prerequisite>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="doubleentry" name="doubleentry"
type="shapegame" type="shapegame"
section="/algebra/." section="/algebra"
icon="boardicons/doubleentry.png" icon="boardicons/doubleentry.png"
difficulty="2" difficulty="2"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="draw" name="draw"
type="python:anim" type="python:anim"
section="/fun/." section="/fun"
icon="boardicons/draw.png" icon="boardicons/draw.png"
mode="draw" mode="draw"
difficulty="2" difficulty="2"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="enumerate" name="enumerate"
type="enumerate" type="enumerate"
section="/algebra/." section="/algebra"
icon="boardicons/enumerate.png" icon="boardicons/enumerate.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)"> author="Bruno Coudoin (bruno.coudoin@free.fr)">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="erase" name="erase"
type="erase" type="erase"
section="/computer/mouse/." section="/computer/mouse"
icon="boardicons/erase.png" icon="boardicons/erase.png"
difficulty="1" difficulty="1"
mode="normal" mode="normal"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="erase_clic" name="erase_clic"
type="erase" type="erase"
section="/computer/mouse/." section="/computer/mouse"
icon="boardicons/erase_clic.png" icon="boardicons/erase_clic.png"
difficulty="1" difficulty="1"
mode="clic" mode="clic"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="erase_double_clic" name="erase_double_clic"
type="erase" type="erase"
section="/computer/mouse/." section="/computer/mouse"
icon="boardicons/erase_double_clic.png" icon="boardicons/erase_double_clic.png"
difficulty="2" difficulty="2"
mode="double_clic" mode="double_clic"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="experience" name="experience"
type="menu" type="menu"
section="/experience" section="/"
icon="boardicons/experience.png" icon="boardicons/experience.png"
author=""> author="">
<_title>Go to experiences activities</_title> <_title>Go to experiences activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="fifteen" name="fifteen"
type="fifteen" type="fifteen"
section="/boards/." section="/boards"
icon="boardicons/fifteen.png" icon="boardicons/fifteen.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="followline" name="followline"
type="python:followline" type="python:followline"
section="/computer/mouse/." section="/computer/mouse"
icon="boardicons/followline.png" icon="boardicons/followline.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="fun" name="fun"
type="menu" type="menu"
section="/fun" section="/"
icon="boardicons/fun.png" icon="boardicons/fun.png"
author=""> author="">
<_title>Go to Amusement activities</_title> <_title>Go to Amusement activities</_title>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="geography" name="geography"
type="shapegame" type="shapegame"
section="/fun/." section="/fun"
icon="boardicons/globe.png" icon="boardicons/globe.png"
mandatory_sound_file="peru.ogg" mandatory_sound_file="peru.ogg"
mandatory_sound_dataset="gcompris geography" mandatory_sound_dataset="gcompris geography"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gletters" name="gletters"
type="gletters" type="gletters"
section="/computer/." section="/computer"
icon="boardicons/gletters.png" icon="boardicons/gletters.png"
difficulty="1" difficulty="1"
author="Bruno Coudoin (bruno.coudoin@free.fr)" author="Bruno Coudoin (bruno.coudoin@free.fr)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gnumch-equality" name="gnumch-equality"
type="python:gnumch" type="python:gnumch"
section="/algebra/gnumch/." section="/algebra/gnumch"
difficulty="3" difficulty="3"
icon="boardicons/gnumch.png" icon="boardicons/gnumch.png"
author="Joe Neeman (spuzzzzzzz@gmail.com)" author="Joe Neeman (spuzzzzzzz@gmail.com)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gnumch-factors" name="gnumch-factors"
type="python:gnumch" type="python:gnumch"
section="/algebra/gnumch/." section="/algebra/gnumch"
difficulty="5" difficulty="5"
icon="boardicons/gnumch.png" icon="boardicons/gnumch.png"
author="Joe Neeman (spuzzzzzzz@gmail.com)" author="Joe Neeman (spuzzzzzzz@gmail.com)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gnumch-inequality" name="gnumch-inequality"
type="python:gnumch" type="python:gnumch"
section="/algebra/gnumch/." section="/algebra/gnumch"
difficulty="3" difficulty="3"
icon="boardicons/gnumch.png" icon="boardicons/gnumch.png"
author="Joe Neeman (spuzzzzzzz@gmail.com)" author="Joe Neeman (spuzzzzzzz@gmail.com)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gnumch-multiples" name="gnumch-multiples"
type="python:gnumch" type="python:gnumch"
section="/algebra/gnumch/." section="/algebra/gnumch"
difficulty="3" difficulty="3"
icon="boardicons/gnumch.png" icon="boardicons/gnumch.png"
author="Joe Neeman (spuzzzzzzz@gmail.com)" author="Joe Neeman (spuzzzzzzz@gmail.com)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board
name="gnumch-primes" name="gnumch-primes"
type="python:gnumch" type="python:gnumch"
section="/algebra/gnumch/." section="/algebra/gnumch"
difficulty="6" difficulty="6"
icon="boardicons/gnumch.png" icon="boardicons/gnumch.png"
author="Joe Neeman (spuzzzzzzz@gmail.com)" author="Joe Neeman (spuzzzzzzz@gmail.com)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Board <Board