Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…2cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed May 26, 2010
1 parent fd64274 commit 5564894
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
Binary file modified modules/xerte/engine/wizard.swf
Binary file not shown.
23 changes: 20 additions & 3 deletions modules/xerte/parent_templates/Nottingham/data.xwd
Expand Up @@ -25,7 +25,7 @@
<map><![CDATA[<map name="Enter Page Title" text="Enter text for the page here" align="left" mapurl="Paste the link here" maptype="roadmap" tooltip="Enter a tooltip" link="true"/>]]></map>

<quiz><![CDATA[<quiz name="Enter Quiz Title" order="random" numQuestions="All" align="left" panelWidth="Medium" instructions="Provide instructions here" judge="true" feedback="Provide feedback here"/>]]></quiz>
<dragDropLabel><![CDATA[<dragDropLabel name="Enter Page Title" text="Enter text for the page here" url="Select an Image" align="Left" tip="Enter a tooltip for the image"/>]]></dragDropLabel>
<dragDropLabel><![CDATA[<dragDropLabel name="Enter Page Title" text="Enter text for the page here" url="Select an Image" align="Left" highlightColour="0xFFFF00" tip="Enter a tooltip for the image"/>]]></dragDropLabel>

<dialog><![CDATA[<dialog name="Enter Page Title" text="Enter text for the page here" attempts="2"/>]]></dialog>

Expand All @@ -36,6 +36,9 @@
<customHotspots><![CDATA[<customHotspots name="Enter Page Title" text="Enter text for the page here" highlightColour="0xFFFF00" lineWidth="1" interactivity="Hotspots" showShapes="true">CDATA</customHotspots>]]></customHotspots>
<hotspotImage><![CDATA[<hotspotImage name="Enter Page Title" text="Enter text for the page here" url="Select an Image" interactivity="Show Me" highlight="false" hicol="0xFFFF00" align="Left" tip="Enter a tooltip for the image"/>]]></hotspotImage>
<mcq><![CDATA[<mcq name="Enter Page Title" instruction="Enter Instruction" prompt="Enter a Prompt" type="Single Answer" align="Left" panelWidth="Medium"/>]]></mcq>

<list><![CDATA[<list name="Enter Page Title" text="Enter text for the page here"/>]]></list>

<buttonQuestion><![CDATA[<buttonQuestion name="Enter Page Title" instruction="Enter Instructions" prompt="Enter a prompt" label="Check" feedback="Enter the Feedback" align="Left" panelWidth="Medium"/>]]></buttonQuestion>

<chart><![CDATA[<chart name="Enter Page Title" chartTitle="Chart Title" chartType="line" text="Enter Page Text" align="left"/>]]></chart>
Expand All @@ -50,7 +53,7 @@
<xerteModel><![CDATA[<xerteModel name="Enter Page Title" modelFile="Select a Model"/>]]></xerteModel>
<captivate><![CDATA[<captivate name="Enter Page Title" url="Select a Captivate SWF File"/>]]></captivate>
<jing><![CDATA[<jing name="Enter Page Title" url="Select a Jing SWF File"/>]]></jing>
<iSpring><![CDATA[<iSpring name="Enter Page Title" url="Select an iSpring Movie"/>]]></iSpring>
<iSpring><![CDATA[<iSpring name="Enter Page Title" url="Select an iSpring Movie" version="Pro"/>]]></iSpring>
<flashPaper><![CDATA[<flashPaper name="Enter Page Title" url="Select a Flash Paper SWF File"/>]]></flashPaper>
<textSWF><![CDATA[<textSWF name="Enter Page Title" align="Left" url="Select a SWF File" tip="Enter a Tooltip" >Enter text for the page here</textSWF>]]></textSWF>
<videoSynch><![CDATA[<videoSynch name="Enter Page Title" url="Select a Movie" text="Enter text for the page here" pause="True" erase="True"/>]]></videoSynch>
Expand Down Expand Up @@ -216,6 +219,7 @@

<name type="TextInput" label="Page Title"/>
<url type="Media" label="ISpring Movie"/>
<version type="ComboBox" options="Free,Pro" label="Version" width="100"/>

</iSpring>

Expand Down Expand Up @@ -271,6 +275,19 @@

</mcq>

<!--INTERACTIVE LIST----------------------------------------------------------------->
<list menu="Interactivity" menuItem="Interactive List" icon="icList" remove="true" thumb="thumbs/list.jpg" hint="Presents an interactive list.">

<name type="TextInput" label="Page Title"/>
<text type="TextArea" label="Page Text" height="200"/>
<narration type="media" label="Narration" optional="true"/>

<newNodes>
<nestedPage><![CDATA[<nestedPage name="name" text="Content for the list item"/>]]></nestedPage>
</newNodes>

</list>


<!--DRAG DROP LABEL INTERACTION------------------------------------------------------>
<dragDropLabel menu="Interactivity" menuItem = "Drag and Drop Labelling" icon="icTagBlue" remove="true" thumb="thumbs/labelling.jpg" hint="An interactive labelling exercise. Mark up an image with regions and add a title and description for each region.">
Expand All @@ -280,7 +297,7 @@
<url type="media" label="Image"/>
<align type="ComboBox" label="Align Text" options="Left,Right" width="100"/>
<tip type="TextInput" label="Image Tooltip"/>

<highlightColour type="ColourPicker" label="Highlight Colour"/>
<narration type="media" label="Narration" optional="true"/>

<newNodes>
Expand Down
1 change: 1 addition & 0 deletions modules/xerte/parent_templates/Nottingham/models/list.rlm
@@ -0,0 +1 @@
<PG name="list"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);pageIcon.templateData = myXML.toObject();rootIcon.setTitleText(templateData.learningObject[0].name);if (pageIcon.templateData.list[0].narration != undefined){ narration = pageIcon.templateData.list[0].narration; rootIcon.broadcast('showAudio');}]]></SCR> <DIS id="textBlock" h="10" name="text" x="20" y="20" w="350" type="text"><![CDATA[{pageIcon.templateData.list[0].text}]]></DIS> <SCR name="makeList"><![CDATA[if (icon.built != 'true'){ icon.nextSibling.firstChild.firstChild.duplicate(pageIcon.templateData.list[0].nestedPage.length - 1); for (i = 0; i < pageIcon.templateData.list[0].nestedPage.length; i++){ icon.nextSibling.firstChild.childNodes[i].attributes.id = 'item' + i; } icon.built = 'true';}]]></SCR> <DEC name="listItems" repeat="all" branch="sequence" pause="0" erase="0" eraseOnExit="0"> <PG name="mainInteraction"> <DIS id="proto" name="protoListItem" x="20" y="textBlock._y + textBlock._height + 20*icon.index() + 20" w="380" h="10" type="text"><![CDATA[{'<b>' + pageIcon.templateData.list[0].nestedPage[icon.index()].name + '</b>'}]]></DIS> <SCR name="buildInteraction"><![CDATA[if (icon.built != true){ icon.nextSibling.firstChild.duplicate(pageIcon.templateData.list[0].nestedPage.length - 1); for (i = 0; i < pageIcon.templateData.list[0].nestedPage.length; i++){ icon.nextSibling.childNodes[i].attributes.rs = 'item' + i; } icon.built = true;}]]></SCR> <INT id="listItems" name="listItems" perpetual="1"> <RES name="protoItem" type="hotObject" rs="item0" click="1" cursor="1" erase="1" exit="0"> <SCR name="image"><![CDATA[listItems.clear();listItems.lineStyle(1, STYLES.statusBarColour, 100);listItems.beginFill(0xFFFFFF,100);item.setText('<b>' + pageIcon.templateData.list[0].nestedPage[item.XMLElement.index()].name + '</b>');item = eval(icon.parentNode.attributes.rs);listItems.moveTo(20,item._y);listItems.lineTo(400, item._y);listItems.lineTo(400, 20);listItems.lineTo(780, 20);listItems.lineTo(780, 496);listItems.lineTo(400, 496);listItems.lineTo(400, item._y + 20);listItems.lineTo(20, item._y + 20);item.setText('<b><font color="#333333">' + pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].name + '</font></b>');]]></SCR> <DIS textColour="#333333" id="desc" name="text" x="405" y="25" w="370" h="10" type="text"><![CDATA[{pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].text}]]></DIS> <DIS toolTip="{pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].tip}" id="graphic" name="graphic" x="desc._x" y="desc._y + desc._height + 10" type="ext" url="{pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].url}"><![CDATA[{pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].tip}]]></DIS> <INT name="loadImage" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="0"> <SCR name="resize"><![CDATA[space = 456 - desc._height;graphic.constrain(370, space);graphic._x = 590 - graphic._width / 2; if (pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].initObject != undefined){ obj = expression(pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].initObject, engine); graphic.clip.init(obj);}]]></SCR> </RES> </INT> </RES> </INT> <SCR name="swapDepths"><![CDATA[listItems.swapDepths(0);]]></SCR> </PG> </DEC> </PG>
Expand Down

0 comments on commit 5564894

Please sign in to comment.