|
@@ -464,6 +464,154 @@ messageSends: ["register:", "new"]
|
|
|
$globals.DebugErrorHandler.a$cls);
|
|
|
|
|
|
|
|
|
+$core.addClass("ProgressBar", $globals.Widget, ["percent", "progressDiv", "div"], "IDE");
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "percent",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (){
|
|
|
+var self=this,$self=this;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+var $1,$receiver;
|
|
|
+$1=$self.percent;
|
|
|
+if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+return (0);
|
|
|
+} else {
|
|
|
+return $1;
|
|
|
+}
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"percent",{})});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: [],
|
|
|
+source: "percent\x0a\x09^ percent ifNil: [ 0 ]",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: ["ifNil:"]
|
|
|
+}),
|
|
|
+$globals.ProgressBar);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "percent:",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (aNumber){
|
|
|
+var self=this,$self=this;
|
|
|
+$self.percent=aNumber;
|
|
|
+return self;
|
|
|
+
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: ["aNumber"],
|
|
|
+source: "percent: aNumber\x0a\x09percent := aNumber",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.ProgressBar);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "renderOn:",
|
|
|
+protocol: "rendering",
|
|
|
+fn: function (html){
|
|
|
+var self=this,$self=this;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+var $1;
|
|
|
+$1=$recv(html)._div();
|
|
|
+$recv($1)._class_("progress_bar");
|
|
|
+$self.div=$recv($1)._yourself();
|
|
|
+$self._renderProgressBar();
|
|
|
+return self;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html})});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: ["html"],
|
|
|
+source: "renderOn: html\x0a\x09div := html div\x0a\x09\x09class: 'progress_bar';\x0a\x09\x09yourself.\x0a\x09self renderProgressBar",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: ["class:", "div", "yourself", "renderProgressBar"]
|
|
|
+}),
|
|
|
+$globals.ProgressBar);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "renderProgressBar",
|
|
|
+protocol: "rendering",
|
|
|
+fn: function (){
|
|
|
+var self=this,$self=this;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+var $1,$2;
|
|
|
+$recv($self.div)._contents_((function(html){
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$1=$recv(html)._div();
|
|
|
+$recv($1)._class_("progress");
|
|
|
+$2=$recv("width:".__comma($recv($self._percent())._asString())).__comma("%");
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx2.sendIdx[","]=1;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+return $recv($1)._style_($2);
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
+return self;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"renderProgressBar",{})});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: [],
|
|
|
+source: "renderProgressBar\x0a\x09div contents: [ :html |\x0a\x09\x09html div\x0a\x09\x09\x09class: 'progress';\x0a\x09\x09\x09style: 'width:', self percent asString, '%' ]",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: ["contents:", "class:", "div", "style:", ",", "asString", "percent"]
|
|
|
+}),
|
|
|
+$globals.ProgressBar);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "updatePercent:",
|
|
|
+protocol: "updating",
|
|
|
+fn: function (aNumber){
|
|
|
+var self=this,$self=this;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$self._percent_(aNumber);
|
|
|
+$self._renderProgressBar();
|
|
|
+return self;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"updatePercent:",{aNumber:aNumber})});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: ["aNumber"],
|
|
|
+source: "updatePercent: aNumber\x0a\x09self percent: aNumber.\x0a\x09self renderProgressBar",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: ["percent:", "renderProgressBar"]
|
|
|
+}),
|
|
|
+$globals.ProgressBar);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$core.addClass("SourceArea", $globals.Widget, ["editor", "div", "receiver", "onDoIt"], "IDE");
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
@@ -7664,154 +7812,6 @@ messageSends: ["open", "current", "selectTab:"]
|
|
|
$globals.IDETranscript.a$cls);
|
|
|
|
|
|
|
|
|
-$core.addClass("ProgressBar", $globals.TabWidget, ["percent", "progressDiv", "div"], "IDE");
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "percent",
|
|
|
-protocol: "accessing",
|
|
|
-fn: function (){
|
|
|
-var self=this,$self=this;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
-$1=$self.percent;
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
-return (0);
|
|
|
-} else {
|
|
|
-return $1;
|
|
|
-}
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"percent",{})});
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-},
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: [],
|
|
|
-source: "percent\x0a\x09^ percent ifNil: [ 0 ]",
|
|
|
-referencedClasses: [],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: ["ifNil:"]
|
|
|
-}),
|
|
|
-$globals.ProgressBar);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "percent:",
|
|
|
-protocol: "accessing",
|
|
|
-fn: function (aNumber){
|
|
|
-var self=this,$self=this;
|
|
|
-$self.percent=aNumber;
|
|
|
-return self;
|
|
|
-
|
|
|
-},
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: ["aNumber"],
|
|
|
-source: "percent: aNumber\x0a\x09percent := aNumber",
|
|
|
-referencedClasses: [],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.ProgressBar);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "renderOn:",
|
|
|
-protocol: "rendering",
|
|
|
-fn: function (html){
|
|
|
-var self=this,$self=this;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-var $1;
|
|
|
-$1=$recv(html)._div();
|
|
|
-$recv($1)._class_("progress_bar");
|
|
|
-$self.div=$recv($1)._yourself();
|
|
|
-$self._renderProgressBar();
|
|
|
-return self;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html})});
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-},
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: ["html"],
|
|
|
-source: "renderOn: html\x0a\x09div := html div\x0a\x09\x09class: 'progress_bar';\x0a\x09\x09yourself.\x0a\x09self renderProgressBar",
|
|
|
-referencedClasses: [],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: ["class:", "div", "yourself", "renderProgressBar"]
|
|
|
-}),
|
|
|
-$globals.ProgressBar);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "renderProgressBar",
|
|
|
-protocol: "rendering",
|
|
|
-fn: function (){
|
|
|
-var self=this,$self=this;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-var $1,$2;
|
|
|
-$recv($self.div)._contents_((function(html){
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$1=$recv(html)._div();
|
|
|
-$recv($1)._class_("progress");
|
|
|
-$2=$recv("width:".__comma($recv($self._percent())._asString())).__comma("%");
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx2.sendIdx[","]=1;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-return $recv($1)._style_($2);
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)});
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-}));
|
|
|
-return self;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"renderProgressBar",{})});
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-},
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: [],
|
|
|
-source: "renderProgressBar\x0a\x09div contents: [ :html |\x0a\x09\x09html div\x0a\x09\x09\x09class: 'progress';\x0a\x09\x09\x09style: 'width:', self percent asString, '%' ]",
|
|
|
-referencedClasses: [],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: ["contents:", "class:", "div", "style:", ",", "asString", "percent"]
|
|
|
-}),
|
|
|
-$globals.ProgressBar);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "updatePercent:",
|
|
|
-protocol: "updating",
|
|
|
-fn: function (aNumber){
|
|
|
-var self=this,$self=this;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$self._percent_(aNumber);
|
|
|
-$self._renderProgressBar();
|
|
|
-return self;
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"updatePercent:",{aNumber:aNumber})});
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-},
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: ["aNumber"],
|
|
|
-source: "updatePercent: aNumber\x0a\x09self percent: aNumber.\x0a\x09self renderProgressBar",
|
|
|
-referencedClasses: [],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: ["percent:", "renderProgressBar"]
|
|
|
-}),
|
|
|
-$globals.ProgressBar);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$core.addClass("ReferencesBrowser", $globals.TabWidget, ["implementors", "senders", "implementorsList", "input", "timer", "selector", "sendersList", "referencedClasses", "referencedClassesList", "matches", "matchesList"], "IDE");
|
|
|
$core.addMethod(
|
|
|
$core.method({
|