Distinguish between Download (for remote disks/files) and Load (for local disks/files)
This commit is contained in:
parent
605146075b
commit
afc6c3cbd1
12 changed files with 17 additions and 15 deletions
|
|
@ -20,6 +20,6 @@
|
|||
<item ref="/apps/c1p/BASIC/OSI/SAMPLE6.BAS">PRESIDENTS</item>
|
||||
<item ref="/sites/www.osiweb.org/programs/basic/OsiBas/spacewar.bas">SPACEWAR</item>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadSerial">Load File</control>
|
||||
<control type="button" class="input" binding="loadSerial">Download</control>
|
||||
<control type="file" class="input" binding="mountSerial" style="padding-left:16px"/>
|
||||
</serial>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
<item ref="/apps/c1p/BASIC/OSI/SAMPLE5.BAS">COUNTER</item>
|
||||
<item ref="/apps/c1p/BASIC/OSI/SAMPLE6.BAS">PRESIDENTS</item>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadSerial">Load</control>
|
||||
<control type="button" class="input" binding="loadSerial">Download</control>
|
||||
<control type="file" class="input" binding="mountSerial" style="padding-left:16px"/>
|
||||
</serial>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<control type="button" class="input" binding="reset">Reset</control>
|
||||
</cpu>
|
||||
<keyboard ref="/devices/pc/keyboard/minimal-f1-f10.xml"/>
|
||||
<fdc ref="/disks/pc/samples.xml" width="400px"/>
|
||||
<fdc ref="/disks/pc/samples.xml" pos="right"/>
|
||||
<chipset id="chipset" model="5160" sw1="01001001"/>
|
||||
<hdc ref="/disks/pc/fixed/win101.xml"/>
|
||||
<serial id="com1" adapter="1" binding="print"/>
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
<manifest ref="/apps/pc/1987/thinktank/manifest.xml" disk="disk01"/>
|
||||
<manifest ref="/apps/pc/1992/moria/manifest.xml" disk="disk01"/>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadDrive">Load</control>
|
||||
<control type="description" class="output" binding="descDisk" padleft="8px"/>
|
||||
<control type="button" class="input" binding="loadDrive" padright="8px">Download</control>
|
||||
<control type="description" class="output" binding="descDisk" padright="8px"/>
|
||||
<control type="file" class="input" binding="mountDrive"/>
|
||||
</fdc>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<fdc id="fdcNEC" width="360px" pos="left" padleft="8px" padbottom="8px" automount='{A:{name:"PC-DOS 2.00 (Disk 1)",path:"/disks/pc/dos/ibm/2.00/PCDOS200-DISK1.json"}, B:{name:"PC-DOS 2.00 (Disk 2)",path:"/disks/pc/dos/ibm/2.00/PCDOS200-DISK2.json"}}'>
|
||||
<fdc id="fdcNEC" pos="left" padleft="8px" padbottom="8px" automount='{A:{name:"PC-DOS 2.00 (Disk 1)",path:"/disks/pc/dos/ibm/2.00/PCDOS200-DISK1.json"}, B:{name:"PC-DOS 2.00 (Disk 2)",path:"/disks/pc/dos/ibm/2.00/PCDOS200-DISK2.json"}}'>
|
||||
<control type="list" class="input" binding="listDrives"/>
|
||||
<control type="list" class="input" binding="listDisks">
|
||||
<disk path="">None</disk>
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
<manifest ref="/disks/pc/games/microsoft/adventure/manifest.xml" disk="*"/>
|
||||
<manifest ref="/apps/pc/1981/visicalc/manifest.xml" disk="*"/>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadDrive">Load</control>
|
||||
<control type="description" class="output" binding="descDisk" padleft="8px"/>
|
||||
<control type="button" class="input" binding="loadDrive" padright="8px">Download</control>
|
||||
<control type="description" class="output" binding="descDisk" padright="8px"/>
|
||||
<control type="file" class="input" binding="mountDrive"/>
|
||||
</fdc>
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@
|
|||
<form class="{$APPCLASS}-{@class}" data-value="{$type},{$binding}">
|
||||
<fieldset class="{$APPCLASS}-fieldset">
|
||||
<input type="file"/>
|
||||
<input type="submit" value="Mount" disabled="true"/>
|
||||
<input type="submit" value="Load" disabled="true"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ C1PSerialPort.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, c
|
|||
};
|
||||
}
|
||||
else {
|
||||
if (DEBUG) this.log("FileReader support not available, Mount disabled");
|
||||
if (DEBUG) this.log("Local file support not available");
|
||||
control.parentNode.removeChild(control);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@
|
|||
<form class="{$APPCLASS}-{@class}" style="{$border}{$width}{$height}{$style}" data-value="{$type},{$binding}">
|
||||
<fieldset class="{$APPCLASS}-fieldset">
|
||||
<input type="file"/>
|
||||
<input type="submit" value="Mount" disabled="true"/>
|
||||
<input type="submit" value="Load" disabled="true"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ FDC.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, control)
|
|||
};
|
||||
}
|
||||
else {
|
||||
if (DEBUG) this.log("FileReader support not available, Mount disabled");
|
||||
if (DEBUG) this.log("Local file support not available");
|
||||
control.parentNode.removeChild(control);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@
|
|||
<form class="{$APPCLASS}-{@class}" data-value="{$type},{$binding}">
|
||||
<fieldset class="{$APPCLASS}-fieldset">
|
||||
<input type="file"/>
|
||||
<input type="submit" value="Mount" disabled="true"/>
|
||||
<input type="submit" value="Load" disabled="true"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@
|
|||
<form class="{$APPCLASS}-{@class}" style="{$border}{$width}{$height}{$style}" data-value="{$type},{$binding}">
|
||||
<fieldset class="{$APPCLASS}-fieldset">
|
||||
<input type="file"/>
|
||||
<input type="submit" value="Mount" disabled="true"/>
|
||||
<input type="submit" value="Load" disabled="true"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@
|
|||
<form class="{$APPCLASS}-{@class}" data-value="{$type},{$binding}">
|
||||
<fieldset class="{$APPCLASS}-fieldset">
|
||||
<input type="file"/>
|
||||
<input type="submit" value="Mount" disabled="true"/>
|
||||
<input type="submit" value="Load" disabled="true"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
|
|
|||
Loading…
Reference in a new issue