[gcompris/gcomprixogoo] Added support for demo version on mac.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Added support for demo version on mac.
- Date: Mon, 5 Apr 2010 19:48:27 +0000 (UTC)
commit c4625a6692221e5a8c5f6d330db79cdad8c2727f
Author: Bruno Coudoin <bruno ordinateur-de-bruno-coudoin local>
Date: Mon Apr 5 11:37:48 2010 +0200
Added support for demo version on mac.
configure.ac | 27 +++++++++++---------
src/awele-activity/awele.xml.in | 3 +-
src/ballcatch-activity/ballcatch.xml.in | 3 +-
src/canal_lock-activity/canal_lock.xml.in | 1 +
.../click_on_letter.xml.in | 3 +-
src/clickgame-activity/clickgame.xml.in | 3 +-
src/clockgame-activity/clockgame.xml.in | 9 +++---
src/colors-activity/colors.xml.in | 3 +-
src/crane-activity/crane.xml.in | 3 +-
src/enumerate-activity/enumerate.xml.in | 3 +-
src/erase-activity/erase.xml.in | 3 +-
src/erase_2clic-activity/erase_2clic.xml.in | 3 +-
src/erase_clic-activity/erase_clic.xml.in | 3 +-
src/followline-activity/followline.xml.in | 3 +-
src/gcompris/board.c | 10 ++++++-
src/gcompris/gcompris.c | 7 ++---
src/gcompris/menu.c | 4 ++-
src/gletters-activity/gletters.xml.in | 9 +++---
src/guessnumber-activity/guessnumber.xml.in | 3 +-
src/hanoi-activity/hanoi.xml.in | 3 +-
src/hanoi_real-activity/hanoi_real.xml.in | 3 +-
src/leftright-activity/leftright.xml.in | 3 +-
.../magic_hat_minus.xml.in | 7 +++--
src/magic_hat_plus-activity/magic_hat_plus.xml.in | 3 +-
src/money-activity/money.xml.in | 3 +-
src/money_cents-activity/money_cents.xml.in | 3 +-
src/mosaic-activity/mosaic.xml.in | 3 +-
src/photohunter-activity/photohunter.xml.in | 3 +-
src/pythontemplate-activity/pythontemplate.xml.in | 3 +-
src/pythontest-activity/pythontest.xml.in | 3 +-
src/readingh-activity/readingh.xml.in | 11 ++++---
src/readingv-activity/readingv.xml.in | 11 ++++---
src/redraw-activity/redraw.xml.in | 3 +-
.../redraw_symmetrical.xml.in | 3 +-
src/scalesboard-activity/scalesboard.xml.in | 3 +-
.../scalesboard_weight.xml.in | 3 +-
src/searace-activity/searace.xml.in | 3 +-
src/searace1player-activity/searace1player.xml.in | 3 +-
src/submarine-activity/submarine.xml.in | 3 +-
src/sudoku-activity/sudoku.xml.in | 3 +-
src/superbrain-activity/superbrain.xml.in | 3 +-
src/target-activity/target.xml.in | 3 +-
src/watercycle-activity/watercycle.xml.in | 3 +-
43 files changed, 123 insertions(+), 72 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8994800..cf72772 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,6 +208,13 @@ else
CFLAGS="$CFLAGS $OSX_CFLAGS -Wall -Werror"
fi
+dnl disable activation code
+AC_ARG_ENABLE(disable-activation-code,
+ AC_HELP_STRING(
+ [--disable-activation-code],
+ [For Windows or MacOSX version, disable the activation code]),
+ disable_activation_code="$enableval", disable_activation_code="no")
+
dnl WIN32 Specifics
AC_MSG_CHECKING([for Win32 platform in general])
case "$host" in
@@ -293,10 +300,14 @@ if test "x$platform_win32" = "xyes" ; then
dnl Test for gnuchess
AC_DEFINE_UNQUOTED(GNUCHESS, "gnuchess.exe", Defines where GNU Chess resides on the system)
+ if test x$disable_activation_code = xno; then
+ AC_DEFINE([ACTIVATION_CODE], 1,[Activation code is enabled])
+ fi
+
elif test "x$nsbundle" = "xyes" ; then
DATADIRNAME="share"
- dnl Set PACKAGE_LOCALE_DIR in config.h for WINDOWS
+ dnl Set PACKAGE_LOCALE_DIR in config.h for MacOSX
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "../Resources/${DATADIRNAME}/locale", [GCompris locale directory])
dnl Set PACKAGE_DATA_DIR
@@ -319,6 +330,9 @@ elif test "x$nsbundle" = "xyes" ; then
dnl Test for gnuchess
AC_DEFINE_UNQUOTED(GNUCHESS, "../Resources/bin/gnuchess", Defines where GNU Chess resides on the system)
+ if test x$disable_activation_code = xno; then
+ AC_DEFINE([ACTIVATION_CODE], 1,[Activation code is enabled])
+ fi
else
dnl Set PACKAGE_LOCALE_DIR in config.h.
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${myprefix}/${DATADIRNAME}/locale", [GCompris locale directory])
@@ -537,17 +551,6 @@ dnl define __GW32__ and WIN32
AC_SUBST(CFLAGS)
AC_SUBST(LIBS)
-dnl disable activation code
-AC_ARG_ENABLE(activation-code,
- AC_HELP_STRING(
- [--disable-activation-code],
- [For Windows or MacOSX version, disable the activation code]),
- activation_code="$enableval", activation_code="yes")
-
-if test x$activation_code = xno; then
- AC_DEFINE([DISABLE_ACTIVATION_CODE], 1,[Activation code is disabled])
-fi
-
dnl Autoconf output
AC_OUTPUT([
Makefile.mingw
diff --git a/src/awele-activity/awele.xml.in b/src/awele-activity/awele.xml.in
index 267dcc4..a20f599 100644
--- a/src/awele-activity/awele.xml.in
+++ b/src/awele-activity/awele.xml.in
@@ -7,7 +7,8 @@
difficulty="2"
icon="awele.svg"
author="Frédéric Mazzarol"
- boarddir="awele">
+ boarddir="awele"
+ demo="1">
<_title>Oware</_title>
<_description>Play the Oware strategy game against Tux</_description>
<_prerequisite></_prerequisite>
diff --git a/src/ballcatch-activity/ballcatch.xml.in b/src/ballcatch-activity/ballcatch.xml.in
index 4cc5772..f935bb7 100644
--- a/src/ballcatch-activity/ballcatch.xml.in
+++ b/src/ballcatch-activity/ballcatch.xml.in
@@ -7,7 +7,8 @@
icon="ballcatch.svg"
difficulty="1"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Make the ball go to Tux</_title>
<_description>Press the two shift keys at the same time, to make the ball go in a straight line.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/canal_lock-activity/canal_lock.xml.in b/src/canal_lock-activity/canal_lock.xml.in
index f0cbe52..c19f479 100644
--- a/src/canal_lock-activity/canal_lock.xml.in
+++ b/src/canal_lock-activity/canal_lock.xml.in
@@ -8,6 +8,7 @@
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
boarddir="">
+ demo="1">
<_title>Operate a canal lock</_title>
<_description>Tux is in trouble, and needs to take his boat through a lock. Help Tux and find out how a canal lock works.</_description>
<_manual>You are in charge of the canal lock. Open the gates and the locks in the right order, so Tux can travel through the gates in both directions.</_manual>
diff --git a/src/click_on_letter-activity/click_on_letter.xml.in b/src/click_on_letter-activity/click_on_letter.xml.in
index d2c4aec..54fea95 100644
--- a/src/click_on_letter-activity/click_on_letter.xml.in
+++ b/src/click_on_letter-activity/click_on_letter.xml.in
@@ -9,7 +9,8 @@
mandatory_sound_file="voices/$LOCALE/misc/click_on_letter.ogg"
difficulty="1"
author="Pascal Georges (pascal georges1 free fr)"
- boarddir="click_on_letter">
+ boarddir="click_on_letter"
+ demo="1">
<_title>Click on a letter</_title>
<_description>Listen to a letter and click on the right one</_description>
<_prerequisite>Visual letter-recognition. Can move the mouse.</_prerequisite>
diff --git a/src/clickgame-activity/clickgame.xml.in b/src/clickgame-activity/clickgame.xml.in
index a451f16..0cad78a 100644
--- a/src/clickgame-activity/clickgame.xml.in
+++ b/src/clickgame-activity/clickgame.xml.in
@@ -7,7 +7,8 @@
icon="clickgame.svg"
difficulty="1"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="fishes">
+ boarddir="fishes"
+ demo="1">
<_title>Click On Me</_title>
<_description>Left-Click with the mouse on all the swimming fish before they leave the fishtank</_description>
<_prerequisite>Mouse-manipulation</_prerequisite>
diff --git a/src/clockgame-activity/clockgame.xml.in b/src/clockgame-activity/clockgame.xml.in
index a32b826..71dddb8 100644
--- a/src/clockgame-activity/clockgame.xml.in
+++ b/src/clockgame-activity/clockgame.xml.in
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
- <Board
+ <Board
name="clockgame"
- type="clockgame"
+ type="clockgame"
section="/discovery/miscelaneous"
- icon="clockgame.svg"
+ icon="clockgame.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Learning Clock</_title>
<_description>Learn how to tell the time</_description>
<_prerequisite>The concept of time. Reading the time.</_prerequisite>
diff --git a/src/colors-activity/colors.xml.in b/src/colors-activity/colors.xml.in
index f7c772c..56e5cba 100644
--- a/src/colors-activity/colors.xml.in
+++ b/src/colors-activity/colors.xml.in
@@ -8,7 +8,8 @@
difficulty="1"
icon="colors.svg"
author="Pascal Georges (pascal georges1 free fr)"
- boarddir="colors">
+ boarddir="colors"
+ demo="1">
<_title>Colors</_title>
<_description>Click on the right color</_description>
<_prerequisite>Can move the mouse.</_prerequisite>
diff --git a/src/crane-activity/crane.xml.in b/src/crane-activity/crane.xml.in
index 96c9073..2519ade 100644
--- a/src/crane-activity/crane.xml.in
+++ b/src/crane-activity/crane.xml.in
@@ -8,7 +8,8 @@
difficulty="2"
mode="normal"
author="Marc BRUN"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Build the same model</_title>
<_description>Drive the crane and copy the model</_description>
<_prerequisite>Mouse manipulation</_prerequisite>
diff --git a/src/enumerate-activity/enumerate.xml.in b/src/enumerate-activity/enumerate.xml.in
index 7b26fd2..16dd2e8 100644
--- a/src/enumerate-activity/enumerate.xml.in
+++ b/src/enumerate-activity/enumerate.xml.in
@@ -6,7 +6,8 @@
section="/math/numeration"
icon="enumerate.svg"
difficulty="1"
- author="Bruno Coudoin (bruno coudoin free fr)">
+ author="Bruno Coudoin (bruno coudoin free fr)"
+ demo="1">
<_title>Count the items</_title>
<_description>Place the items in the best way to count them</_description>
<_goal>Numeration training</_goal>
diff --git a/src/erase-activity/erase.xml.in b/src/erase-activity/erase.xml.in
index e1749df..95ca84d 100644
--- a/src/erase-activity/erase.xml.in
+++ b/src/erase-activity/erase.xml.in
@@ -8,7 +8,8 @@
difficulty="1"
mode="normal"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Move the mouse</_title>
<_description>Move the mouse to erase the area and discover the background</_description>
<_prerequisite>Mouse-manipulation</_prerequisite>
diff --git a/src/erase_2clic-activity/erase_2clic.xml.in b/src/erase_2clic-activity/erase_2clic.xml.in
index 07fa368..a6d4b48 100644
--- a/src/erase_2clic-activity/erase_2clic.xml.in
+++ b/src/erase_2clic-activity/erase_2clic.xml.in
@@ -8,7 +8,8 @@
difficulty="2"
mode="doubleclic"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Double click the mouse</_title>
<_description>Double click the mouse to erase the area and discover the background</_description>
<_prerequisite>Mouse-manipulation</_prerequisite>
diff --git a/src/erase_clic-activity/erase_clic.xml.in b/src/erase_clic-activity/erase_clic.xml.in
index ee199d6..3bab3f9 100644
--- a/src/erase_clic-activity/erase_clic.xml.in
+++ b/src/erase_clic-activity/erase_clic.xml.in
@@ -8,7 +8,8 @@
difficulty="1"
mode="clic"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Click the mouse</_title>
<_description>Click the mouse to erase the area and discover the background</_description>
<_prerequisite>Mouse-manipulation</_prerequisite>
diff --git a/src/followline-activity/followline.xml.in b/src/followline-activity/followline.xml.in
index c03a388..61000cb 100644
--- a/src/followline-activity/followline.xml.in
+++ b/src/followline-activity/followline.xml.in
@@ -7,7 +7,8 @@
icon="followline.svg"
difficulty="1"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Control the hose-pipe</_title>
<_description>Tux needs to water the flowers, but the hose is blocked.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/gcompris/board.c b/src/gcompris/board.c
index 318da5c..94ae7f5 100644
--- a/src/gcompris/board.c
+++ b/src/gcompris/board.c
@@ -27,8 +27,11 @@ static struct BoardPluginData *bp_data;
static gboolean get_board_playing(void);
-#ifdef STATIC_MODULE
+#ifdef ACTIVATION_CODE
int gc_activation_check(char *code);
+#endif
+
+#ifdef STATIC_MODULE
extern BoardPlugin * get_advanced_colors_bplugin_info();
extern BoardPlugin * get_algebra_bplugin_info();
extern BoardPlugin * get_algebra_guesscount_bplugin_info();
@@ -302,6 +305,11 @@ gc_board_check_file(GcomprisBoard *gcomprisBoard)
g_assert(gcomprisBoard!=NULL);
+#ifdef ACTIVATION_CODE
+ if ( !gcomprisBoard->demo && gc_activation_check(properties->key) <= 0 )
+ return FALSE;
+#endif
+
/* Check Already loaded */
if(gcomprisBoard->plugin!=NULL) {
return TRUE;
diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c
index bcf363f..e510671 100644
--- a/src/gcompris/gcompris.c
+++ b/src/gcompris/gcompris.c
@@ -81,7 +81,7 @@ static void single_instance_release();
/*
* For the Activation dialog
*/
-#ifdef STATIC_MODULE
+#ifdef ACTIVATION_CODE
int gc_activation_check(const char *code);
static void activation_enter_callback(GtkWidget *widget,
GtkWidget *entry );
@@ -840,7 +840,7 @@ static void setup_window ()
}
-#ifdef STATIC_MODULE
+#ifdef ACTIVATION_CODE
/** Display the activation dialog for the windows version
*
* return TRUE is the dialog is display, FALSE instead.
@@ -871,8 +871,7 @@ display_activation_dialog()
strncmp(board->section, "/experimental", 13) != 0)
{
board_count++;
- gc_board_check_file(board);
- if(board->plugin)
+ if(board->demo)
gc_board_number_in_demo++;
}
}
diff --git a/src/gcompris/menu.c b/src/gcompris/menu.c
index 9cf25ee..5d96905 100644
--- a/src/gcompris/menu.c
+++ b/src/gcompris/menu.c
@@ -102,7 +102,9 @@ _add_xml_to_data(xmlDocPtr doc, xmlNodePtr xmlnode, GNode * child,
gcomprisBoard->demo = FALSE;
char *demo = (char *)xmlGetProp(xmlnode, BAD_CAST "demo");
- if(demo && strcmp(demo, "1"))
+ // All menus are in the demo anyway
+ if( (demo && strcmp(demo, "1") == 0) ||
+ (strcmp(gcomprisBoard->type, "menu") == 0) )
gcomprisBoard->demo = TRUE;
/* Update the difficulty max */
diff --git a/src/gletters-activity/gletters.xml.in b/src/gletters-activity/gletters.xml.in
index 045103d..db25f31 100644
--- a/src/gletters-activity/gletters.xml.in
+++ b/src/gletters-activity/gletters.xml.in
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
- <Board
+ <Board
name="gletters"
- type="gletters"
+ type="gletters"
section="/computer/keyboard"
- icon="gletters.svg"
+ icon="gletters.svg"
difficulty="1"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Simple Letters</_title>
<_description>Type the falling letters before they reach the ground</_description>
<_goal>Letter association between the screen and the keyboard</_goal>
diff --git a/src/guessnumber-activity/guessnumber.xml.in b/src/guessnumber-activity/guessnumber.xml.in
index 594b7b7..a83e0e7 100644
--- a/src/guessnumber-activity/guessnumber.xml.in
+++ b/src/guessnumber-activity/guessnumber.xml.in
@@ -7,7 +7,8 @@
icon="guessnumber.svg"
difficulty="3"
author="Clement Coudoin (clement coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Guess a number</_title>
<_description>Help Tux escape the cave. Tux hides a number for you to find.</_description>
<_prerequisite>Numbers from 1 to 1000 for the last level.</_prerequisite>
diff --git a/src/hanoi-activity/hanoi.xml.in b/src/hanoi-activity/hanoi.xml.in
index 14ec360..9022159 100644
--- a/src/hanoi-activity/hanoi.xml.in
+++ b/src/hanoi-activity/hanoi.xml.in
@@ -7,7 +7,8 @@
icon="hanoi.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Simplified Tower of Hanoi</_title>
<_description>Reproduce the given tower</_description>
<_prerequisite>Mouse-manipulation</_prerequisite>
diff --git a/src/hanoi_real-activity/hanoi_real.xml.in b/src/hanoi_real-activity/hanoi_real.xml.in
index a979c93..d09c6b6 100644
--- a/src/hanoi_real-activity/hanoi_real.xml.in
+++ b/src/hanoi_real-activity/hanoi_real.xml.in
@@ -7,7 +7,8 @@
icon="hanoi_real.svg"
difficulty="3"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>The Tower of Hanoi</_title>
<_description>Reproduce the tower on the right side</_description>
<_prerequisite>Mouse manipulation</_prerequisite>
diff --git a/src/leftright-activity/leftright.xml.in b/src/leftright-activity/leftright.xml.in
index d89ac3c..9ecd930 100644
--- a/src/leftright-activity/leftright.xml.in
+++ b/src/leftright-activity/leftright.xml.in
@@ -7,7 +7,8 @@
difficulty="1"
icon="leftright.svg"
author="Pascal Georges (pascal georges1 free fr)"
- boarddir="leftright">
+ boarddir="leftright"
+ demo="1">
<_title>Find your left and right hands</_title>
<_description>Determine if a hand is a right or a left hand</_description>
<_goal>Distinguish right and left hands from different points of view. Spatial representation</_goal>
diff --git a/src/magic_hat_minus-activity/magic_hat_minus.xml.in b/src/magic_hat_minus-activity/magic_hat_minus.xml.in
index 6ac5b24..62fd7d4 100644
--- a/src/magic_hat_minus-activity/magic_hat_minus.xml.in
+++ b/src/magic_hat_minus-activity/magic_hat_minus.xml.in
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
- <Board
+ <Board
name="magic_hat_minus"
type="magic_hat"
section="/math/numeration"
- icon="magic_hat_minus.svg"
+ icon="magic_hat_minus.svg"
difficulty="2"
mode="minus"
author="Marc BRUN"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>The magician hat</_title>
<_description>Count how many items are under the magic hat after some have got away</_description>
<_prerequisite>Subtraction</_prerequisite>
diff --git a/src/magic_hat_plus-activity/magic_hat_plus.xml.in b/src/magic_hat_plus-activity/magic_hat_plus.xml.in
index 9af29e0..fb12554 100644
--- a/src/magic_hat_plus-activity/magic_hat_plus.xml.in
+++ b/src/magic_hat_plus-activity/magic_hat_plus.xml.in
@@ -8,7 +8,8 @@
difficulty="2"
mode="plus"
author="Marc BRUN"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>The magician hat</_title>
<_description>Count how many items are under the magic hat</_description>
<_prerequisite>Addition</_prerequisite>
diff --git a/src/money-activity/money.xml.in b/src/money-activity/money.xml.in
index 1165791..c3e222e 100644
--- a/src/money-activity/money.xml.in
+++ b/src/money-activity/money.xml.in
@@ -7,7 +7,8 @@
icon="money.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Money</_title>
<_description>Practice money usage</_description>
<_prerequisite>Can count</_prerequisite>
diff --git a/src/money_cents-activity/money_cents.xml.in b/src/money_cents-activity/money_cents.xml.in
index 5aa0937..cdd75d1 100644
--- a/src/money_cents-activity/money_cents.xml.in
+++ b/src/money_cents-activity/money_cents.xml.in
@@ -8,7 +8,8 @@
mode="WITH_CENTS"
difficulty="3"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Money</_title>
<_description>Practice money usage including cents</_description>
<_prerequisite>Can count</_prerequisite>
diff --git a/src/mosaic-activity/mosaic.xml.in b/src/mosaic-activity/mosaic.xml.in
index 4b16da9..f768293 100644
--- a/src/mosaic-activity/mosaic.xml.in
+++ b/src/mosaic-activity/mosaic.xml.in
@@ -7,7 +7,8 @@
icon="mosaic.svg"
difficulty="1"
author="Clement Coudoin (clement coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Rebuild the mosaic</_title>
<_description >Rebuild the mosaic</_description>
<_prerequisite></_prerequisite>
diff --git a/src/photohunter-activity/photohunter.xml.in b/src/photohunter-activity/photohunter.xml.in
index 7489585..4b8be62 100644
--- a/src/photohunter-activity/photohunter.xml.in
+++ b/src/photohunter-activity/photohunter.xml.in
@@ -7,7 +7,8 @@
icon="photohunter.svg"
difficulty="2"
author="Marc Le Douarain (http://membres.lycos.fr/mavati)"
- boarddir="photohunter">
+ boarddir="photohunter"
+ demo="1">
<_title>Photo hunter</_title>
<_description>Find the differences between two pictures</_description>
<_goal>Visual discrimination.</_goal>
diff --git a/src/pythontemplate-activity/pythontemplate.xml.in b/src/pythontemplate-activity/pythontemplate.xml.in
index 1817d2b..349d100 100644
--- a/src/pythontemplate-activity/pythontemplate.xml.in
+++ b/src/pythontemplate-activity/pythontemplate.xml.in
@@ -7,7 +7,8 @@
icon="python.svg"
difficulty="1"
author="Bruno coudoin"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Python Template</_title>
<_description>An empty python activity to use as a starting point</_description>
<_prerequisite>Advanced Python Programmer :)</_prerequisite>
diff --git a/src/pythontest-activity/pythontest.xml.in b/src/pythontest-activity/pythontest.xml.in
index a101799..27d8f19 100644
--- a/src/pythontest-activity/pythontest.xml.in
+++ b/src/pythontest-activity/pythontest.xml.in
@@ -7,7 +7,8 @@
icon="python.svg"
difficulty="1"
author="Olivier Samyn (osamyn ulb ac be)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Python Test</_title>
<_description>Test board for the python plugin</_description>
<_prerequisite>Advanced Python Programmer :)</_prerequisite>
diff --git a/src/readingh-activity/readingh.xml.in b/src/readingh-activity/readingh.xml.in
index 98573e2..d26a5bc 100644
--- a/src/readingh-activity/readingh.xml.in
+++ b/src/readingh-activity/readingh.xml.in
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
- <Board
+ <Board
name="readingh"
- type="reading"
+ type="reading"
section="/reading"
- mode="horizontal"
- icon="readingh.svg"
+ mode="horizontal"
+ icon="readingh.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="fishes">
+ boarddir="fishes"
+ demo="1">
<_title>Horizontal reading practice</_title>
<_description>Read a list of words and work out if a given word is in it</_description>
<_goal>Reading training in a limited time</_goal>
diff --git a/src/readingv-activity/readingv.xml.in b/src/readingv-activity/readingv.xml.in
index fd9e4ca..36346fb 100644
--- a/src/readingv-activity/readingv.xml.in
+++ b/src/readingv-activity/readingv.xml.in
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
- <Board
+ <Board
name="readingv"
- type="reading"
+ type="reading"
section="/reading"
- mode="vertical"
- icon="reading.svg"
+ mode="vertical"
+ icon="reading.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="fishes">
+ boarddir="fishes"
+ demo="1">
<_title>Vertical-reading practice</_title>
<_description>Read a vertical list of words and work out if a given word is in it</_description>
<_goal>Read training in a limited time</_goal>
diff --git a/src/redraw-activity/redraw.xml.in b/src/redraw-activity/redraw.xml.in
index 3c41633..cda1fce 100644
--- a/src/redraw-activity/redraw.xml.in
+++ b/src/redraw-activity/redraw.xml.in
@@ -8,7 +8,8 @@
difficulty="3"
icon="redraw.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Redraw the given item</_title>
<_description>Copy a drawing from the box on the right into the box on the left.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/redraw_symmetrical-activity/redraw_symmetrical.xml.in b/src/redraw_symmetrical-activity/redraw_symmetrical.xml.in
index 0bfe84a..47bc414 100644
--- a/src/redraw_symmetrical-activity/redraw_symmetrical.xml.in
+++ b/src/redraw_symmetrical-activity/redraw_symmetrical.xml.in
@@ -8,7 +8,8 @@
difficulty="4"
icon="redraw_symmetry.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Mirror the given item</_title>
<_description>Copy the mirror image of an object from the box on the right into the box on the left.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/scalesboard-activity/scalesboard.xml.in b/src/scalesboard-activity/scalesboard.xml.in
index efb8e4a..3539f60 100644
--- a/src/scalesboard-activity/scalesboard.xml.in
+++ b/src/scalesboard-activity/scalesboard.xml.in
@@ -8,7 +8,8 @@
mode="count"
difficulty="2"
author="miguel DE IZARRA (miguel2i free fr)"
- boarddir="scales">
+ boarddir="scales"
+ demo="1">
<_title>Balance the scales properly</_title>
<_description>Drag and Drop masses to balance the scales</_description>
<_goal>Mental calculation, arithmetic equality</_goal>
diff --git a/src/scalesboard_weight-activity/scalesboard_weight.xml.in b/src/scalesboard_weight-activity/scalesboard_weight.xml.in
index 1677825..328e7e3 100644
--- a/src/scalesboard_weight-activity/scalesboard_weight.xml.in
+++ b/src/scalesboard_weight-activity/scalesboard_weight.xml.in
@@ -8,7 +8,8 @@
mode="weight"
difficulty="4"
author="Wolfram Sang (wolfram iswi org)"
- boarddir="scales">
+ boarddir="scales"
+ demo="1">
<_title>Balance the scales properly</_title>
<_description>Drag and Drop masses to balance the scales and calculate the weight</_description>
<_goal>Mental calculation, arithmetic equality, unit conversion</_goal>
diff --git a/src/searace-activity/searace.xml.in b/src/searace-activity/searace.xml.in
index c7246fc..dafc3da 100644
--- a/src/searace-activity/searace.xml.in
+++ b/src/searace-activity/searace.xml.in
@@ -7,7 +7,8 @@
difficulty="6"
icon="searace.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="searace">
+ boarddir="searace"
+ demo="1">
<_title>Sea race (2 Players)</_title>
<_description>Direct your boat accurately to win the race.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/searace1player-activity/searace1player.xml.in b/src/searace1player-activity/searace1player.xml.in
index 40acd4b..c1f2864 100644
--- a/src/searace1player-activity/searace1player.xml.in
+++ b/src/searace1player-activity/searace1player.xml.in
@@ -8,7 +8,8 @@
difficulty="6"
icon="searace1player.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="searace">
+ boarddir="searace"
+ demo="1">
<_title>Sea race (Single Player)</_title>
<_description>Give good instructions to your ship in order to be first in the race.</_description>
<_prerequisite></_prerequisite>
diff --git a/src/submarine-activity/submarine.xml.in b/src/submarine-activity/submarine.xml.in
index 51db568..bb64ccb 100644
--- a/src/submarine-activity/submarine.xml.in
+++ b/src/submarine-activity/submarine.xml.in
@@ -7,7 +7,8 @@
difficulty="5"
icon="submarine.svg"
author="Pascal Georges (pascal georges1 free fr)"
- boarddir="submarine">
+ boarddir="submarine"
+ demo="1">
<_title>Pilot a submarine</_title>
<_description>Pilot a submarine using air tanks and dive rudders</_description>
<_prerequisite>Physics basics</_prerequisite>
diff --git a/src/sudoku-activity/sudoku.xml.in b/src/sudoku-activity/sudoku.xml.in
index 9014d20..c501cf3 100644
--- a/src/sudoku-activity/sudoku.xml.in
+++ b/src/sudoku-activity/sudoku.xml.in
@@ -7,7 +7,8 @@
icon="sudoku.svg"
difficulty="4"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Sudoku, place unique symbols in a square.</_title>
<_description>Symbols must be unique in a row, in a column, and (if defined) each region.</_description>
<_prerequisite>Completing the puzzle requires patience and logical ability</_prerequisite>
diff --git a/src/superbrain-activity/superbrain.xml.in b/src/superbrain-activity/superbrain.xml.in
index 32d2fc2..68f045d 100644
--- a/src/superbrain-activity/superbrain.xml.in
+++ b/src/superbrain-activity/superbrain.xml.in
@@ -7,7 +7,8 @@
icon="superbrain.svg"
difficulty="2"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="">
+ boarddir=""
+ demo="1">
<_title>Super Brain</_title>
<_description>Tux has hidden several items. Find them again in the correct order</_description>
<_prerequisite></_prerequisite>
diff --git a/src/target-activity/target.xml.in b/src/target-activity/target.xml.in
index 884144e..bd7c220 100644
--- a/src/target-activity/target.xml.in
+++ b/src/target-activity/target.xml.in
@@ -8,7 +8,8 @@
difficulty="2"
icon="target.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="target">
+ boarddir="target"
+ demo="1">
<_title>Practice addition with a target game</_title>
<_description>Hit the target and count your points</_description>
<_prerequisite>Can move the mouse, can read numbers and count up to 15 for the first level</_prerequisite>
diff --git a/src/watercycle-activity/watercycle.xml.in b/src/watercycle-activity/watercycle.xml.in
index ab5fcae..52186e4 100644
--- a/src/watercycle-activity/watercycle.xml.in
+++ b/src/watercycle-activity/watercycle.xml.in
@@ -7,7 +7,8 @@
difficulty="3"
icon="watercycle.svg"
author="Bruno Coudoin (bruno coudoin free fr)"
- boarddir="watercycle">
+ boarddir="watercycle"
+ demo="1">
<_title>Learn about the water cycle</_title>
<_description>Tux has come back from a long fishing party on his boat. Bring the water system back up so he can take a shower.</_description>
<_prerequisite></_prerequisite>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]