|
@@ -4317,7 +4317,7 @@ referencedClasses: []
|
|
globals.HLManager.klass);
|
|
globals.HLManager.klass);
|
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('HLModalWidget', globals.HLWidget, ['confirmactionText', 'cancelText'], 'Helios-Core');
|
|
|
|
|
|
+smalltalk.addClass('HLModalWidget', globals.HLWidget, ['confirmButtonLabel', 'cancelButtonLabel'], 'Helios-Core');
|
|
globals.HLModalWidget.comment="I implement an abstract modal widget.";
|
|
globals.HLModalWidget.comment="I implement an abstract modal widget.";
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -4337,22 +4337,22 @@ globals.HLModalWidget);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "cancelText",
|
|
|
|
|
|
+selector: "cancelButtonLabel",
|
|
protocol: 'accessing',
|
|
protocol: 'accessing',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
|
|
return smalltalk.withContext(function($ctx1) {
|
|
var $2,$1;
|
|
var $2,$1;
|
|
-$2=self["@cancelText"];
|
|
|
|
|
|
+$2=self["@cancelButtonLabel"];
|
|
if(($receiver = $2) == nil || $receiver == null){
|
|
if(($receiver = $2) == nil || $receiver == null){
|
|
$1="Cancel";
|
|
$1="Cancel";
|
|
} else {
|
|
} else {
|
|
$1=$2;
|
|
$1=$2;
|
|
};
|
|
};
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"cancelText",{},globals.HLModalWidget)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"cancelButtonLabel",{},globals.HLModalWidget)})},
|
|
args: [],
|
|
args: [],
|
|
-source: "cancelText\x0a\x09^ cancelText ifNil: [ 'Cancel' ]",
|
|
|
|
|
|
+source: "cancelButtonLabel\x0a\x09^ cancelButtonLabel ifNil: [ 'Cancel' ]",
|
|
messageSends: ["ifNil:"],
|
|
messageSends: ["ifNil:"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
@@ -4360,14 +4360,14 @@ globals.HLModalWidget);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "cancelText:",
|
|
|
|
|
|
+selector: "cancelButtonLabel:",
|
|
protocol: 'accessing',
|
|
protocol: 'accessing',
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
var self=this;
|
|
var self=this;
|
|
-self["@cancelText"]=anObject;
|
|
|
|
|
|
+self["@cancelButtonLabel"]=anObject;
|
|
return self},
|
|
return self},
|
|
args: ["anObject"],
|
|
args: ["anObject"],
|
|
-source: "cancelText: anObject\x0a\x09cancelText := anObject",
|
|
|
|
|
|
+source: "cancelButtonLabel: anObject\x0a\x09cancelButtonLabel := anObject",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
@@ -4391,22 +4391,22 @@ globals.HLModalWidget);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "confirmactionText",
|
|
|
|
|
|
+selector: "confirmButtonLabel",
|
|
protocol: 'accessing',
|
|
protocol: 'accessing',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
|
|
return smalltalk.withContext(function($ctx1) {
|
|
var $2,$1;
|
|
var $2,$1;
|
|
-$2=self["@confirmactionText"];
|
|
|
|
|
|
+$2=self["@confirmButtonLabel"];
|
|
if(($receiver = $2) == nil || $receiver == null){
|
|
if(($receiver = $2) == nil || $receiver == null){
|
|
$1="Confirm";
|
|
$1="Confirm";
|
|
} else {
|
|
} else {
|
|
$1=$2;
|
|
$1=$2;
|
|
};
|
|
};
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"confirmactionText",{},globals.HLModalWidget)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"confirmButtonLabel",{},globals.HLModalWidget)})},
|
|
args: [],
|
|
args: [],
|
|
-source: "confirmactionText\x0a\x09^ confirmactionText ifNil: [ 'Confirm' ]",
|
|
|
|
|
|
+source: "confirmButtonLabel\x0a\x09^ confirmButtonLabel ifNil: [ 'Confirm' ]",
|
|
messageSends: ["ifNil:"],
|
|
messageSends: ["ifNil:"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
@@ -4414,14 +4414,14 @@ globals.HLModalWidget);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "confirmactionText:",
|
|
|
|
|
|
+selector: "confirmButtonLabel:",
|
|
protocol: 'accessing',
|
|
protocol: 'accessing',
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
var self=this;
|
|
var self=this;
|
|
-self["@confirmactionText"]=anObject;
|
|
|
|
|
|
+self["@confirmButtonLabel"]=anObject;
|
|
return self},
|
|
return self},
|
|
args: ["anObject"],
|
|
args: ["anObject"],
|
|
-source: "confirmactionText: anObject\x0a\x09confirmactionText := anObject",
|
|
|
|
|
|
+source: "confirmButtonLabel: anObject\x0a\x09confirmButtonLabel := anObject",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
@@ -4518,7 +4518,7 @@ $3=_st(html)._button();
|
|
$ctx2.sendIdx["button"]=1;
|
|
$ctx2.sendIdx["button"]=1;
|
|
_st($3)._class_("button");
|
|
_st($3)._class_("button");
|
|
$ctx2.sendIdx["class:"]=2;
|
|
$ctx2.sendIdx["class:"]=2;
|
|
-_st($3)._with_(self._cancelText());
|
|
|
|
|
|
+_st($3)._with_(self._cancelButtonLabel());
|
|
$ctx2.sendIdx["with:"]=2;
|
|
$ctx2.sendIdx["with:"]=2;
|
|
$4=_st($3)._onClick_((function(){
|
|
$4=_st($3)._onClick_((function(){
|
|
return smalltalk.withContext(function($ctx3) {
|
|
return smalltalk.withContext(function($ctx3) {
|
|
@@ -4528,7 +4528,7 @@ $ctx2.sendIdx["onClick:"]=1;
|
|
$4;
|
|
$4;
|
|
$5=_st(html)._button();
|
|
$5=_st(html)._button();
|
|
_st($5)._class_("button default");
|
|
_st($5)._class_("button default");
|
|
-_st($5)._with_(self._confirmationText());
|
|
|
|
|
|
+_st($5)._with_(self._confirmButtonLabel());
|
|
$6=_st($5)._onClick_((function(){
|
|
$6=_st($5)._onClick_((function(){
|
|
return smalltalk.withContext(function($ctx3) {
|
|
return smalltalk.withContext(function($ctx3) {
|
|
return self._confirm();
|
|
return self._confirm();
|
|
@@ -4540,8 +4540,8 @@ $ctx1.sendIdx["with:"]=1;
|
|
self._giveFocusToButton_(confirmButton);
|
|
self._giveFocusToButton_(confirmButton);
|
|
return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,confirmButton:confirmButton},globals.HLModalWidget)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,confirmButton:confirmButton},globals.HLModalWidget)})},
|
|
args: ["html"],
|
|
args: ["html"],
|
|
-source: "renderButtonsOn: html\x0a\x09| confirmButton |\x0a\x09\x0a\x09html div \x0a\x09\x09class: 'buttons';\x0a\x09\x09with: [\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09class: 'button';\x0a\x09\x09\x09\x09with: self cancelText;\x0a\x09\x09\x09\x09onClick: [ self cancel ].\x0a\x09\x09\x09confirmButton := html button\x0a\x09\x09\x09\x09class: 'button default';\x0a\x09\x09\x09\x09with: self confirmationText;\x0a\x09\x09\x09\x09onClick: [ self confirm ] ].\x0a\x0a\x09self giveFocusToButton:confirmButton",
|
|
|
|
-messageSends: ["class:", "div", "with:", "button", "cancelText", "onClick:", "cancel", "confirmationText", "confirm", "giveFocusToButton:"],
|
|
|
|
|
|
+source: "renderButtonsOn: html\x0a\x09| confirmButton |\x0a\x09\x0a\x09html div \x0a\x09\x09class: 'buttons';\x0a\x09\x09with: [\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09class: 'button';\x0a\x09\x09\x09\x09with: self cancelButtonLabel;\x0a\x09\x09\x09\x09onClick: [ self cancel ].\x0a\x09\x09\x09confirmButton := html button\x0a\x09\x09\x09\x09class: 'button default';\x0a\x09\x09\x09\x09with: self confirmButtonLabel;\x0a\x09\x09\x09\x09onClick: [ self confirm ] ].\x0a\x0a\x09self giveFocusToButton:confirmButton",
|
|
|
|
+messageSends: ["class:", "div", "with:", "button", "cancelButtonLabel", "onClick:", "cancel", "confirmButtonLabel", "confirm", "giveFocusToButton:"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
globals.HLModalWidget);
|
|
globals.HLModalWidget);
|