-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
* fixed #99 (saving linked lists) * fixed #1163 * added web api / https reporter library * new “transient variable” feature * German translation update
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ XML_Element, WatcherMorph, BlockRemovalDialogMorph, saveAs, TableMorph*/ | |
|
||
// Global stuff //////////////////////////////////////////////////////// | ||
|
||
modules.gui = '2016-February-24'; | ||
modules.gui = '2016-March-16'; | ||
|
||
// Declarations | ||
|
||
|
@@ -2524,6 +2524,17 @@ IDE_Morph.prototype.settingsMenu = function () { | |
'check for sprite\ninheritance features', | ||
false | ||
); | ||
addPreference( | ||
'Persist linked sublist IDs', | ||
function () { | ||
StageMorph.prototype.enableSublistIDs = | ||
!StageMorph.prototype.enableSublistIDs; | ||
}, | ||
StageMorph.prototype.enableSublistIDs, | ||
'uncheck to disable\nsaving linked sublist identities', | ||
'check to enable\nsaving linked sublist identities', | ||
true | ||
); | ||
menu.popup(world, pos); | ||
}; | ||
|
||
|
@@ -2796,7 +2807,7 @@ IDE_Morph.prototype.aboutSnap = function () { | |
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, | ||
world = this.world(); | ||
|
||
aboutTxt = 'Snap! 4.0.5\nBuild Your Own Blocks\n\n' | ||
aboutTxt = 'Snap! 4.0.6\nBuild Your Own Blocks\n\n' | ||
+ 'Copyright \u24B8 2016 Jens M\u00F6nig and ' | ||
+ 'Brian Harvey\n' | ||
+ '[email protected], [email protected]\n\n' | ||
|
@@ -3014,6 +3025,7 @@ IDE_Morph.prototype.newProject = function () { | |
StageMorph.prototype.codeHeaders = {}; | ||
StageMorph.prototype.enableCodeMapping = false; | ||
StageMorph.prototype.enableInheritance = false; | ||
StageMorph.prototype.enableSublistIDs = false; | ||
SpriteMorph.prototype.useFlatLineEnds = false; | ||
this.setProjectName(''); | ||
this.projectNotes = ''; | ||
|
@@ -3521,6 +3533,7 @@ IDE_Morph.prototype.rawOpenProjectString = function (str) { | |
StageMorph.prototype.codeHeaders = {}; | ||
StageMorph.prototype.enableCodeMapping = false; | ||
StageMorph.prototype.enableInheritance = false; | ||
StageMorph.prototype.enableSublistIDs = false; | ||
if (Process.prototype.isCatchingErrors) { | ||
try { | ||
this.serializer.openProject( | ||
|
@@ -3564,6 +3577,7 @@ IDE_Morph.prototype.rawOpenCloudDataString = function (str) { | |
StageMorph.prototype.codeHeaders = {}; | ||
StageMorph.prototype.enableCodeMapping = false; | ||
StageMorph.prototype.enableInheritance = false; | ||
StageMorph.prototype.enableSublistIDs = false; | ||
if (Process.prototype.isCatchingErrors) { | ||
try { | ||
model = this.serializer.parse(str); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,7 +185,7 @@ SnapTranslator.dict.de = { | |
'translator_e-mail': | ||
'[email protected]', // optional | ||
'last_changed': | ||
'2016-02-24', // this, too, will appear in the Translators tab | ||
'2016-03-16', // this, too, will appear in the Translators tab | ||
|
||
// GUI | ||
// control bar: | ||
|
@@ -881,6 +881,12 @@ SnapTranslator.dict.de = { | |
'Umringen', | ||
'unringify': | ||
'Entringen', | ||
'transient': | ||
'nicht persistent', | ||
'uncheck to save contents\nin the project': | ||
'ausschalten, um den Inhalt\nim Projekt zu speichern', | ||
'check to prevent contents\nfrom being saved': | ||
'einschalten, um das Speichern des Inhalts\nim Projekt zu verhindern', | ||
|
||
// custom blocks: | ||
'delete block definition...': | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<blocks app="Snap! 4.0, http://snap.berkeley.edu" version="1"><block-definition s="%'method' url: %'url' send: %'payload' headers: %'headers'" type="reporter" category="sensing"><header></header><code></code><inputs><input type="%s" readonly="true">GET<options>GET | ||
POST | ||
PUT | ||
DELETE</options></input><input type="%s">http://snap.berkeley.edu</input><input type="%s"></input><input type="%mult%l" readonly="true"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>method</l><l>url</l><l>data</l><l>headers</l><l>proc</l></list><l>var response, i, header;
if (!proc.httpRequest) {
 proc.httpRequest = new XMLHttpRequest();
 proc.httpRequest.open(method, url, true);
 proc.assertType(headers, 'list');
 for (i = 1; i <= headers.length(); i += 1) {
 header = headers.at(i);
 proc.assertType(header, 'list');
 proc.httpRequest.setRequestHeader(
 header.at(1),
 header.at(2)
 );
 }
 proc.httpRequest.send(data || null);
} else if (proc.httpRequest.readyState === 4) {
 response = proc.httpRequest.responseText;
 proc.httpRequest = null;
 return response;
}
proc.pushContext('doYield');
proc.pushContext();</l></block><list><block var="method"/><block var="url"/><block var="payload"/><block var="headers"/></list></block></block></script></block-definition><block-definition s="key: %'key' value: %'value'" type="reporter" category="operators"><header></header><code></code><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doReport"><block s="reportNewList"><list><block var="key"/><block var="value"/></list></block></block></script></block-definition></blocks> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
|
||
/*global modules, contains*/ | ||
|
||
modules.locale = '2016-February-24'; | ||
modules.locale = '2016-March-16'; | ||
|
||
// Global stuff | ||
|
||
|
@@ -161,7 +161,7 @@ SnapTranslator.dict.de = { | |
'translator_e-mail': | ||
'[email protected]', | ||
'last_changed': | ||
'2016-02-24' | ||
'2016-03-16' | ||
}; | ||
|
||
SnapTranslator.dict.it = { | ||
|
4 comments
on commit bbb5106
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are transient variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hang on, documentation is coming in a minute!
(transient variables' values don't get serialized and saved in the project)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm excited.
Cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to get excited really, this is just a minor release with a bunch of bug fixes and a kludge declared feature :-), but thanks anyway!
Yay! We're getting there!