diff --git a/JournalDesModifications.pdf b/JournalDesModifications.pdf index ca52c5d6..cb4a07e9 100644 Binary files a/JournalDesModifications.pdf and b/JournalDesModifications.pdf differ diff --git a/ReleaseNotes.pdf b/ReleaseNotes.pdf index 4d86e6e7..26bc0207 100644 Binary files a/ReleaseNotes.pdf and b/ReleaseNotes.pdf differ diff --git a/Sankore_3.1.pro b/Sankore_3.1.pro index 66991470..9da0c92a 100644 --- a/Sankore_3.1.pro +++ b/Sankore_3.1.pro @@ -11,10 +11,20 @@ linux-g++-64 { CONFIG += link_prl } + +linux-g++-32 { + CONFIG += link_prl +} + + +linux-g++ { + CONFIG += link_prl +} + VERSION_MAJ = 2 VERSION_MIN = 00 VERSION_TYPE = b # a = alpha, b = beta, r = release, other => error -VERSION_PATCH = 01 +VERSION_PATCH = 02 VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}" VERSION = $$replace(VERSION, "\\.r", "") @@ -352,6 +362,7 @@ macx { linux-g++ { LIBS += -lcrypto + LIBS += -lX11 QMAKE_CFLAGS += -fopenmp QMAKE_CXXFLAGS += -fopenmp QMAKE_LFLAGS += -fopenmp @@ -367,6 +378,7 @@ linux-g++ { linux-g++-32 { LIBS += -lcrypto + LIBS += -lX11 QMAKE_CFLAGS += -fopenmp QMAKE_CXXFLAGS += -fopenmp QMAKE_LFLAGS += -fopenmp diff --git a/release.win7.vc9.bat b/release.win7.vc9.bat index af1f549b..b9a7fbf9 100644 --- a/release.win7.vc9.bat +++ b/release.win7.vc9.bat @@ -1,7 +1,7 @@ REM -------------------------------------------------------------------- REM This program is free software: you can redistribute it and/or modify REM it under the terms of the GNU General Public License as published by -REM the Free Software Foundation, either version 3 of the License, or +REM the Free Software Foundation, either version 2 of the License, or REM (at your option) any later version. REM REM This program is distributed in the hope that it will be useful, @@ -18,6 +18,7 @@ set QT_BIN=%QT_DIR%\bin set PROGRAMS_FILE_PATH=C:\Program Files +set SEVEN_ZIP_EXE="%PROGRAMS_FILE_PATH%\7-Zip\7z.exe" set GIT_BIN=%PROGRAMS_FILE_PATH%\Git\bin set VS_BIN=%PROGRAMS_FILE_PATH%\Microsoft Visual Studio 9.0\VC\bin set WIN_SDK_BIN=%PROGRAMS_FILE_PATH%\Microsoft SDKs\Windows\v6.0A\Bin @@ -46,7 +47,9 @@ set EDITION=MNEMIS_EDITION %LRELEASE% Sankore_3.1.pro %LRELEASE% %BASE_QT_TRANSLATIONS_DIRECTORY%\translations.pro -REM set /p VERSION= < build\win32\release\version +set /p VERSION= < build\win32\release\version +REM remove the last character that is a space +set VERSION=%VERSION: =% REM git rev-list --tags --max-count=1 > tmp REM set /p LAST_TAG= < tmp REM erase tmp @@ -78,3 +81,19 @@ set INSTALLER_PATH=.\install\win32\%INSTALLER_NAME%.exe call "%INNO_EXE%" "Sankore 3.1.iss" /F"%INSTALLER_NAME%" +set INSTALL_DIRECTORY=install\win32\ + +xcopy *.pdf %INSTALL_DIRECTORY% +cd %INSTALL_DIRECTORY% +call %SEVEN_ZIP_EXE% a Open-Sankor‚_Windows_%VERSION%.zip *.exe *.pdf +cd ..\..\ +GOTO END + +:EXIT_WITH_ERROR +echo "Error found" +GOTO :EOF + +:END +echo "Open-Sankore's build finished" + +:EOF diff --git a/resources/etc/freezedWidgetWrapper.html b/resources/etc/freezedWidgetWrapper.html index 56f2f42a..00aaeb1b 100644 --- a/resources/etc/freezedWidgetWrapper.html +++ b/resources/etc/freezedWidgetWrapper.html @@ -9,9 +9,19 @@ width: 100%; } - div{ + #freezed{ text-align: center; - border: 5px #ccc outset; + border: 5px solid #ccc; + border-radius: 80px; + box-shadow: inset 0 0 30px rgba(66,66,66,0.5); + } + + .loading{ + color: #999; + font-weight: bold; + font-size: large; + margin-top: 5px; + margin-left: 5px; } -
Widget freezed.
+
Loading ...
\ No newline at end of file diff --git a/resources/etc/img/loading.gif b/resources/etc/img/loading.gif new file mode 100644 index 00000000..feb4229e Binary files /dev/null and b/resources/etc/img/loading.gif differ diff --git a/resources/library/applications/Calculatrice.wgt/js/ubw-main.js b/resources/library/applications/Calculatrice.wgt/js/ubw-main.js index f0a1b0f9..70755293 100644 --- a/resources/library/applications/Calculatrice.wgt/js/ubw-main.js +++ b/resources/library/applications/Calculatrice.wgt/js/ubw-main.js @@ -350,7 +350,6 @@ function init(){ function compute(){ var result; - //alert(calc) if(calc.length <= 1) result = eval(calc); else{ @@ -362,7 +361,6 @@ function init(){ operation = (calc.indexOf("+", 0) != -1)?calc.charAt(calc.indexOf("+", 0)):((calc.indexOf("*", 0) != -1)?calc.charAt(calc.indexOf("*", 0)):((calc.indexOf("/", 0) != -1)?calc.charAt(calc.indexOf("/", 0)):((calc.indexOf("-", 0) != -1)?calc.charAt(calc.indexOf("-", 0)):""))); fNumber = fMinus + calc.substring(0, calc.indexOf(operation, 0)); lNumber = calc.substring(calc.indexOf(operation, 0)+1, calc.length); - //alert(fNumber + " | " + operation + " | " + lNumber) result = calcIt(fNumber, operation, lNumber); } @@ -391,10 +389,10 @@ function init(){ lCount = (lNumber.indexOf(".", 0) != -1)?lNumber.substring(lNumber.indexOf(".", 0)+1, lNumber.length):""; length = (fCount.length >= lCount.length)?fCount.length:lCount.length; length = Math.pow(10, length); - fNumber = fNumber * length; - lNumber = lNumber * length; + fNumber = Math.round(fNumber * length); + lNumber = Math.round(lNumber * length); switch(operation){ - case "+": + case "+": result = (fNumber + lNumber)/length; break; case "-": @@ -516,10 +514,27 @@ function init(){ displayTrunk = displayTrunk.substr(0, displayTrunk.length-1); }; - calc += String(char); - displayTrunk += String(char); - historyTrunk += String(char); - lastchar.type = "Number"; + if(calc == "0"){ + if(char != "0"){ + if(char != "."){ + calc = String(char); + displayTrunk = String(char); + historyTrunk = String(char); + lastchar.type = "Number"; + } else{ + calc += String(char); + displayTrunk += String(char); + historyTrunk += String(char); + lastchar.type = "Number"; + } + } + } else { + char = (char == ".")?((displayTrunk.indexOf(".", 0) != -1)?"":"."):char; + calc += String(char); + displayTrunk += String(char); + historyTrunk += String(char); + lastchar.type = "Number"; + } } // char is an operator else { diff --git a/resources/library/interactivities/Ass images.wgt/css/basic.css b/resources/library/interactivities/Ass images.wgt/css/basic.css index 033ef2d2..51369796 100644 --- a/resources/library/interactivities/Ass images.wgt/css/basic.css +++ b/resources/library/interactivities/Ass images.wgt/css/basic.css @@ -64,7 +64,7 @@ body{ .sub_cont{ width: 100%; padding: 0; - margin: 20px 0 0 0; + margin: 20px 0 5px 0; min-height: 60px; } @@ -84,7 +84,7 @@ body{ } .imgs_answers_gray{ - + } .imgs_answers_green{ @@ -114,11 +114,12 @@ body{ min-height: 40px; max-height: 60px; float: right; - overflow: auto; + overflow-x: hidden; background-color: #ccc; border-top-left-radius: 10px; border-bottom-left-radius: 10px; - padding-left: 10px; + padding-left: 10px; + word-break: break-all; } .close_cont{ @@ -207,7 +208,7 @@ body{ } .dropBack{ - + } /* new design */ @@ -417,5 +418,5 @@ body{ } .open{ - + } \ No newline at end of file diff --git a/resources/library/interactivities/Ass sons.wgt/css/basic.css b/resources/library/interactivities/Ass sons.wgt/css/basic.css index b684a1d8..9045c831 100644 --- a/resources/library/interactivities/Ass sons.wgt/css/basic.css +++ b/resources/library/interactivities/Ass sons.wgt/css/basic.css @@ -218,6 +218,7 @@ body{ overflow-x: hidden; float: right; margin-left: 20px; + word-break: break-all; } .play, .stop{ diff --git a/resources/library/interactivities/Cat images.wgt/css/basic.css b/resources/library/interactivities/Cat images.wgt/css/basic.css index 64362b4a..1fd13dc1 100644 --- a/resources/library/interactivities/Cat images.wgt/css/basic.css +++ b/resources/library/interactivities/Cat images.wgt/css/basic.css @@ -150,16 +150,16 @@ body{ height: 30px; float: right; cursor: pointer; - background-color: white; + background-color: transparent; border: none; } .del_category{ - + background-image: url(../img/minus.png); } .add_category{ - + background-image: url(../img/plus.png); } .cat_desc{ diff --git a/resources/library/interactivities/Cat images.wgt/img/minus.png b/resources/library/interactivities/Cat images.wgt/img/minus.png new file mode 100644 index 00000000..58da86aa Binary files /dev/null and b/resources/library/interactivities/Cat images.wgt/img/minus.png differ diff --git a/resources/library/interactivities/Cat images.wgt/img/plus.png b/resources/library/interactivities/Cat images.wgt/img/plus.png new file mode 100644 index 00000000..39ff322d Binary files /dev/null and b/resources/library/interactivities/Cat images.wgt/img/plus.png differ diff --git a/resources/library/interactivities/Cat images.wgt/js/script.js b/resources/library/interactivities/Cat images.wgt/js/script.js index 3f239c07..441c3ea1 100644 --- a/resources/library/interactivities/Cat images.wgt/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/js/script.js @@ -5,7 +5,7 @@ var sankoreLang = { second_desc: "Even numbers", enter: "Enter your category name here ...", add: "Add new block", - wgt_name: "Order images", + wgt_name: "Categorize images", reload: "Reload", slate: "Wood", pad: "Pad", @@ -160,8 +160,8 @@ function start(){ $("
").appendTo(container); container.find(".imgs_cont").each(function(){ - $("").appendTo($(this)); - $("").appendTo($(this)); + $("").appendTo($(this)); + $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") @@ -558,8 +558,8 @@ function addCategory(obj){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") @@ -579,8 +579,8 @@ function addContainer(){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"#e6f6ff\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"#c3e9ff\"); return false;") @@ -787,7 +787,6 @@ function onDropTarget(obj, event) { } } } - exportData(); } else { alert ("Your browser does not support the dataTransfer object."); diff --git a/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js b/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js index 0b45e459..4b2ff920 100644 --- a/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js @@ -158,8 +158,8 @@ function start(){ $("
").appendTo(container); container.find(".imgs_cont").each(function(){ - $("").appendTo($(this)); - $("").appendTo($(this)); + $("").appendTo($(this)); + $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") @@ -556,8 +556,8 @@ function addCategory(obj){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") @@ -577,8 +577,8 @@ function addContainer(){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") diff --git a/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js b/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js index c6a2ab6d..367e5630 100644 --- a/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js @@ -158,8 +158,8 @@ function start(){ $("
").appendTo(container); container.find(".imgs_cont").each(function(){ - $("").appendTo($(this)); - $("").appendTo($(this)); + $("").appendTo($(this)); + $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") @@ -559,8 +559,8 @@ function addCategory(obj){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") @@ -580,8 +580,8 @@ function addContainer(){ $("").appendTo(imgs_container); var tmp_div = $("
").appendTo(imgs_container); $("").appendTo(tmp_div); - $("").appendTo(imgs_container); - $("").appendTo(imgs_container); + $("").appendTo(imgs_container); + $("").appendTo(imgs_container); imgs_container.attr("ondragenter", "return false;") .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") diff --git a/resources/library/interactivities/Choisir.wgt/css/basic.css b/resources/library/interactivities/Choisir.wgt/css/basic.css index a391cfa7..0472e8ce 100644 --- a/resources/library/interactivities/Choisir.wgt/css/basic.css +++ b/resources/library/interactivities/Choisir.wgt/css/basic.css @@ -149,12 +149,10 @@ body{ font-family: Verdana,Arial,Helvetica,sans-serif; font-size: small; border: 3px solid #ccc; - -webkit-border-radius: 5px; border-radius: 5px; - -moz-box-shadow: #dadada -1px 0 4px; - -webkit-box-shadow: #dadada -1px 0 4px; box-shadow: #dadada -1px 0 4px; color: white; + word-break: break-all; } .qstContentDisplay{ @@ -169,6 +167,7 @@ body{ border: 1px solid #DFDFDE; border-top-left-radius: 10px; border-bottom-left-radius: 10px; + word-break: break-all; } .ansDiv{ @@ -222,12 +221,10 @@ body{ overflow-x: hidden; float: left; border: 3px solid #ccc; - -webkit-border-radius: 5px; border-radius: 5px; - -moz-box-shadow: #dadada -1px 0 4px; - -webkit-box-shadow: #dadada -1px 0 4px; box-shadow: #dadada -1px 0 4px; color: white; + word-break: break-all; } .ansContentDisplay{ @@ -244,6 +241,7 @@ body{ border-top-left-radius: 10px; border-bottom-left-radius: 10px; color: white; + word-break: break-all; } .ansDelete{ diff --git a/resources/library/interactivities/Ordre images.wgt/css/basic.css b/resources/library/interactivities/Ordre images.wgt/css/basic.css index cc891579..48ab3bb5 100644 --- a/resources/library/interactivities/Ordre images.wgt/css/basic.css +++ b/resources/library/interactivities/Ordre images.wgt/css/basic.css @@ -60,7 +60,7 @@ body{ .sub_cont{ width: 100%; padding: 0; - margin: 20px 0 0 0; + margin: 20px 0 5px 0; min-height: 60px; } @@ -93,6 +93,7 @@ body{ border-top-left-radius: 10px; border-bottom-left-radius: 10px; padding-left: 10px; + word-break: break-all; } .close_cont{ diff --git a/resources/library/interactivities/Ordre lettres.wgt/css/basic.css b/resources/library/interactivities/Ordre lettres.wgt/css/basic.css index 6830edb2..26583dd9 100644 --- a/resources/library/interactivities/Ordre lettres.wgt/css/basic.css +++ b/resources/library/interactivities/Ordre lettres.wgt/css/basic.css @@ -172,6 +172,7 @@ body{ overflow-x: hidden; float: right; margin-left: 20px; + word-break: break-all; } .play, .stop{ @@ -205,16 +206,15 @@ body{ .audio_answer{ min-height: 50px; + min-width: 200px; + max-width: 700px; margin: 5px 10px; padding: 0 10px; background-color: white; - display: inline-block; - position: relative; border: 1px solid #ccc; - -moz-box-shadow: #ccc -1px 0 4px; - -webkit-box-shadow: #ccc -1px 0 4px; box-shadow: #ccc -1px 0 4px; font-size: 230%; + word-wrap: break-word; } /*new design*/ diff --git a/resources/library/interactivities/Ordre lettres.wgt/js/script.js b/resources/library/interactivities/Ordre lettres.wgt/js/script.js index 66e9855f..b018fe93 100644 --- a/resources/library/interactivities/Ordre lettres.wgt/js/script.js +++ b/resources/library/interactivities/Ordre lettres.wgt/js/script.js @@ -337,7 +337,7 @@ function showExample(){ var audio_block = $("
").appendTo(text); $("
").appendTo(audio_block); $("
").appendTo(audio_block); - var source = $("").attr("src", "objects/beep.wav"); + var source = $("").attr("src", "objects/beep.mp3"); var audio = $("