Skip to content

Commit

Permalink
data.xwd is now constructed from Tom's php script based on the xwd fi…
Browse files Browse the repository at this point in the history
…les. The model files have been updated to match the requirements of the new data.xwd file. Thumbnails have been updated to add those that were missing. (Just in case I have kept a back up of data.xwd as data_orig.xwd)

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@292 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Johnathan Kemp committed Apr 4, 2012
1 parent 09876cf commit 0ad1c10
Show file tree
Hide file tree
Showing 67 changed files with 1,702 additions and 3,284 deletions.
2,868 changes: 1,637 additions & 1,231 deletions modules/xerte/parent_templates/Nottingham/data.xwd

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<PG title="enter page title" name="QRCodes"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (extXML == undefined){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject(); rootIcon.setTitleText(templateData.learningObject[0].name);} if (pageIcon.templateData.QRcode[0].narration != undefined){ narration = pageIcon.templateData.QRcode[0].narration; rootIcon.broadcast('showAudio');}]]></SCR> <DIS h="490" w="770" tabIndex="-1" id="panel" name="panel" x="15" y="15" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS> <INT name="loadPanel" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="panel" erase="1" exit="1"> <SCR name="exit"><![CDATA[align = pageIcon.templateData.QRcode[0].align;if (align == 'Left'){panel._width = 440;panel._height = 474;panel._x = stageWidth - panel._width - 20;} if (align == 'Right'){panel._width = 440;panel._height = 474;panel._x = 20;}]]></SCR> </RES> </INT> <DIS id="myurl" name="myurl" x="0" y="0" w="400" h="10" type="text"><![CDATA[]]></DIS> <SCR name="loadthetext"><![CDATA[pastedurl=pageIcon.templateData.QRcode[0].url;if (templatePath.indexOf('modules/xerte') == -1){ myurl.readFile("http://is.gd/api.php?longurl="+pastedurl);} else { myurl.readFile(_level0.site_url + 'rss_proxy.php?rss=' + "http://is.gd/api.php?longurl="+pastedurl);}]]></SCR> <INT name="loadurl" perpetual="0"> <RES name="onLoad" type="event" eventName="onReadFile" icon="myurl" erase="1" exit="1"> <SCR name="exit"><![CDATA[//ok to move on]]></SCR> </RES> </INT> <SCR name="getqrcode"><![CDATA[if (templatePath.indexOf('modules/xerte') == -1){ mytext='<a href="'+myurl.fileData+'">'+myurl.fileData+'</a>'; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink;} else { mytext='<a href="'+myurl.fileData+'">'+myurl.fileData+'</a>'; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink;}]]></SCR> <DIS toolTip="{pageIcon.templateData.QRcode[0].tip}" scrolling="auto" id="graphic" name="graphic" x="200" y="70" type="ext" url="qrcodelink"><![CDATA[{pageIcon.templateData.QRcode[0].tip}]]></DIS> <INT name="loadImage" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="1"> <SCR name="calculate"><![CDATA[align = pageIcon.templateData.QRcode[0].align; p = graphic._width / graphic._height; maxWidth = 410;//was 465 maxHeight = 410; graphic.constrain(maxWidth, maxHeight); if (align == 'Hide text' | align==undefined){ urlX=210; urlY=20; textX = 20; textY = 20;textWidth = 0;}if (align == 'Left'){panel._width = graphic._width + 20;panel._height = 474; panel._x = stageWidth - panel._width - 20; graphic._x = 360; urlX=370; urlY=20; textX = 20; textY = 20; textWidth = stageWidth - 80 - graphic._width;} if (align == 'Right'){panel._width = graphic._width + 20;panel._height = 474; panel._x = 20; graphic._x = 30; urlX=30; urlY=20; textX = graphic._width + 60; textY = 20; textWidth = stageWidth - 80 - graphic._width;}]]></SCR> </RES> </INT> <SCR name="sound"><![CDATA[if (pageIcon.templateData.QRcode[0].sound != undefined){ //check for a literal path sndURL = pageIcon.templateData.QRcode[0].sound; if (sndURL.indexOf('http') == 0){ sndURL = "'" + sndURL + "'"; } icon.nextSibling.attributes.controls = panel._x +',' + (panel._y+panel._height - 20) + ',' + panel._width;} else { if (icon.nextSibling.nodeName == 'SND'){ icon.nextSibling.removeNode(); }}]]></SCR> <SND name="sound" type="ext" url="{sndURL}" play="0" loop="0" wait="0" /> <DIS scrolling="auto" id="textBlock1" h="450" name="text" x="textX" y="textY" w="textWidth" type="text"><![CDATA[{pageIcon.templateData.QRcode[0]}]]></DIS> <DIS w="600" textSize="36pt" scrolling="auto" id="textBlock" h="410" name="showurl" x="urlX" y="urlY" type="text"><![CDATA[{mytext}]]></DIS> </PG>
<PG title="QR Code" name="QRCodes"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (rootIcon.projMode == "dev"){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject();} rootIcon.setTitleText(templateData.learningObject[0].name); // handle multiple page data definitions in a project if (rootIcon.projectPageIndex == undefined){ rootIcon.projectPageIndex = 0;}// check if this page has a definition for the current project index and default to 0 if notif (pageIcon.templateData.QRcode[rootIcon.projectPageIndex].name == undefined){ projPI = 0;} else { projPI = rootIcon.projectPageIndex; } if (pageIcon.templateData.QRcode[projPI].narration != undefined){ narration = pageIcon.templateData.QRcode[projPI].narration; rootIcon.broadcast('showAudio');}]]></SCR> <DIS h="490" w="770" tabIndex="-1" id="panel" name="panel" x="15" y="15" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS> <INT name="loadPanel" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="panel" erase="1" exit="1"> <SCR name="exit"><![CDATA[align = pageIcon.templateData.QRcode[projPI].align;if (align == 'Left'){panel._width = 440;panel._height = 474;panel._x = stageWidth - panel._width - 20;} if (align == 'Right'){panel._width = 440;panel._height = 474;panel._x = 20;}]]></SCR> </RES> </INT> <DIS id="myurl" name="myurl" x="0" y="0" w="400" h="10" type="text"><![CDATA[]]></DIS> <SCR name="loadthetext"><![CDATA[pastedurl=pageIcon.templateData.QRcode[projPI].url;if (templatePath.indexOf('modules/xerte') == -1){ myurl.readFile("http://is.gd/api.php?longurl="+pastedurl);} else { myurl.readFile(_level0.site_url + 'rss_proxy.php?rss=' + "http://is.gd/api.php?longurl="+pastedurl);}]]></SCR> <INT name="loadurl" perpetual="0"> <RES name="onLoad" type="event" eventName="onReadFile" icon="myurl" erase="1" exit="1"> <SCR name="exit"><![CDATA[//ok to move on]]></SCR> </RES> </INT> <SCR name="getqrcode"><![CDATA[if (templatePath.indexOf('modules/xerte') == -1){ mytext='<a href="'+myurl.fileData+'">'+myurl.fileData+'</a>'; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink;} else { mytext='<a href="'+myurl.fileData+'">'+myurl.fileData+'</a>'; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink;}]]></SCR> <DIS toolTip="{pageIcon.templateData.QRcode[projPI].tip}" scrolling="auto" id="graphic" name="graphic" x="200" y="70" type="ext" url="qrcodelink"><![CDATA[{pageIcon.templateData.QRcode[projPI].tip}]]></DIS> <INT name="loadImage" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="1"> <SCR name="calculate"><![CDATA[align = pageIcon.templateData.QRcode[projPI].align; p = graphic._width / graphic._height; maxWidth = 410;//was 465 maxHeight = 410; graphic.constrain(maxWidth, maxHeight); if (align == 'Hide text' | align==undefined){ urlX=210; urlY=20; textX = 20; textY = 20;textWidth = 0;}if (align == 'Left'){panel._width = graphic._width + 20;panel._height = 474; panel._x = stageWidth - panel._width - 20; graphic._x = 360; urlX=370; urlY=20; textX = 20; textY = 20; textWidth = stageWidth - 80 - graphic._width;} if (align == 'Right'){panel._width = graphic._width + 20;panel._height = 474; panel._x = 20; graphic._x = 30; urlX=30; urlY=20; textX = graphic._width + 60; textY = 20; textWidth = stageWidth - 80 - graphic._width;}]]></SCR> </RES> </INT> <SCR name="sound"><![CDATA[if (pageIcon.templateData.QRcode[projPI].sound != undefined){ //check for a literal path sndURL = pageIcon.templateData.QRcode[projPI].sound; if (sndURL.indexOf('http') == 0){ sndURL = "'" + sndURL + "'"; } icon.nextSibling.attributes.controls = panel._x +',' + (panel._y+panel._height - 20) + ',' + panel._width;} else { if (icon.nextSibling.nodeName == 'SND'){ icon.nextSibling.removeNode(); }}]]></SCR> <SND name="sound" type="ext" url="{sndURL}" play="0" loop="0" wait="0" /> <DIS scrolling="auto" id="textBlock1" h="450" name="text" x="textX" y="textY" w="textWidth" type="text"><![CDATA[{pageIcon.templateData.QRcode[projPI]}]]></DIS> <DIS w="600" textSize="36pt" scrolling="auto" id="textBlock" h="410" name="showurl" x="urlX" y="urlY" type="text"><![CDATA[{mytext}]]></DIS> </PG>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<PG title="enter page title" name="accNav"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (extXML == undefined){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject(); rootIcon.setTitleText(templateData.learningObject[0].name);}itemCount = pageIcon.templateData.accNav[0].nestedPage.length);panelWidth = pageIcon.templateData.accNav[0].panelWidth;if (panelWidth == "Small"){ panelW = 300; textW = 440;} else if (panelWidth == "Medium"){ panelW = 450; textW = 290;} else if (panelWidth == "Large"){ panelW = 600; textW = 150;} else { panelW = 760; textW = 0;}if (pageIcon.templateData.accNav[0].narration != undefined){ narration = pageIcon.templateData.accNav[0].narration; rootIcon.broadcast('showAudio');}]]></SCR> <SCR isFunc="1" name="fTogglePanes"><![CDATA[tempIndex = icon.parentNode.index();tempY = panel._height - itemCount * 21;for (i = 0; i < acc.customButtons.length; i++){ if (i <= tempIndex){ acc.customButtons[i]._y = acc.customButtons[0]._y + 21*i } if (i > tempIndex){ acc.customButtons[i]._y = acc.customButtons[0]._y + tempY + 21*i-1; }}]]></SCR> <DIS h="475" w="panelW" tabIndex="-1" id="panel" name="panel" x="780 - panelW" y="20" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS> <DIS scrolling="auto" id="textBlock" h="480" name="text" x="20" y="20" w="textW" type="text"><![CDATA[{pageIcon.templateData.accNav[0].text}]]></DIS> <SCR name="makeTabs"><![CDATA[if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.duplicate(itemCount - 1); icon.attributes.built = 'true';}icon.nextSibling.firstChild.attributes.rs = 'btn1';icon.nextSibling.lastChild.previousSibling.attributes.rs = 'initButton';]]></SCR> <INT id="acc" name="accInteraction" perpetual="0"> <RES w="panelW" swf="templatePath + 'common/accordion.swf'" name="protoPane" type="button" x="panel._x" y="panel._y + icon.index() * 22" label="{pageIcon.templateData.accNav[0].nestedPage[icon.index()].name}" erase="1" exit="0"> <SCR name="togglePanes"><![CDATA[fTogglePanes();btn = icon.parentNode.getMovieClip();if (pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index() - 1].url == undefined){ icon.nextSibling.nextSibling.attributes.tabIndex = -1;}if (pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].controls == 'Control Bar'){ icon.nextSibling.nextSibling.attributes.controls = '1';}if (pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].tip != undefined){ icon.nextSibling.nextSibling.attributes.toolTip = pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].tip; icon.nextSibling.nextSibling.firstChild.nodeValue = '{' + pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].tip + '}';}]]></SCR> <DIS textColour="#333333" id="desc" name="description" x="panel._x + 20" y="btn._y + 40" w="panelW - 40" h="10" type="text"><![CDATA[{pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].text}]]></DIS> <DIS id="graphic" name="graphic" x="420" y="desc._y + desc._height + 20" type="ext" url="{pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].url}"><![CDATA[]]></DIS> <INT name="loadGraphic&Resize" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="0"> <SCR name="resize&Position"><![CDATA[space = 475 - desc._height - 60 - itemCount*21;graphic.constrain(panelW - 40, space);if (pageIcon.templateData.accNav[0].nestedPage[acc.getPageIndex()].align == 'Bottom'){ graphic._y = desc._y; desc._y = graphic._y + graphic._height + 20;}if (pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].initObject != undefined){ obj = expression(pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.index()].initObject, engine); graphic.clip.init(obj);}graphic._x = panel._x + panel._width / 2 - graphic._width / 2;]]></SCR> </RES> </INT> </RES> <RES name="initialise" type="event" eventName="onLoad" icon="initButton" erase="1" exit="0"> <INT name="wait" perpetual="0"> <RES name="initButton" type="timeLimit" secs="0.02" reset="0" erase="1" exit="0"> <SCR name="activatePaneOne"><![CDATA[btn1.swfFile.onRelease();]]></SCR> </RES> </INT> </RES> </INT> </PG>
<PG title="Accordion Navigator" name="accNav"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (rootIcon.projMode == "dev"){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject();} rootIcon.setTitleText(templateData.learningObject[0].name);// handle multiple page data definitions in a project if (rootIcon.projectPageIndex == undefined){ rootIcon.projectPageIndex = 0;}// check if this page has a definition for the current project index and default to 0 if notif (pageIcon.templateData.accNav[rootIcon.projectPageIndex].name == undefined){ projPI = 0;} else { projPI = rootIcon.projectPageIndex; } itemCount = pageIcon.templateData.accNav[projPI].nestedPage.length);panelWidth = pageIcon.templateData.accNav[projPI].panelWidth;if (panelWidth == "Small"){ panelW = 300; textW = 440;} else if (panelWidth == "Medium"){ panelW = 450; textW = 290;} else if (panelWidth == "Large"){ panelW = 600; textW = 150;} else { panelW = 760; textW = 0;}if (pageIcon.templateData.accNav[projPI].narration != undefined){ narration = pageIcon.templateData.accNav[projPI].narration; rootIcon.broadcast('showAudio');}]]></SCR> <SCR isFunc="1" name="fTogglePanes"><![CDATA[tempIndex = icon.parentNode.index();tempY = panel._height - itemCount * 21;for (i = 0; i < acc.customButtons.length; i++){ if (i <= tempIndex){ acc.customButtons[i]._y = acc.customButtons[0]._y + 21*i } if (i > tempIndex){ acc.customButtons[i]._y = acc.customButtons[0]._y + tempY + 21*i-1; }}]]></SCR> <DIS initObject="{_alpha: subPageAccess == true ? 20 : 100}" h="475" w="panelW" tabIndex="-1" id="panel" name="panel" x="780 - panelW" y="20" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS> <DIS scrolling="auto" id="textBlock" h="480" name="text" x="20" y="20" w="textW" type="text"><![CDATA[{pageIcon.templateData.accNav[projPI].text}]]></DIS> <SCR name="makeTabs"><![CDATA[if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.duplicate(itemCount - 1); icon.attributes.built = 'true';}icon.nextSibling.firstChild.attributes.rs = 'btn1';icon.nextSibling.lastChild.previousSibling.attributes.rs = 'initButton';]]></SCR> <INT id="acc" name="accInteraction" perpetual="0"> <RES w="panelW" swf="templatePath + 'common/accordion.swf'" name="protoPane" type="button" x="panel._x" y="panel._y + icon.index() * 22" label="{pageIcon.templateData.accNav[projPI].nestedPage[icon.index()].name}" erase="1" exit="0"> <SCR name="togglePanes"><![CDATA[fTogglePanes();btn = icon.parentNode.getMovieClip();if (subPageAccess == true){ icon.nextSibling.attributes.textColour = STYLES.defaultColour;} else { icon.nextSibling.attributes.textColour = '#333333';}if (pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index() - 1].url == undefined){ icon.nextSibling.nextSibling.attributes.tabIndex = -1;}if (pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].controls == 'Control Bar'){ icon.nextSibling.nextSibling.attributes.controls = '1';}if (pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].tip != undefined){ icon.nextSibling.nextSibling.attributes.toolTip = pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].tip; icon.nextSibling.nextSibling.firstChild.nodeValue = '{' + pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].tip + '}';}]]></SCR> <DIS textColour="#333333" id="desc" name="description" x="panel._x + 20" y="btn._y + 40" w="panelW - 40" h="10" type="text"><![CDATA[{pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].text}]]></DIS> <DIS id="graphic" name="graphic" x="420" y="desc._y + desc._height + 20" type="ext" url="{pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].url}"><![CDATA[]]></DIS> <INT name="loadGraphic&Resize" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="0"> <SCR name="resize&Position"><![CDATA[space = 475 - desc._height - 60 - itemCount*21;graphic.constrain(panelW - 40, space);if (pageIcon.templateData.accNav[projPI].nestedPage[acc.getPageIndex()].align == 'Bottom'){ graphic._y = desc._y; desc._y = graphic._y + graphic._height + 20;}if (pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].initObject != undefined){ obj = expression(pageIcon.templateData.accNav[projPI].nestedPage[icon.parentNode.index()].initObject, engine); graphic.clip.init(obj);}graphic._x = panel._x + panel._width / 2 - graphic._width / 2;]]></SCR> </RES> </INT> </RES> <RES name="initialise" type="event" eventName="onLoad" icon="initButton" erase="1" exit="0"> <INT name="wait" perpetual="0"> <RES name="initButton" type="timeLimit" secs="0.1" reset="0" erase="1" exit="0"> <SCR name="activatePaneOne"><![CDATA[btn1.swfFile.onRelease();]]></SCR> </RES> </INT> </RES> </INT> </PG>
Expand Down
Loading

0 comments on commit 0ad1c10

Please sign in to comment.