Commit d82486b4 authored by Yimgo's avatar Yimgo

Merge remote-tracking branch 'upstream/master' into aristo_tool

parents d64c87a9 98fe675b
No preview for this file type
...@@ -11,7 +11,7 @@ CONFIG += debug_and_release \ ...@@ -11,7 +11,7 @@ CONFIG += debug_and_release \
VERSION_MAJ = 2 VERSION_MAJ = 2
VERSION_MIN = 00 VERSION_MIN = 00
VERSION_TYPE = b # a = alpha, b = beta, r = release, other => error VERSION_TYPE = b # a = alpha, b = beta, r = release, other => error
VERSION_PATCH = 04 VERSION_PATCH = 05
VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}" VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}"
VERSION = $$replace(VERSION, "\\.r", "") VERSION = $$replace(VERSION, "\\.r", "")
...@@ -341,10 +341,17 @@ macx { ...@@ -341,10 +341,17 @@ macx {
QMAKE_BUNDLE_DATA += TRANSLATION_tr QMAKE_BUNDLE_DATA += TRANSLATION_tr
} }
exists(resources/i18n/sankore_cs.qm) { exists(resources/i18n/sankore_cs.qm) {
TRANSLATION_cs.files = resources/i18n/sankore_cs.qm \ translation_cs.files = resources/i18n/sankore_cs.qm \
resources/i18n/Localizable.strings resources/i18n/localizable.strings
TRANSLATION_cs.path = "$$RESOURCES_DIR/cs.lproj" translation_cs.path = "$$resources_dir/cs.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_cs qmake_bundle_data += translation_cs
}
exists(resources/i18n/sankore_mg.qm) {
translation_mg.files = resources/i18n/sankore_mg.qm \
resources/i18n/localizable.strings
translation_mg.path = "$$resources_dir/mg.lproj"
qmake_bundle_data += translation_mg
} }
QMAKE_BUNDLE_DATA += UB_ETC \ QMAKE_BUNDLE_DATA += UB_ETC \
...@@ -413,7 +420,8 @@ TRANSLATIONS = resources/i18n/sankore_en.ts \ ...@@ -413,7 +420,8 @@ TRANSLATIONS = resources/i18n/sankore_en.ts \
resources/i18n/sankore_ca.ts \ resources/i18n/sankore_ca.ts \
resources/i18n/sankore_el.ts \ resources/i18n/sankore_el.ts \
resources/i18n/sankore_tr.ts \ resources/i18n/sankore_tr.ts \
resources/i18n/sankore_cs.ts resources/i18n/sankore_cs.ts \
resources/i18n/sankore_mg.ts
INSTALLS = UB_ETC \ INSTALLS = UB_ETC \
UB_I18N \ UB_I18N \
......
...@@ -919,7 +919,7 @@ bool UBCFFAdaptor::UBToCFFConverter::ibwAddLine(int x1, int y1, int x2, int y2, ...@@ -919,7 +919,7 @@ bool UBCFFAdaptor::UBToCFFConverter::ibwAddLine(int x1, int y1, int x2, int y2,
QDomElement svgBackgroundCrossPart = doc.createElementNS(svgIWBNS,svgIWBNSPrefix + ":line"); QDomElement svgBackgroundCrossPart = doc.createElementNS(svgIWBNS,svgIWBNSPrefix + ":line");
QDomElement iwbBackgroundCrossPart = doc.createElementNS(iwbNS,iwbNsPrefix + ":" + tElement); QDomElement iwbBackgroundCrossPart = doc.createElementNS(iwbNS,iwbNsPrefix + ":" + tElement);
QString sUUID = QUuid::createUuid().toString().remove("{").remove("}"); QString sUUID = QUuid::createUuid().toString();
svgBackgroundCrossPart.setTagName(tIWBLine); svgBackgroundCrossPart.setTagName(tIWBLine);
...@@ -1061,7 +1061,7 @@ bool UBCFFAdaptor::UBToCFFConverter::setContentFromUBZ(const QDomElement &ubzEle ...@@ -1061,7 +1061,7 @@ bool UBCFFAdaptor::UBToCFFConverter::setContentFromUBZ(const QDomElement &ubzEle
QString sSrcFileName = sourcePath + "/" + srcPath ; QString sSrcFileName = sourcePath + "/" + srcPath ;
QString fileExtention = getExtentionFromFileName(sSrcFileName); QString fileExtention = getExtentionFromFileName(sSrcFileName);
QString sDstContentFolder = getDstContentFolderName(ubzElement.tagName()); QString sDstContentFolder = getDstContentFolderName(ubzElement.tagName());
QString sDstFileName(QString(QUuid::createUuid().toString()+"."+convertExtention(fileExtention)).remove("{").remove("}")); QString sDstFileName(QString(QUuid::createUuid().toString()+"."+convertExtention(fileExtention)));
if (itIsSupportedFormat(fileExtention)) // format is supported and we can copy src. files without changing. if (itIsSupportedFormat(fileExtention)) // format is supported and we can copy src. files without changing.
...@@ -1268,7 +1268,7 @@ bool UBCFFAdaptor::UBToCFFConverter::setCFFAttribute(const QString &attributeNam ...@@ -1268,7 +1268,7 @@ bool UBCFFAdaptor::UBToCFFConverter::setCFFAttribute(const QString &attributeNam
QString id = tl.at(tl.count()-1); QString id = tl.at(tl.count()-1);
// if element already have an ID, we use it. Else we create new id for element. // if element already have an ID, we use it. Else we create new id for element.
if (QString() == id) if (QString() == id)
id = QUuid::createUuid().toString().remove("{").remove("}"); id = QUuid::createUuid().toString();
svgElement.setAttribute(aID, id); svgElement.setAttribute(aID, id);
iwbElement.setAttribute(aRef, id); iwbElement.setAttribute(aRef, id);
...@@ -1382,11 +1382,9 @@ bool UBCFFAdaptor::UBToCFFConverter::createBackground(const QDomElement &element ...@@ -1382,11 +1382,9 @@ bool UBCFFAdaptor::UBToCFFConverter::createBackground(const QDomElement &element
if (0 <= mViewbox.topLeft().y()) if (0 <= mViewbox.topLeft().y())
bckRect.topLeft().setY(0); bckRect.topLeft().setY(0);
// QString backgroundImagePath = createBackgroundImage(element, QSize(bckRect.width(), bckRect.height()));
// if (QString() != backgroundImagePath)
if (QRect() != bckRect) if (QRect() != bckRect)
{ {
QString sElementID = QUuid::createUuid().toString().remove("{").remove("}"); QString sElementID = QUuid::createUuid().toString();
bool darkBackground = (avTrue == element.attribute(aDarkBackground)); bool darkBackground = (avTrue == element.attribute(aDarkBackground));
svgBackgroundElementPart.setAttribute(aFill, darkBackground ? "black" : "white"); svgBackgroundElementPart.setAttribute(aFill, darkBackground ? "black" : "white");
...@@ -1635,7 +1633,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZAudio(const QDomElement &element, Q ...@@ -1635,7 +1633,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZAudio(const QDomElement &element, Q
//we must create image-containers for audio files //we must create image-containers for audio files
int audioImageDimention = qMin(svgElementPart.attribute(aWidth).toInt(), svgElementPart.attribute(aHeight).toInt()); int audioImageDimention = qMin(svgElementPart.attribute(aWidth).toInt(), svgElementPart.attribute(aHeight).toInt());
QString srcAudioImageFile(sAudioElementImage); QString srcAudioImageFile(sAudioElementImage);
QString elementId = QString(QUuid::createUuid().toString()).remove("{").remove("}"); QString elementId = QString(QUuid::createUuid().toString());
QString sDstAudioImageFileName = elementId+"."+fePng; QString sDstAudioImageFileName = elementId+"."+fePng;
QString dstAudioImageFilePath = destinationPath+"/"+cfImages+"/"+sDstAudioImageFileName; QString dstAudioImageFilePath = destinationPath+"/"+cfImages+"/"+sDstAudioImageFileName;
QString dstAudioImageRelativePath = cfImages+"/"+sDstAudioImageFileName; QString dstAudioImageRelativePath = cfImages+"/"+sDstAudioImageFileName;
...@@ -1793,7 +1791,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZPolygon(const QDomElement &element, ...@@ -1793,7 +1791,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZPolygon(const QDomElement &element,
if (0 < iwbElementPart.attributes().count()) if (0 < iwbElementPart.attributes().count())
{ {
QString id = QUuid::createUuid().toString().remove("{").remove("}"); QString id = QUuid::createUuid().toString();
svgElementPart.setAttribute(aID, id); svgElementPart.setAttribute(aID, id);
iwbElementPart.setAttribute(aRef, id); iwbElementPart.setAttribute(aRef, id);
...@@ -1826,7 +1824,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZPolyline(const QDomElement &element ...@@ -1826,7 +1824,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZPolyline(const QDomElement &element
if (0 < iwbElementPart.attributes().count()) if (0 < iwbElementPart.attributes().count())
{ {
QString id = QUuid::createUuid().toString().remove("{").remove("}"); QString id = QUuid::createUuid().toString();
svgElementPart.setAttribute(aID, id); svgElementPart.setAttribute(aID, id);
iwbElementPart.setAttribute(aRef, id); iwbElementPart.setAttribute(aRef, id);
...@@ -1858,7 +1856,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZLine(const QDomElement &element, QM ...@@ -1858,7 +1856,7 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZLine(const QDomElement &element, QM
if (0 < iwbElementPart.attributes().count()) if (0 < iwbElementPart.attributes().count())
{ {
QString id = QUuid::createUuid().toString().remove("{").remove("}"); QString id = QUuid::createUuid().toString();
svgElementPart.setAttribute(aID, id); svgElementPart.setAttribute(aID, id);
iwbElementPart.setAttribute(aRef, id); iwbElementPart.setAttribute(aRef, id);
......
echo off
REM -------------------------------------------------------------------- REM --------------------------------------------------------------------
REM This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -39,10 +40,9 @@ REM pick up dll from this directory ...@@ -39,10 +40,9 @@ REM pick up dll from this directory
IF NOT EXIST "%QT_DIR%\lib\QtCore4.dll" GOTO EXIT_WITH_ERROR IF NOT EXIST "%QT_DIR%\lib\QtCore4.dll" GOTO EXIT_WITH_ERROR
rmdir /S /Q %BUILD_DIR% rmdir /S /Q %BUILD_DIR%
rmdir /S /Q install
set EDITION=MNEMIS_EDITION "%QT_BIN%\qmake.exe" Sankore_3.1.pro
"%QT_BIN%\qmake.exe" Sankore_3.1.pro "DEFINES+=%EDITION%"
%LRELEASE% Sankore_3.1.pro %LRELEASE% Sankore_3.1.pro
%LRELEASE% %BASE_QT_TRANSLATIONS_DIRECTORY%\translations.pro %LRELEASE% %BASE_QT_TRANSLATIONS_DIRECTORY%\translations.pro
...@@ -61,14 +61,13 @@ REM echo %VERSION% ...@@ -61,14 +61,13 @@ REM echo %VERSION%
REM echo %LAST_TAG_VERSION% REM echo %LAST_TAG_VERSION%
nmake release-install nmake release-install
IF NOT EXIST build\win32\release\product\Open-Sankore.exe GOTO EXIT_WITH_ERROR
set CUSTOMIZATIONS=build\win32\release\product\customizations set CUSTOMIZATIONS=build\win32\release\product\customizations
mkdir %CUSTOMIZATIONS% mkdir %CUSTOMIZATIONS%
xcopy /s resources\customizations %CUSTOMIZATIONS% xcopy /s resources\customizations %CUSTOMIZATIONS%
set I18n=build\win32\release\product\i18n set I18n=build\win32\release\product\i18n
mkdir %I18n%
xcopy /s resources\i18n\*.qm %I18n%
xcopy /s %BASE_QT_TRANSLATIONS_DIRECTORY%\qt_*.qm %I18n%\ xcopy /s %BASE_QT_TRANSLATIONS_DIRECTORY%\qt_*.qm %I18n%\
del build\win32\release\product\i18n\qt_help* del build\win32\release\product\i18n\qt_help*
......
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" width="33px" height="33px" viewBox="0 0 33 33" xml:space="preserve">
<g id="Arrière-plan">
</g>
<g id="Guides">
</g>
<g id="Premier_plan">
<path fill="#333333" stroke="#000000" d="M2.405,31.674c-0.002,0.013-0.659,0.669-0.659,0.669c-0.008,0.01-0.016,0.019-0.025,0.028
c-0.163,0.164-0.385,0.139-0.517,0.098c-0.147-0.046-0.292-0.141-0.412-0.261s-0.215-0.265-0.261-0.412
c-0.041-0.132-0.065-0.354,0.098-0.517l0.716-0.716c1.095-2.139,3.16-6.116,3.642-6.597L25.898,3.053
c0.215-0.215,0.49-0.335,0.786-0.378l1.864-1.864c0.61-0.61,1.92-0.298,2.929,0.711s1.321,2.319,0.711,2.929l-1.864,1.864
c-0.042,0.296-0.163,0.57-0.378,0.786L9.114,27.926c-0.025,0.031-0.052,0.06-0.081,0.089C8.55,28.499,4.532,30.583,2.405,31.674z"
/>
<path fill="#FF8B9B" d="M29.935,6.316c-0.061-0.713-0.487-1.513-1.104-2.129s-1.416-1.042-2.129-1.104l2.06-2.06
c0.42-0.42,1.527-0.283,2.521,0.711c0.995,0.994,1.131,2.101,0.712,2.521L29.935,6.316z"/>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="19.4741" y1="17.4038" x2="15.7053" y2="13.635">
<stop offset="0" style="stop-color:#FF5833"/>
<stop offset="0.3861" style="stop-color:#FF9733"/>
<stop offset="0.6782" style="stop-color:#FFFFFF"/>
<stop offset="0.8069" style="stop-color:#FFB100"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M28.706,7.945L8.835,27.815l-3.637-3.637L25.125,4.253l0.016-0.017
c0.612-0.612,1.924-0.293,2.929,0.711c1.005,1.005,1.324,2.317,0.711,2.929C28.757,7.901,28.732,7.924,28.706,7.945z"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="3.4688" y1="26.6265" x2="5.7383" y2="28.6272">
<stop offset="0" style="stop-color:#E6C59E"/>
<stop offset="0.4802" style="stop-color:#FFFFFF"/>
<stop offset="0.7426" style="stop-color:#E6C59E"/>
<stop offset="1" style="stop-color:#B1835D"/>
</linearGradient>
<path fill-rule="evenodd" fill="url(#SVGID_2_)" d="M8.839,27.82c-0.442,0.442-4.396,2.5-6.562,3.61l-0.688-0.688
c1.11-2.166,3.167-6.12,3.609-6.562c0.612-0.612,1.924-0.294,2.929,0.711S9.451,27.208,8.839,27.82z"/>
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="31.5435" y1="5.353" x2="27.9833" y2="1.7929">
<stop offset="0" style="stop-color:#FF9AA9"/>
<stop offset="1" style="stop-color:#FFFFFF"/>
</linearGradient>
<path fill="url(#SVGID_3_)" d="M28.464,4.554c-0.5-0.499-1.123-0.892-1.747-1.078l2.248-2.248c0.229-0.229,1.134-0.268,2.113,0.711
c0.979,0.979,0.941,1.884,0.711,2.113l-2.248,2.248C29.356,5.677,28.964,5.054,28.464,4.554z"/>
<path fill="#808080" d="M29.752,6.906l-1.902,1.902c0.605-0.615,0.285-1.921-0.717-2.923c-1.005-1.005-2.316-1.324-2.929-0.711
l1.907-1.908c0.612-0.612,1.924-0.293,2.929,0.712S30.365,6.294,29.752,6.906z"/>
<g>
<ellipse transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 25.2793 51.7028)" cx="1.932" cy="31.087" rx="0.253" ry="0.485"/>
<path d="M1.932,31.087"/>
</g>
<g>
<ellipse transform="matrix(-0.7066 0.7076 -0.7076 -0.7066 24.5461 53.4918)" cx="1.184" cy="31.834" rx="0.253" ry="0.484"/>
<path d="M1.184,31.834"/>
</g>
<rect x="1.031" y="30.975" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 24.9043 52.6023)" fill-rule="evenodd" width="1.054" height="0.967"/>
</g>
</svg>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://www.njin.fr/sankore/apps/balance"
version="1.0"
width="540"
height="450"
ub:resizable="true">
<name>La Balance</name>
<author href="http://www.njin.fr" email="contact@njin.fr">njin</author>
<description></description>
<content src="index.html"/>
</widget>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
File mode changed from 100644 to 100755
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment