Helios-Core.deploy.js 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017
  1. smalltalk.addPackage('Helios-Core');
  2. smalltalk.addClass('HLModel', smalltalk.Object, ['announcer', 'environment'], 'Helios-Core');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "announcer",
  6. fn: function (){
  7. var self=this;
  8. function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  9. return smalltalk.withContext(function($ctx1) {
  10. var $2,$1;
  11. $2=self["@announcer"];
  12. if(($receiver = $2) == nil || $receiver == undefined){
  13. self["@announcer"]=_st($Announcer())._new();
  14. $1=self["@announcer"];
  15. } else {
  16. $1=$2;
  17. };
  18. return $1;
  19. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLModel)})},
  20. messageSends: ["ifNil:", "new"]}),
  21. smalltalk.HLModel);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "environment",
  25. fn: function (){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) {
  28. var $2,$1;
  29. $2=self["@environment"];
  30. if(($receiver = $2) == nil || $receiver == undefined){
  31. $1=_st(_st(self)._manager())._environment();
  32. } else {
  33. $1=$2;
  34. };
  35. return $1;
  36. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLModel)})},
  37. messageSends: ["ifNil:", "environment", "manager"]}),
  38. smalltalk.HLModel);
  39. smalltalk.addMethod(
  40. smalltalk.method({
  41. selector: "environment:",
  42. fn: function (anEnvironment){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. self["@environment"]=anEnvironment;
  46. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLModel)})},
  47. messageSends: []}),
  48. smalltalk.HLModel);
  49. smalltalk.addMethod(
  50. smalltalk.method({
  51. selector: "manager",
  52. fn: function (){
  53. var self=this;
  54. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  55. return smalltalk.withContext(function($ctx1) {
  56. var $1;
  57. $1=_st($HLManager())._current();
  58. return $1;
  59. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLModel)})},
  60. messageSends: ["current"]}),
  61. smalltalk.HLModel);
  62. smalltalk.addMethod(
  63. smalltalk.method({
  64. selector: "systemAnnouncer",
  65. fn: function (){
  66. var self=this;
  67. return smalltalk.withContext(function($ctx1) {
  68. var $1;
  69. $1=_st(_st(self)._environment())._systemAnnouncer();
  70. return $1;
  71. }, function($ctx1) {$ctx1.fill(self,"systemAnnouncer",{},smalltalk.HLModel)})},
  72. messageSends: ["systemAnnouncer", "environment"]}),
  73. smalltalk.HLModel);
  74. smalltalk.addMethod(
  75. smalltalk.method({
  76. selector: "withChangesDo:",
  77. fn: function (aBlock){
  78. var self=this;
  79. function $HLChangeForbidden(){return smalltalk.HLChangeForbidden||(typeof HLChangeForbidden=="undefined"?nil:HLChangeForbidden)}
  80. function $HLAboutToChange(){return smalltalk.HLAboutToChange||(typeof HLAboutToChange=="undefined"?nil:HLAboutToChange)}
  81. return smalltalk.withContext(function($ctx1) {
  82. _st((function(){
  83. return smalltalk.withContext(function($ctx2) {
  84. _st(_st(self)._announcer())._announce_(_st(_st($HLAboutToChange())._new())._actionBlock_(aBlock));
  85. return _st(aBlock)._value();
  86. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._on_do_($HLChangeForbidden(),(function(ex){
  87. return smalltalk.withContext(function($ctx2) {
  88. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  89. return self}, function($ctx1) {$ctx1.fill(self,"withChangesDo:",{aBlock:aBlock},smalltalk.HLModel)})},
  90. messageSends: ["on:do:", "announce:", "actionBlock:", "new", "announcer", "value"]}),
  91. smalltalk.HLModel);
  92. smalltalk.addClass('HLTab', smalltalk.Widget, ['widget', 'label', 'root'], 'Helios-Core');
  93. smalltalk.addMethod(
  94. smalltalk.method({
  95. selector: "activate",
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.withContext(function($ctx1) {
  99. _st(_st(self)._manager())._activate_(self);
  100. return self}, function($ctx1) {$ctx1.fill(self,"activate",{},smalltalk.HLTab)})},
  101. messageSends: ["activate:", "manager"]}),
  102. smalltalk.HLTab);
  103. smalltalk.addMethod(
  104. smalltalk.method({
  105. selector: "add",
  106. fn: function (){
  107. var self=this;
  108. return smalltalk.withContext(function($ctx1) {
  109. _st(_st(self)._manager())._addTab_(self);
  110. return self}, function($ctx1) {$ctx1.fill(self,"add",{},smalltalk.HLTab)})},
  111. messageSends: ["addTab:", "manager"]}),
  112. smalltalk.HLTab);
  113. smalltalk.addMethod(
  114. smalltalk.method({
  115. selector: "displayLabel",
  116. fn: function (){
  117. var self=this;
  118. return smalltalk.withContext(function($ctx1) {
  119. var $2,$1;
  120. $2=_st(_st(_st(self)._label())._size()).__gt((20));
  121. if(smalltalk.assert($2)){
  122. $1=_st(_st(_st(self)._label())._first_((20))).__comma("...");
  123. } else {
  124. $1=_st(self)._label();
  125. };
  126. return $1;
  127. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLTab)})},
  128. messageSends: ["ifTrue:ifFalse:", ",", "first:", "label", ">", "size"]}),
  129. smalltalk.HLTab);
  130. smalltalk.addMethod(
  131. smalltalk.method({
  132. selector: "focus",
  133. fn: function (){
  134. var self=this;
  135. return smalltalk.withContext(function($ctx1) {
  136. var $1;
  137. $1=_st(_st(self)._widget())._canHaveFocus();
  138. if(smalltalk.assert($1)){
  139. _st(_st(self)._widget())._focus();
  140. };
  141. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLTab)})},
  142. messageSends: ["ifTrue:", "focus", "widget", "canHaveFocus"]}),
  143. smalltalk.HLTab);
  144. smalltalk.addMethod(
  145. smalltalk.method({
  146. selector: "hide",
  147. fn: function (){
  148. var self=this;
  149. return smalltalk.withContext(function($ctx1) {
  150. var $1;
  151. $1=self["@root"];
  152. if(($receiver = $1) == nil || $receiver == undefined){
  153. $1;
  154. } else {
  155. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","hidden");
  156. };
  157. return self}, function($ctx1) {$ctx1.fill(self,"hide",{},smalltalk.HLTab)})},
  158. messageSends: ["ifNotNil:", "css:put:", "asJQuery"]}),
  159. smalltalk.HLTab);
  160. smalltalk.addMethod(
  161. smalltalk.method({
  162. selector: "isActive",
  163. fn: function (){
  164. var self=this;
  165. return smalltalk.withContext(function($ctx1) {
  166. var $1;
  167. $1=_st(_st(_st(self)._manager())._activeTab()).__eq(self);
  168. return $1;
  169. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLTab)})},
  170. messageSends: ["=", "activeTab", "manager"]}),
  171. smalltalk.HLTab);
  172. smalltalk.addMethod(
  173. smalltalk.method({
  174. selector: "label",
  175. fn: function (){
  176. var self=this;
  177. return smalltalk.withContext(function($ctx1) {
  178. var $2,$1;
  179. $2=self["@label"];
  180. if(($receiver = $2) == nil || $receiver == undefined){
  181. $1="";
  182. } else {
  183. $1=$2;
  184. };
  185. return $1;
  186. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLTab)})},
  187. messageSends: ["ifNil:"]}),
  188. smalltalk.HLTab);
  189. smalltalk.addMethod(
  190. smalltalk.method({
  191. selector: "label:",
  192. fn: function (aString){
  193. var self=this;
  194. return smalltalk.withContext(function($ctx1) {
  195. self["@label"]=aString;
  196. return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString},smalltalk.HLTab)})},
  197. messageSends: []}),
  198. smalltalk.HLTab);
  199. smalltalk.addMethod(
  200. smalltalk.method({
  201. selector: "manager",
  202. fn: function (){
  203. var self=this;
  204. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  205. return smalltalk.withContext(function($ctx1) {
  206. var $1;
  207. $1=_st($HLManager())._current();
  208. return $1;
  209. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLTab)})},
  210. messageSends: ["current"]}),
  211. smalltalk.HLTab);
  212. smalltalk.addMethod(
  213. smalltalk.method({
  214. selector: "registerBindings",
  215. fn: function (){
  216. var self=this;
  217. return smalltalk.withContext(function($ctx1) {
  218. _st(_st(self)._widget())._registerBindings();
  219. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLTab)})},
  220. messageSends: ["registerBindings", "widget"]}),
  221. smalltalk.HLTab);
  222. smalltalk.addMethod(
  223. smalltalk.method({
  224. selector: "remove",
  225. fn: function (){
  226. var self=this;
  227. return smalltalk.withContext(function($ctx1) {
  228. var $1;
  229. $1=self["@root"];
  230. if(($receiver = $1) == nil || $receiver == undefined){
  231. $1;
  232. } else {
  233. _st(_st(self["@root"])._asJQuery())._remove();
  234. };
  235. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLTab)})},
  236. messageSends: ["ifNotNil:", "remove", "asJQuery"]}),
  237. smalltalk.HLTab);
  238. smalltalk.addMethod(
  239. smalltalk.method({
  240. selector: "renderOn:",
  241. fn: function (html){
  242. var self=this;
  243. return smalltalk.withContext(function($ctx1) {
  244. var $1,$2;
  245. $1=_st(html)._div();
  246. _st($1)._class_("tab");
  247. $2=_st($1)._yourself();
  248. self["@root"]=$2;
  249. _st(self)._renderTab();
  250. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLTab)})},
  251. messageSends: ["class:", "div", "yourself", "renderTab"]}),
  252. smalltalk.HLTab);
  253. smalltalk.addMethod(
  254. smalltalk.method({
  255. selector: "renderTab",
  256. fn: function (){
  257. var self=this;
  258. return smalltalk.withContext(function($ctx1) {
  259. var $1,$2;
  260. _st(self["@root"])._contents_((function(html){
  261. return smalltalk.withContext(function($ctx2) {
  262. $1=_st(html)._div();
  263. _st($1)._class_("amber_box");
  264. $2=_st($1)._with_((function(){
  265. return smalltalk.withContext(function($ctx3) {
  266. return _st(_st(self)._widget())._renderOn_(html);
  267. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  268. return $2;
  269. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  270. return self}, function($ctx1) {$ctx1.fill(self,"renderTab",{},smalltalk.HLTab)})},
  271. messageSends: ["contents:", "class:", "div", "with:", "renderOn:", "widget"]}),
  272. smalltalk.HLTab);
  273. smalltalk.addMethod(
  274. smalltalk.method({
  275. selector: "show",
  276. fn: function (){
  277. var self=this;
  278. return smalltalk.withContext(function($ctx1) {
  279. var $1;
  280. $1=self["@root"];
  281. if(($receiver = $1) == nil || $receiver == undefined){
  282. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  283. } else {
  284. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","visible");
  285. };
  286. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.HLTab)})},
  287. messageSends: ["ifNil:ifNotNil:", "appendToJQuery:", "asJQuery", "css:put:"]}),
  288. smalltalk.HLTab);
  289. smalltalk.addMethod(
  290. smalltalk.method({
  291. selector: "widget",
  292. fn: function (){
  293. var self=this;
  294. return smalltalk.withContext(function($ctx1) {
  295. var $1;
  296. $1=self["@widget"];
  297. return $1;
  298. }, function($ctx1) {$ctx1.fill(self,"widget",{},smalltalk.HLTab)})},
  299. messageSends: []}),
  300. smalltalk.HLTab);
  301. smalltalk.addMethod(
  302. smalltalk.method({
  303. selector: "widget:",
  304. fn: function (aWidget){
  305. var self=this;
  306. return smalltalk.withContext(function($ctx1) {
  307. self["@widget"]=aWidget;
  308. return self}, function($ctx1) {$ctx1.fill(self,"widget:",{aWidget:aWidget},smalltalk.HLTab)})},
  309. messageSends: []}),
  310. smalltalk.HLTab);
  311. smalltalk.addMethod(
  312. smalltalk.method({
  313. selector: "on:labelled:",
  314. fn: function (aWidget,aString){
  315. var self=this;
  316. return smalltalk.withContext(function($ctx1) {
  317. var $2,$3,$1;
  318. $2=_st(self)._new();
  319. _st($2)._widget_(aWidget);
  320. _st($2)._label_(aString);
  321. $3=_st($2)._yourself();
  322. $1=$3;
  323. return $1;
  324. }, function($ctx1) {$ctx1.fill(self,"on:labelled:",{aWidget:aWidget,aString:aString},smalltalk.HLTab.klass)})},
  325. messageSends: ["widget:", "new", "label:", "yourself"]}),
  326. smalltalk.HLTab.klass);
  327. smalltalk.addClass('HLWidget', smalltalk.Widget, ['wrapper'], 'Helios-Core');
  328. smalltalk.addMethod(
  329. smalltalk.method({
  330. selector: "alert:",
  331. fn: function (aString){
  332. var self=this;
  333. return smalltalk.withContext(function($ctx1) {
  334. _st(window)._alert_(aString);
  335. return self}, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},smalltalk.HLWidget)})},
  336. messageSends: ["alert:"]}),
  337. smalltalk.HLWidget);
  338. smalltalk.addMethod(
  339. smalltalk.method({
  340. selector: "canHaveFocus",
  341. fn: function (){
  342. var self=this;
  343. return smalltalk.withContext(function($ctx1) {
  344. return false;
  345. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLWidget)})},
  346. messageSends: []}),
  347. smalltalk.HLWidget);
  348. smalltalk.addMethod(
  349. smalltalk.method({
  350. selector: "confirm:ifTrue:",
  351. fn: function (aString,aBlock){
  352. var self=this;
  353. return smalltalk.withContext(function($ctx1) {
  354. _st(_st(self)._manager())._confirm_ifTrue_(aString,aBlock);
  355. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLWidget)})},
  356. messageSends: ["confirm:ifTrue:", "manager"]}),
  357. smalltalk.HLWidget);
  358. smalltalk.addMethod(
  359. smalltalk.method({
  360. selector: "execute:",
  361. fn: function (aCommand){
  362. var self=this;
  363. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  364. return smalltalk.withContext(function($ctx1) {
  365. var $1,$2;
  366. $1=_st(_st($HLManager())._current())._keyBinder();
  367. _st($1)._activate();
  368. $2=_st($1)._applyBinding_(_st(aCommand)._asBinding());
  369. return self}, function($ctx1) {$ctx1.fill(self,"execute:",{aCommand:aCommand},smalltalk.HLWidget)})},
  370. messageSends: ["activate", "keyBinder", "current", "applyBinding:", "asBinding"]}),
  371. smalltalk.HLWidget);
  372. smalltalk.addMethod(
  373. smalltalk.method({
  374. selector: "manager",
  375. fn: function (){
  376. var self=this;
  377. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  378. return smalltalk.withContext(function($ctx1) {
  379. var $1;
  380. $1=_st($HLManager())._current();
  381. return $1;
  382. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLWidget)})},
  383. messageSends: ["current"]}),
  384. smalltalk.HLWidget);
  385. smalltalk.addMethod(
  386. smalltalk.method({
  387. selector: "refresh",
  388. fn: function (){
  389. var self=this;
  390. return smalltalk.withContext(function($ctx1) {
  391. var $1,$2;
  392. $1=_st(self)._wrapper();
  393. if(($receiver = $1) == nil || $receiver == undefined){
  394. $2=self;
  395. return $2;
  396. } else {
  397. $1;
  398. };
  399. _st(_st(_st(self)._wrapper())._asJQuery())._empty();
  400. _st((function(html){
  401. return smalltalk.withContext(function($ctx2) {
  402. return _st(self)._renderContentOn_(html);
  403. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st(_st(self)._wrapper())._asJQuery());
  404. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLWidget)})},
  405. messageSends: ["ifNil:", "wrapper", "empty", "asJQuery", "appendToJQuery:", "renderContentOn:"]}),
  406. smalltalk.HLWidget);
  407. smalltalk.addMethod(
  408. smalltalk.method({
  409. selector: "registerBindings",
  410. fn: function (){
  411. var self=this;
  412. return smalltalk.withContext(function($ctx1) {
  413. _st(self)._registerBindingsOn_(_st(_st(_st(self)._manager())._keyBinder())._bindings());
  414. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLWidget)})},
  415. messageSends: ["registerBindingsOn:", "bindings", "keyBinder", "manager"]}),
  416. smalltalk.HLWidget);
  417. smalltalk.addMethod(
  418. smalltalk.method({
  419. selector: "registerBindingsOn:",
  420. fn: function (aBindingGroup){
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLWidget)})},
  424. messageSends: []}),
  425. smalltalk.HLWidget);
  426. smalltalk.addMethod(
  427. smalltalk.method({
  428. selector: "renderContentOn:",
  429. fn: function (html){
  430. var self=this;
  431. return smalltalk.withContext(function($ctx1) {
  432. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLWidget)})},
  433. messageSends: []}),
  434. smalltalk.HLWidget);
  435. smalltalk.addMethod(
  436. smalltalk.method({
  437. selector: "renderOn:",
  438. fn: function (html){
  439. var self=this;
  440. return smalltalk.withContext(function($ctx1) {
  441. self["@wrapper"]=_st(html)._div();
  442. _st((function(renderer){
  443. return smalltalk.withContext(function($ctx2) {
  444. return _st(self)._renderContentOn_(renderer);
  445. }, function($ctx2) {$ctx2.fillBlock({renderer:renderer},$ctx1)})}))._appendToJQuery_(_st(self["@wrapper"])._asJQuery());
  446. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLWidget)})},
  447. messageSends: ["div", "appendToJQuery:", "asJQuery", "renderContentOn:"]}),
  448. smalltalk.HLWidget);
  449. smalltalk.addMethod(
  450. smalltalk.method({
  451. selector: "wrapper",
  452. fn: function (){
  453. var self=this;
  454. return smalltalk.withContext(function($ctx1) {
  455. var $1;
  456. $1=self["@wrapper"];
  457. return $1;
  458. }, function($ctx1) {$ctx1.fill(self,"wrapper",{},smalltalk.HLWidget)})},
  459. messageSends: []}),
  460. smalltalk.HLWidget);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "canBeOpenAsTab",
  464. fn: function (){
  465. var self=this;
  466. return smalltalk.withContext(function($ctx1) {
  467. return false;
  468. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLWidget.klass)})},
  469. messageSends: []}),
  470. smalltalk.HLWidget.klass);
  471. smalltalk.addMethod(
  472. smalltalk.method({
  473. selector: "openAsTab",
  474. fn: function (){
  475. var self=this;
  476. function $HLTab(){return smalltalk.HLTab||(typeof HLTab=="undefined"?nil:HLTab)}
  477. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  478. return smalltalk.withContext(function($ctx1) {
  479. var $1,$2;
  480. $1=_st(self)._canBeOpenAsTab();
  481. if(! smalltalk.assert($1)){
  482. $2=self;
  483. return $2;
  484. };
  485. _st(_st($HLManager())._current())._addTab_(_st($HLTab())._on_labelled_(_st(self)._new(),_st(self)._tabLabel()));
  486. return self}, function($ctx1) {$ctx1.fill(self,"openAsTab",{},smalltalk.HLWidget.klass)})},
  487. messageSends: ["ifFalse:", "canBeOpenAsTab", "addTab:", "on:labelled:", "new", "tabLabel", "current"]}),
  488. smalltalk.HLWidget.klass);
  489. smalltalk.addMethod(
  490. smalltalk.method({
  491. selector: "tabLabel",
  492. fn: function (){
  493. var self=this;
  494. return smalltalk.withContext(function($ctx1) {
  495. return "Tab";
  496. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLWidget.klass)})},
  497. messageSends: []}),
  498. smalltalk.HLWidget.klass);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "tabPriority",
  502. fn: function (){
  503. var self=this;
  504. return smalltalk.withContext(function($ctx1) {
  505. var $1;
  506. $1=(500);
  507. return $1;
  508. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLWidget.klass)})},
  509. messageSends: []}),
  510. smalltalk.HLWidget.klass);
  511. smalltalk.addClass('HLConfirmation', smalltalk.HLWidget, ['confirmationString', 'actionBlock', 'cancelBlock'], 'Helios-Core');
  512. smalltalk.addMethod(
  513. smalltalk.method({
  514. selector: "actionBlock",
  515. fn: function (){
  516. var self=this;
  517. return smalltalk.withContext(function($ctx1) {
  518. var $2,$1;
  519. $2=self["@actionBlock"];
  520. if(($receiver = $2) == nil || $receiver == undefined){
  521. $1=(function(){
  522. return smalltalk.withContext(function($ctx2) {
  523. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  524. } else {
  525. $1=$2;
  526. };
  527. return $1;
  528. }, function($ctx1) {$ctx1.fill(self,"actionBlock",{},smalltalk.HLConfirmation)})},
  529. messageSends: ["ifNil:"]}),
  530. smalltalk.HLConfirmation);
  531. smalltalk.addMethod(
  532. smalltalk.method({
  533. selector: "actionBlock:",
  534. fn: function (aBlock){
  535. var self=this;
  536. return smalltalk.withContext(function($ctx1) {
  537. self["@actionBlock"]=aBlock;
  538. return self}, function($ctx1) {$ctx1.fill(self,"actionBlock:",{aBlock:aBlock},smalltalk.HLConfirmation)})},
  539. messageSends: []}),
  540. smalltalk.HLConfirmation);
  541. smalltalk.addMethod(
  542. smalltalk.method({
  543. selector: "cancel",
  544. fn: function (){
  545. var self=this;
  546. return smalltalk.withContext(function($ctx1) {
  547. _st(_st(self)._cancelBlock())._value();
  548. _st(self)._remove();
  549. return self}, function($ctx1) {$ctx1.fill(self,"cancel",{},smalltalk.HLConfirmation)})},
  550. messageSends: ["value", "cancelBlock", "remove"]}),
  551. smalltalk.HLConfirmation);
  552. smalltalk.addMethod(
  553. smalltalk.method({
  554. selector: "cancelBlock",
  555. fn: function (){
  556. var self=this;
  557. return smalltalk.withContext(function($ctx1) {
  558. var $2,$1;
  559. $2=self["@cancelBlock"];
  560. if(($receiver = $2) == nil || $receiver == undefined){
  561. $1=(function(){
  562. return smalltalk.withContext(function($ctx2) {
  563. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  564. } else {
  565. $1=$2;
  566. };
  567. return $1;
  568. }, function($ctx1) {$ctx1.fill(self,"cancelBlock",{},smalltalk.HLConfirmation)})},
  569. messageSends: ["ifNil:"]}),
  570. smalltalk.HLConfirmation);
  571. smalltalk.addMethod(
  572. smalltalk.method({
  573. selector: "cancelBlock:",
  574. fn: function (aBlock){
  575. var self=this;
  576. return smalltalk.withContext(function($ctx1) {
  577. self["@cancelBlock"]=aBlock;
  578. return self}, function($ctx1) {$ctx1.fill(self,"cancelBlock:",{aBlock:aBlock},smalltalk.HLConfirmation)})},
  579. messageSends: []}),
  580. smalltalk.HLConfirmation);
  581. smalltalk.addMethod(
  582. smalltalk.method({
  583. selector: "confirm",
  584. fn: function (){
  585. var self=this;
  586. return smalltalk.withContext(function($ctx1) {
  587. _st(_st(self)._actionBlock())._value();
  588. _st(self)._remove();
  589. return self}, function($ctx1) {$ctx1.fill(self,"confirm",{},smalltalk.HLConfirmation)})},
  590. messageSends: ["value", "actionBlock", "remove"]}),
  591. smalltalk.HLConfirmation);
  592. smalltalk.addMethod(
  593. smalltalk.method({
  594. selector: "confirmationString",
  595. fn: function (){
  596. var self=this;
  597. return smalltalk.withContext(function($ctx1) {
  598. var $2,$1;
  599. $2=self["@confirmationString"];
  600. if(($receiver = $2) == nil || $receiver == undefined){
  601. $1="Confirm";
  602. } else {
  603. $1=$2;
  604. };
  605. return $1;
  606. }, function($ctx1) {$ctx1.fill(self,"confirmationString",{},smalltalk.HLConfirmation)})},
  607. messageSends: ["ifNil:"]}),
  608. smalltalk.HLConfirmation);
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "confirmationString:",
  612. fn: function (aString){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. self["@confirmationString"]=aString;
  616. return self}, function($ctx1) {$ctx1.fill(self,"confirmationString:",{aString:aString},smalltalk.HLConfirmation)})},
  617. messageSends: []}),
  618. smalltalk.HLConfirmation);
  619. smalltalk.addMethod(
  620. smalltalk.method({
  621. selector: "remove",
  622. fn: function (){
  623. var self=this;
  624. return smalltalk.withContext(function($ctx1) {
  625. _st(_st(window)._jQuery_(".confirmation"))._removeClass_("active");
  626. _st((function(){
  627. return smalltalk.withContext(function($ctx2) {
  628. _st(_st(window)._jQuery_("#overlay"))._remove();
  629. return _st(_st(window)._jQuery_(".confirmation"))._remove();
  630. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  631. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLConfirmation)})},
  632. messageSends: ["removeClass:", "jQuery:", "valueWithTimeout:", "remove"]}),
  633. smalltalk.HLConfirmation);
  634. smalltalk.addMethod(
  635. smalltalk.method({
  636. selector: "renderContentOn:",
  637. fn: function (html){
  638. var self=this;
  639. var confirmButton;
  640. return smalltalk.withContext(function($ctx1) {
  641. var $1,$3,$5,$6,$7,$8,$4,$2;
  642. _st(_st(html)._div())._id_("overlay");
  643. $1=_st(html)._div();
  644. _st($1)._class_("confirmation");
  645. $2=_st($1)._with_((function(){
  646. return smalltalk.withContext(function($ctx2) {
  647. _st(_st(html)._span())._with_(_st(self)._confirmationString());
  648. $3=_st(html)._div();
  649. _st($3)._class_("buttons");
  650. $4=_st($3)._with_((function(){
  651. return smalltalk.withContext(function($ctx3) {
  652. $5=_st(html)._button();
  653. _st($5)._class_("button");
  654. _st($5)._with_("Cancel");
  655. $6=_st($5)._onClick_((function(){
  656. return smalltalk.withContext(function($ctx4) {
  657. return _st(self)._cancel();
  658. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  659. $6;
  660. $7=_st(html)._button();
  661. _st($7)._class_("button default");
  662. _st($7)._with_("Confirm");
  663. $8=_st($7)._onClick_((function(){
  664. return smalltalk.withContext(function($ctx4) {
  665. return _st(self)._confirm();
  666. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  667. confirmButton=$8;
  668. return confirmButton;
  669. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  670. return $4;
  671. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  672. _st(_st(confirmButton)._asJQuery())._focus();
  673. _st(_st(window)._jQuery_(".confirmation"))._addClass_("active");
  674. _st(self)._setupKeyBindings();
  675. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html,confirmButton:confirmButton},smalltalk.HLConfirmation)})},
  676. messageSends: ["id:", "div", "class:", "with:", "confirmationString", "span", "button", "onClick:", "cancel", "confirm", "focus", "asJQuery", "addClass:", "jQuery:", "setupKeyBindings"]}),
  677. smalltalk.HLConfirmation);
  678. smalltalk.addMethod(
  679. smalltalk.method({
  680. selector: "setupKeyBindings",
  681. fn: function (){
  682. var self=this;
  683. return smalltalk.withContext(function($ctx1) {
  684. var $1;
  685. _st(_st(window)._jQuery_(".confirmation"))._keyup_((function(e){
  686. return smalltalk.withContext(function($ctx2) {
  687. $1=_st(_st(e)._keyCode()).__eq((27));
  688. if(smalltalk.assert($1)){
  689. return _st(self)._cancel();
  690. };
  691. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  692. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLConfirmation)})},
  693. messageSends: ["keyup:", "ifTrue:", "cancel", "=", "keyCode", "jQuery:"]}),
  694. smalltalk.HLConfirmation);
  695. smalltalk.addClass('HLDebugger', smalltalk.HLWidget, [], 'Helios-Core');
  696. smalltalk.addClass('HLFocusableWidget', smalltalk.HLWidget, [], 'Helios-Core');
  697. smalltalk.addMethod(
  698. smalltalk.method({
  699. selector: "blur",
  700. fn: function (){
  701. var self=this;
  702. return smalltalk.withContext(function($ctx1) {
  703. _st(_st(_st(self)._wrapper())._asJQuery())._blur();
  704. return self}, function($ctx1) {$ctx1.fill(self,"blur",{},smalltalk.HLFocusableWidget)})},
  705. messageSends: ["blur", "asJQuery", "wrapper"]}),
  706. smalltalk.HLFocusableWidget);
  707. smalltalk.addMethod(
  708. smalltalk.method({
  709. selector: "canHaveFocus",
  710. fn: function (){
  711. var self=this;
  712. return smalltalk.withContext(function($ctx1) {
  713. return true;
  714. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLFocusableWidget)})},
  715. messageSends: []}),
  716. smalltalk.HLFocusableWidget);
  717. smalltalk.addMethod(
  718. smalltalk.method({
  719. selector: "focus",
  720. fn: function (){
  721. var self=this;
  722. return smalltalk.withContext(function($ctx1) {
  723. _st(_st(_st(self)._wrapper())._asJQuery())._focus();
  724. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLFocusableWidget)})},
  725. messageSends: ["focus", "asJQuery", "wrapper"]}),
  726. smalltalk.HLFocusableWidget);
  727. smalltalk.addMethod(
  728. smalltalk.method({
  729. selector: "focusClass",
  730. fn: function (){
  731. var self=this;
  732. return smalltalk.withContext(function($ctx1) {
  733. return "focused";
  734. }, function($ctx1) {$ctx1.fill(self,"focusClass",{},smalltalk.HLFocusableWidget)})},
  735. messageSends: []}),
  736. smalltalk.HLFocusableWidget);
  737. smalltalk.addMethod(
  738. smalltalk.method({
  739. selector: "hasFocus",
  740. fn: function (){
  741. var self=this;
  742. return smalltalk.withContext(function($ctx1) {
  743. var $1;
  744. $1=_st(_st(_st(self)._wrapper())._notNil())._and_((function(){
  745. return smalltalk.withContext(function($ctx2) {
  746. return _st(_st(_st(self)._wrapper())._asJQuery())._is_(":focus");
  747. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  748. return $1;
  749. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{},smalltalk.HLFocusableWidget)})},
  750. messageSends: ["and:", "is:", "asJQuery", "wrapper", "notNil"]}),
  751. smalltalk.HLFocusableWidget);
  752. smalltalk.addMethod(
  753. smalltalk.method({
  754. selector: "renderContentOn:",
  755. fn: function (html){
  756. var self=this;
  757. return smalltalk.withContext(function($ctx1) {
  758. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLFocusableWidget)})},
  759. messageSends: []}),
  760. smalltalk.HLFocusableWidget);
  761. smalltalk.addMethod(
  762. smalltalk.method({
  763. selector: "renderOn:",
  764. fn: function (html){
  765. var self=this;
  766. return smalltalk.withContext(function($ctx1) {
  767. var $1,$2,$3,$4;
  768. _st(self)._registerBindings();
  769. $1=_st(html)._div();
  770. _st($1)._class_("hl_widget");
  771. $2=_st($1)._yourself();
  772. self["@wrapper"]=$2;
  773. _st(self["@wrapper"])._with_((function(){
  774. return smalltalk.withContext(function($ctx2) {
  775. return _st(self)._renderContentOn_(html);
  776. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  777. $3=self["@wrapper"];
  778. _st($3)._at_put_("tabindex","0");
  779. _st($3)._onBlur_((function(){
  780. return smalltalk.withContext(function($ctx2) {
  781. return _st(_st(_st(self)._wrapper())._asJQuery())._removeClass_(_st(self)._focusClass());
  782. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  783. $4=_st($3)._onFocus_((function(){
  784. return smalltalk.withContext(function($ctx2) {
  785. return _st(_st(_st(self)._wrapper())._asJQuery())._addClass_(_st(self)._focusClass());
  786. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  787. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLFocusableWidget)})},
  788. messageSends: ["registerBindings", "class:", "div", "yourself", "with:", "renderContentOn:", "at:put:", "onBlur:", "removeClass:", "focusClass", "asJQuery", "wrapper", "onFocus:", "addClass:"]}),
  789. smalltalk.HLFocusableWidget);
  790. smalltalk.addClass('HLListWidget', smalltalk.HLFocusableWidget, ['items', 'selectedItem', 'mapping'], 'Helios-Core');
  791. smalltalk.addMethod(
  792. smalltalk.method({
  793. selector: "activateFirstListItem",
  794. fn: function (){
  795. var self=this;
  796. return smalltalk.withContext(function($ctx1) {
  797. _st(self)._activateListItem_(_st(window)._jQuery_(_st(_st(_st(self["@wrapper"])._asJQuery())._find_("li.inactive"))._get_((0))));
  798. return self}, function($ctx1) {$ctx1.fill(self,"activateFirstListItem",{},smalltalk.HLListWidget)})},
  799. messageSends: ["activateListItem:", "jQuery:", "get:", "find:", "asJQuery"]}),
  800. smalltalk.HLListWidget);
  801. smalltalk.addMethod(
  802. smalltalk.method({
  803. selector: "activateItem:",
  804. fn: function (anObject){
  805. var self=this;
  806. return smalltalk.withContext(function($ctx1) {
  807. var $1;
  808. var $early={};
  809. try {
  810. _st(self)._activateListItem_(_st(_st(self["@mapping"])._at_ifAbsent_(anObject,(function(){
  811. return smalltalk.withContext(function($ctx2) {
  812. $1=self;
  813. throw $early=[$1];
  814. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  815. return self}
  816. catch(e) {if(e===$early)return e[0]; throw e}
  817. }, function($ctx1) {$ctx1.fill(self,"activateItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  818. messageSends: ["activateListItem:", "asJQuery", "at:ifAbsent:"]}),
  819. smalltalk.HLListWidget);
  820. smalltalk.addMethod(
  821. smalltalk.method({
  822. selector: "activateListItem:",
  823. fn: function (aListItem){
  824. var self=this;
  825. var item;
  826. return smalltalk.withContext(function($ctx1) {
  827. var $1,$2,$3;
  828. $1=_st(aListItem)._get_((0));
  829. if(($receiver = $1) == nil || $receiver == undefined){
  830. $2=self;
  831. return $2;
  832. } else {
  833. $1;
  834. };
  835. _st(_st(_st(aListItem)._parent())._children())._removeClass_("active");
  836. _st(aListItem)._addClass_("active");
  837. _st(self)._ensureVisible_(aListItem);
  838. item=_st(_st(self)._items())._at_(_st(_st(aListItem)._attr_("list-data"))._asNumber());
  839. $3=_st(_st(self)._selectedItem()).__eq_eq(item);
  840. if(! smalltalk.assert($3)){
  841. _st(self)._selectItem_(item);
  842. };
  843. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{aListItem:aListItem,item:item},smalltalk.HLListWidget)})},
  844. messageSends: ["ifNil:", "get:", "removeClass:", "children", "parent", "addClass:", "ensureVisible:", "at:", "asNumber", "attr:", "items", "ifFalse:", "selectItem:", "==", "selectedItem"]}),
  845. smalltalk.HLListWidget);
  846. smalltalk.addMethod(
  847. smalltalk.method({
  848. selector: "activateNextListItem",
  849. fn: function (){
  850. var self=this;
  851. return smalltalk.withContext(function($ctx1) {
  852. _st(self)._activateListItem_(_st(_st(window)._jQuery_(".focused .nav-pills .active"))._next());
  853. _st(_st(_st(window)._jQuery_(".focused .nav-pills .active"))._get())._ifEmpty_((function(){
  854. return smalltalk.withContext(function($ctx2) {
  855. return _st(self)._activateFirstListItem();
  856. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  857. return self}, function($ctx1) {$ctx1.fill(self,"activateNextListItem",{},smalltalk.HLListWidget)})},
  858. messageSends: ["activateListItem:", "next", "jQuery:", "ifEmpty:", "activateFirstListItem", "get"]}),
  859. smalltalk.HLListWidget);
  860. smalltalk.addMethod(
  861. smalltalk.method({
  862. selector: "activatePreviousListItem",
  863. fn: function (){
  864. var self=this;
  865. return smalltalk.withContext(function($ctx1) {
  866. _st(self)._activateListItem_(_st(_st(window)._jQuery_(".focused .nav-pills .active"))._prev());
  867. return self}, function($ctx1) {$ctx1.fill(self,"activatePreviousListItem",{},smalltalk.HLListWidget)})},
  868. messageSends: ["activateListItem:", "prev", "jQuery:"]}),
  869. smalltalk.HLListWidget);
  870. smalltalk.addMethod(
  871. smalltalk.method({
  872. selector: "cssClassForItem:",
  873. fn: function (anObject){
  874. var self=this;
  875. return smalltalk.withContext(function($ctx1) {
  876. var $2,$1;
  877. $2=_st(_st(self)._selectedItem()).__eq(anObject);
  878. if(smalltalk.assert($2)){
  879. $1="active";
  880. } else {
  881. $1="inactive";
  882. };
  883. return $1;
  884. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  885. messageSends: ["ifTrue:ifFalse:", "=", "selectedItem"]}),
  886. smalltalk.HLListWidget);
  887. smalltalk.addMethod(
  888. smalltalk.method({
  889. selector: "defaultItems",
  890. fn: function (){
  891. var self=this;
  892. return smalltalk.withContext(function($ctx1) {
  893. var $1;
  894. $1=[];
  895. return $1;
  896. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLListWidget)})},
  897. messageSends: []}),
  898. smalltalk.HLListWidget);
  899. smalltalk.addMethod(
  900. smalltalk.method({
  901. selector: "ensureVisible:",
  902. fn: function (aListItem){
  903. var self=this;
  904. var perent,position;
  905. return smalltalk.withContext(function($ctx1) {
  906. var $1,$2;
  907. position=_st(self)._positionOf_(aListItem);
  908. parent=_st(aListItem)._parent();
  909. $1=_st(_st(_st(aListItem)._position())._top()).__lt((0));
  910. if(smalltalk.assert($1)){
  911. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(_st(aListItem)._position())._top())).__minus((10)));
  912. };
  913. $2=_st(_st(_st(_st(aListItem)._position())._top()).__plus(_st(aListItem)._height())).__gt(_st(parent)._height());
  914. if(smalltalk.assert($2)){
  915. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(aListItem)._height())).__minus(_st(_st(parent)._height()).__minus(_st(_st(aListItem)._position())._top()))).__plus((10)));
  916. };
  917. return self}, function($ctx1) {$ctx1.fill(self,"ensureVisible:",{aListItem:aListItem,perent:perent,position:position},smalltalk.HLListWidget)})},
  918. messageSends: ["positionOf:", "parent", "ifTrue:", "scrollTop:", "-", "+", "top", "position", "scrollTop", "get:", "<", "height", ">"]}),
  919. smalltalk.HLListWidget);
  920. smalltalk.addMethod(
  921. smalltalk.method({
  922. selector: "focus",
  923. fn: function (){
  924. var self=this;
  925. return smalltalk.withContext(function($ctx1) {
  926. var $1,$2;
  927. smalltalk.HLFocusableWidget.fn.prototype._focus.apply(_st(self), []);
  928. $1=_st(_st(self)._items())._isEmpty();
  929. if(! smalltalk.assert($1)){
  930. $2=_st(self)._selectedItem();
  931. if(($receiver = $2) == nil || $receiver == undefined){
  932. _st(self)._activateFirstListItem();
  933. } else {
  934. $2;
  935. };
  936. };
  937. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLListWidget)})},
  938. messageSends: ["focus", "ifFalse:", "ifNil:", "activateFirstListItem", "selectedItem", "isEmpty", "items"]}),
  939. smalltalk.HLListWidget);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "iconForItem:",
  943. fn: function (anObject){
  944. var self=this;
  945. return smalltalk.withContext(function($ctx1) {
  946. return "";
  947. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  948. messageSends: []}),
  949. smalltalk.HLListWidget);
  950. smalltalk.addMethod(
  951. smalltalk.method({
  952. selector: "initialize",
  953. fn: function (){
  954. var self=this;
  955. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  956. return smalltalk.withContext(function($ctx1) {
  957. smalltalk.HLFocusableWidget.fn.prototype._initialize.apply(_st(self), []);
  958. self["@mapping"]=_st($Dictionary())._new();
  959. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLListWidget)})},
  960. messageSends: ["initialize", "new"]}),
  961. smalltalk.HLListWidget);
  962. smalltalk.addMethod(
  963. smalltalk.method({
  964. selector: "items",
  965. fn: function (){
  966. var self=this;
  967. return smalltalk.withContext(function($ctx1) {
  968. var $2,$1;
  969. $2=self["@items"];
  970. if(($receiver = $2) == nil || $receiver == undefined){
  971. self["@items"]=_st(self)._defaultItems();
  972. $1=self["@items"];
  973. } else {
  974. $1=$2;
  975. };
  976. return $1;
  977. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLListWidget)})},
  978. messageSends: ["ifNil:", "defaultItems"]}),
  979. smalltalk.HLListWidget);
  980. smalltalk.addMethod(
  981. smalltalk.method({
  982. selector: "items:",
  983. fn: function (aCollection){
  984. var self=this;
  985. return smalltalk.withContext(function($ctx1) {
  986. self["@items"]=aCollection;
  987. return self}, function($ctx1) {$ctx1.fill(self,"items:",{aCollection:aCollection},smalltalk.HLListWidget)})},
  988. messageSends: []}),
  989. smalltalk.HLListWidget);
  990. smalltalk.addMethod(
  991. smalltalk.method({
  992. selector: "positionOf:",
  993. fn: function (aListItem){
  994. var self=this;
  995. return smalltalk.withContext(function($ctx1) {
  996. return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1
  997. ;
  998. return self}, function($ctx1) {$ctx1.fill(self,"positionOf:",{aListItem:aListItem},smalltalk.HLListWidget)})},
  999. messageSends: []}),
  1000. smalltalk.HLListWidget);
  1001. smalltalk.addMethod(
  1002. smalltalk.method({
  1003. selector: "refresh",
  1004. fn: function (){
  1005. var self=this;
  1006. return smalltalk.withContext(function($ctx1) {
  1007. var $1;
  1008. var $early={};
  1009. try {
  1010. smalltalk.HLFocusableWidget.fn.prototype._refresh.apply(_st(self), []);
  1011. _st(self)._ensureVisible_(_st(_st(self["@mapping"])._at_ifAbsent_(_st(self)._selectedItem(),(function(){
  1012. return smalltalk.withContext(function($ctx2) {
  1013. $1=self;
  1014. throw $early=[$1];
  1015. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  1016. return self}
  1017. catch(e) {if(e===$early)return e[0]; throw e}
  1018. }, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLListWidget)})},
  1019. messageSends: ["refresh", "ensureVisible:", "asJQuery", "at:ifAbsent:", "selectedItem"]}),
  1020. smalltalk.HLListWidget);
  1021. smalltalk.addMethod(
  1022. smalltalk.method({
  1023. selector: "registerMappingFrom:to:",
  1024. fn: function (anObject,aTag){
  1025. var self=this;
  1026. return smalltalk.withContext(function($ctx1) {
  1027. _st(self["@mapping"])._at_put_(anObject,aTag);
  1028. return self}, function($ctx1) {$ctx1.fill(self,"registerMappingFrom:to:",{anObject:anObject,aTag:aTag},smalltalk.HLListWidget)})},
  1029. messageSends: ["at:put:"]}),
  1030. smalltalk.HLListWidget);
  1031. smalltalk.addMethod(
  1032. smalltalk.method({
  1033. selector: "renderButtonsOn:",
  1034. fn: function (html){
  1035. var self=this;
  1036. return smalltalk.withContext(function($ctx1) {
  1037. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLListWidget)})},
  1038. messageSends: []}),
  1039. smalltalk.HLListWidget);
  1040. smalltalk.addMethod(
  1041. smalltalk.method({
  1042. selector: "renderContentOn:",
  1043. fn: function (html){
  1044. var self=this;
  1045. return smalltalk.withContext(function($ctx1) {
  1046. var $1,$2,$3,$4;
  1047. $1=_st(html)._ul();
  1048. _st($1)._class_("nav nav-pills nav-stacked");
  1049. $2=_st($1)._with_((function(){
  1050. return smalltalk.withContext(function($ctx2) {
  1051. return _st(self)._renderListOn_(html);
  1052. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1053. $3=_st(html)._div();
  1054. _st($3)._class_("pane_actions form-actions");
  1055. $4=_st($3)._with_((function(){
  1056. return smalltalk.withContext(function($ctx2) {
  1057. return _st(self)._renderButtonsOn_(html);
  1058. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1059. _st(self)._setupKeyBindings();
  1060. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLListWidget)})},
  1061. messageSends: ["class:", "ul", "with:", "renderListOn:", "div", "renderButtonsOn:", "setupKeyBindings"]}),
  1062. smalltalk.HLListWidget);
  1063. smalltalk.addMethod(
  1064. smalltalk.method({
  1065. selector: "renderItem:on:",
  1066. fn: function (anObject,html){
  1067. var self=this;
  1068. var li;
  1069. return smalltalk.withContext(function($ctx1) {
  1070. var $1,$3,$4,$2;
  1071. li=_st(html)._li();
  1072. _st(self)._registerMappingFrom_to_(anObject,li);
  1073. $1=li;
  1074. _st($1)._class_(_st(self)._cssClassForItem_(anObject));
  1075. _st($1)._at_put_("list-data",_st(_st(_st(self)._items())._indexOf_(anObject))._asString());
  1076. $2=_st($1)._with_((function(){
  1077. return smalltalk.withContext(function($ctx2) {
  1078. $3=_st(html)._a();
  1079. _st($3)._with_((function(){
  1080. return smalltalk.withContext(function($ctx3) {
  1081. _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(anObject));
  1082. return _st(self)._renderItemLabel_on_(anObject,html);
  1083. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1084. $4=_st($3)._onClick_((function(){
  1085. return smalltalk.withContext(function($ctx3) {
  1086. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1087. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1088. return $4;
  1089. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1090. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{anObject:anObject,html:html,li:li},smalltalk.HLListWidget)})},
  1091. messageSends: ["li", "registerMappingFrom:to:", "class:", "cssClassForItem:", "at:put:", "asString", "indexOf:", "items", "with:", "iconForItem:", "tag:", "renderItemLabel:on:", "a", "onClick:", "activateListItem:", "asJQuery"]}),
  1092. smalltalk.HLListWidget);
  1093. smalltalk.addMethod(
  1094. smalltalk.method({
  1095. selector: "renderItemLabel:on:",
  1096. fn: function (anObject,html){
  1097. var self=this;
  1098. return smalltalk.withContext(function($ctx1) {
  1099. _st(html)._with_(_st(anObject)._asString());
  1100. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{anObject:anObject,html:html},smalltalk.HLListWidget)})},
  1101. messageSends: ["with:", "asString"]}),
  1102. smalltalk.HLListWidget);
  1103. smalltalk.addMethod(
  1104. smalltalk.method({
  1105. selector: "renderListOn:",
  1106. fn: function (html){
  1107. var self=this;
  1108. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1109. return smalltalk.withContext(function($ctx1) {
  1110. self["@mapping"]=_st($Dictionary())._new();
  1111. _st(_st(self)._items())._do_((function(each){
  1112. return smalltalk.withContext(function($ctx2) {
  1113. return _st(self)._renderItem_on_(each,html);
  1114. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1115. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLListWidget)})},
  1116. messageSends: ["new", "do:", "renderItem:on:", "items"]}),
  1117. smalltalk.HLListWidget);
  1118. smalltalk.addMethod(
  1119. smalltalk.method({
  1120. selector: "selectItem:",
  1121. fn: function (anObject){
  1122. var self=this;
  1123. return smalltalk.withContext(function($ctx1) {
  1124. _st(self)._selectedItem_(anObject);
  1125. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1126. messageSends: ["selectedItem:"]}),
  1127. smalltalk.HLListWidget);
  1128. smalltalk.addMethod(
  1129. smalltalk.method({
  1130. selector: "selectedItem",
  1131. fn: function (){
  1132. var self=this;
  1133. return smalltalk.withContext(function($ctx1) {
  1134. var $1;
  1135. $1=self["@selectedItem"];
  1136. return $1;
  1137. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLListWidget)})},
  1138. messageSends: []}),
  1139. smalltalk.HLListWidget);
  1140. smalltalk.addMethod(
  1141. smalltalk.method({
  1142. selector: "selectedItem:",
  1143. fn: function (anObject){
  1144. var self=this;
  1145. return smalltalk.withContext(function($ctx1) {
  1146. self["@selectedItem"]=anObject;
  1147. return self}, function($ctx1) {$ctx1.fill(self,"selectedItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1148. messageSends: []}),
  1149. smalltalk.HLListWidget);
  1150. smalltalk.addMethod(
  1151. smalltalk.method({
  1152. selector: "setupKeyBindings",
  1153. fn: function (){
  1154. var self=this;
  1155. var active,interval,delay,repeatInterval;
  1156. return smalltalk.withContext(function($ctx1) {
  1157. var $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11;
  1158. active=false;
  1159. repeatInterval=(70);
  1160. _st(_st(_st(self)._wrapper())._asJQuery())._unbind_("keydown");
  1161. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1162. return smalltalk.withContext(function($ctx2) {
  1163. $1=_st(_st(_st(e)._which()).__eq((38)))._and_((function(){
  1164. return smalltalk.withContext(function($ctx3) {
  1165. return _st(active).__eq(false);
  1166. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1167. if(smalltalk.assert($1)){
  1168. active=true;
  1169. active;
  1170. _st(self)._activatePreviousListItem();
  1171. delay=_st((function(){
  1172. return smalltalk.withContext(function($ctx3) {
  1173. interval=_st((function(){
  1174. return smalltalk.withContext(function($ctx4) {
  1175. $2=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1176. if(smalltalk.assert($2)){
  1177. return _st(self)._activatePreviousListItem();
  1178. } else {
  1179. active=false;
  1180. active;
  1181. $3=interval;
  1182. if(($receiver = $3) == nil || $receiver == undefined){
  1183. $3;
  1184. } else {
  1185. _st(interval)._clearInterval();
  1186. };
  1187. $4=delay;
  1188. if(($receiver = $4) == nil || $receiver == undefined){
  1189. return $4;
  1190. } else {
  1191. return _st(delay)._clearTimeout();
  1192. };
  1193. };
  1194. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}))._valueWithInterval_(repeatInterval);
  1195. return interval;
  1196. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  1197. delay;
  1198. };
  1199. $5=_st(_st(_st(e)._which()).__eq((40)))._and_((function(){
  1200. return smalltalk.withContext(function($ctx3) {
  1201. return _st(active).__eq(false);
  1202. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1203. if(smalltalk.assert($5)){
  1204. active=true;
  1205. active;
  1206. _st(self)._activateNextListItem();
  1207. delay=_st((function(){
  1208. return smalltalk.withContext(function($ctx3) {
  1209. interval=_st((function(){
  1210. return smalltalk.withContext(function($ctx4) {
  1211. $6=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1212. if(smalltalk.assert($6)){
  1213. return _st(self)._activateNextListItem();
  1214. } else {
  1215. active=false;
  1216. active;
  1217. $7=interval;
  1218. if(($receiver = $7) == nil || $receiver == undefined){
  1219. $7;
  1220. } else {
  1221. _st(interval)._clearInterval();
  1222. };
  1223. $8=delay;
  1224. if(($receiver = $8) == nil || $receiver == undefined){
  1225. return $8;
  1226. } else {
  1227. return _st(delay)._clearTimeout();
  1228. };
  1229. };
  1230. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}))._valueWithInterval_(repeatInterval);
  1231. return interval;
  1232. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  1233. return delay;
  1234. };
  1235. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1236. _st(_st(_st(self)._wrapper())._asJQuery())._keyup_((function(e){
  1237. return smalltalk.withContext(function($ctx2) {
  1238. $9=active;
  1239. if(smalltalk.assert($9)){
  1240. active=false;
  1241. active;
  1242. $10=interval;
  1243. if(($receiver = $10) == nil || $receiver == undefined){
  1244. $10;
  1245. } else {
  1246. _st(interval)._clearInterval();
  1247. };
  1248. $11=delay;
  1249. if(($receiver = $11) == nil || $receiver == undefined){
  1250. return $11;
  1251. } else {
  1252. return _st(delay)._clearTimeout();
  1253. };
  1254. };
  1255. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1256. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{active:active,interval:interval,delay:delay,repeatInterval:repeatInterval},smalltalk.HLListWidget)})},
  1257. messageSends: ["unbind:", "asJQuery", "wrapper", "keydown:", "ifTrue:", "activatePreviousListItem", "valueWithTimeout:", "valueWithInterval:", "ifTrue:ifFalse:", "ifNotNil:", "clearInterval", "clearTimeout", "hasClass:", "focusClass", "and:", "=", "which", "activateNextListItem", "keyup:"]}),
  1258. smalltalk.HLListWidget);
  1259. smalltalk.addClass('HLNavigationListWidget', smalltalk.HLListWidget, ['previous', 'next'], 'Helios-Core');
  1260. smalltalk.addMethod(
  1261. smalltalk.method({
  1262. selector: "next",
  1263. fn: function (){
  1264. var self=this;
  1265. return smalltalk.withContext(function($ctx1) {
  1266. var $1;
  1267. $1=self["@next"];
  1268. return $1;
  1269. }, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.HLNavigationListWidget)})},
  1270. messageSends: []}),
  1271. smalltalk.HLNavigationListWidget);
  1272. smalltalk.addMethod(
  1273. smalltalk.method({
  1274. selector: "next:",
  1275. fn: function (aWidget){
  1276. var self=this;
  1277. return smalltalk.withContext(function($ctx1) {
  1278. var $1;
  1279. self["@next"]=aWidget;
  1280. $1=_st(_st(aWidget)._previous()).__eq(self);
  1281. if(! smalltalk.assert($1)){
  1282. _st(aWidget)._previous_(self);
  1283. };
  1284. return self}, function($ctx1) {$ctx1.fill(self,"next:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1285. messageSends: ["ifFalse:", "previous:", "=", "previous"]}),
  1286. smalltalk.HLNavigationListWidget);
  1287. smalltalk.addMethod(
  1288. smalltalk.method({
  1289. selector: "nextFocus",
  1290. fn: function (){
  1291. var self=this;
  1292. return smalltalk.withContext(function($ctx1) {
  1293. var $1;
  1294. $1=_st(self)._next();
  1295. if(($receiver = $1) == nil || $receiver == undefined){
  1296. $1;
  1297. } else {
  1298. _st(_st(self)._next())._focus();
  1299. };
  1300. return self}, function($ctx1) {$ctx1.fill(self,"nextFocus",{},smalltalk.HLNavigationListWidget)})},
  1301. messageSends: ["ifNotNil:", "focus", "next"]}),
  1302. smalltalk.HLNavigationListWidget);
  1303. smalltalk.addMethod(
  1304. smalltalk.method({
  1305. selector: "previous",
  1306. fn: function (){
  1307. var self=this;
  1308. return smalltalk.withContext(function($ctx1) {
  1309. var $1;
  1310. $1=self["@previous"];
  1311. return $1;
  1312. }, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLNavigationListWidget)})},
  1313. messageSends: []}),
  1314. smalltalk.HLNavigationListWidget);
  1315. smalltalk.addMethod(
  1316. smalltalk.method({
  1317. selector: "previous:",
  1318. fn: function (aWidget){
  1319. var self=this;
  1320. return smalltalk.withContext(function($ctx1) {
  1321. var $1;
  1322. self["@previous"]=aWidget;
  1323. $1=_st(_st(aWidget)._next()).__eq(self);
  1324. if(! smalltalk.assert($1)){
  1325. _st(aWidget)._next_(self);
  1326. };
  1327. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1328. messageSends: ["ifFalse:", "next:", "=", "next"]}),
  1329. smalltalk.HLNavigationListWidget);
  1330. smalltalk.addMethod(
  1331. smalltalk.method({
  1332. selector: "previousFocus",
  1333. fn: function (){
  1334. var self=this;
  1335. return smalltalk.withContext(function($ctx1) {
  1336. var $1;
  1337. $1=_st(self)._previous();
  1338. if(($receiver = $1) == nil || $receiver == undefined){
  1339. $1;
  1340. } else {
  1341. _st(_st(self)._previous())._focus();
  1342. };
  1343. return self}, function($ctx1) {$ctx1.fill(self,"previousFocus",{},smalltalk.HLNavigationListWidget)})},
  1344. messageSends: ["ifNotNil:", "focus", "previous"]}),
  1345. smalltalk.HLNavigationListWidget);
  1346. smalltalk.addMethod(
  1347. smalltalk.method({
  1348. selector: "setupKeyBindings",
  1349. fn: function (){
  1350. var self=this;
  1351. return smalltalk.withContext(function($ctx1) {
  1352. var $1,$2;
  1353. smalltalk.HLListWidget.fn.prototype._setupKeyBindings.apply(_st(self), []);
  1354. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1355. return smalltalk.withContext(function($ctx2) {
  1356. $1=_st(_st(e)._which()).__eq((39));
  1357. if(smalltalk.assert($1)){
  1358. _st(self)._nextFocus();
  1359. };
  1360. $2=_st(_st(e)._which()).__eq((37));
  1361. if(smalltalk.assert($2)){
  1362. return _st(self)._previousFocus();
  1363. };
  1364. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1365. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLNavigationListWidget)})},
  1366. messageSends: ["setupKeyBindings", "keydown:", "ifTrue:", "nextFocus", "=", "which", "previousFocus", "asJQuery", "wrapper"]}),
  1367. smalltalk.HLNavigationListWidget);
  1368. smalltalk.addClass('HLManager', smalltalk.HLWidget, ['tabs', 'activeTab', 'keyBinder', 'environment', 'history'], 'Helios-Core');
  1369. smalltalk.addMethod(
  1370. smalltalk.method({
  1371. selector: "activate:",
  1372. fn: function (aTab){
  1373. var self=this;
  1374. return smalltalk.withContext(function($ctx1) {
  1375. var $1,$2;
  1376. _st(_st(self)._keyBinder())._flushBindings();
  1377. _st(aTab)._registerBindings();
  1378. self["@activeTab"]=aTab;
  1379. $1=self;
  1380. _st($1)._refresh();
  1381. _st($1)._addToHistory_(aTab);
  1382. $2=_st($1)._show_(aTab);
  1383. return self}, function($ctx1) {$ctx1.fill(self,"activate:",{aTab:aTab},smalltalk.HLManager)})},
  1384. messageSends: ["flushBindings", "keyBinder", "registerBindings", "refresh", "addToHistory:", "show:"]}),
  1385. smalltalk.HLManager);
  1386. smalltalk.addMethod(
  1387. smalltalk.method({
  1388. selector: "activeTab",
  1389. fn: function (){
  1390. var self=this;
  1391. return smalltalk.withContext(function($ctx1) {
  1392. var $1;
  1393. $1=self["@activeTab"];
  1394. return $1;
  1395. }, function($ctx1) {$ctx1.fill(self,"activeTab",{},smalltalk.HLManager)})},
  1396. messageSends: []}),
  1397. smalltalk.HLManager);
  1398. smalltalk.addMethod(
  1399. smalltalk.method({
  1400. selector: "addTab:",
  1401. fn: function (aTab){
  1402. var self=this;
  1403. return smalltalk.withContext(function($ctx1) {
  1404. _st(_st(self)._tabs())._add_(aTab);
  1405. _st(self)._activate_(aTab);
  1406. return self}, function($ctx1) {$ctx1.fill(self,"addTab:",{aTab:aTab},smalltalk.HLManager)})},
  1407. messageSends: ["add:", "tabs", "activate:"]}),
  1408. smalltalk.HLManager);
  1409. smalltalk.addMethod(
  1410. smalltalk.method({
  1411. selector: "addToHistory:",
  1412. fn: function (aTab){
  1413. var self=this;
  1414. return smalltalk.withContext(function($ctx1) {
  1415. _st(self)._removeFromHistory_(aTab);
  1416. _st(_st(self)._history())._add_(aTab);
  1417. return self}, function($ctx1) {$ctx1.fill(self,"addToHistory:",{aTab:aTab},smalltalk.HLManager)})},
  1418. messageSends: ["removeFromHistory:", "add:", "history"]}),
  1419. smalltalk.HLManager);
  1420. smalltalk.addMethod(
  1421. smalltalk.method({
  1422. selector: "confirm:ifFalse:",
  1423. fn: function (aString,aBlock){
  1424. var self=this;
  1425. function $HLConfirmation(){return smalltalk.HLConfirmation||(typeof HLConfirmation=="undefined"?nil:HLConfirmation)}
  1426. return smalltalk.withContext(function($ctx1) {
  1427. var $1,$2;
  1428. $1=_st($HLConfirmation())._new();
  1429. _st($1)._confirmationString_(aString);
  1430. _st($1)._cancelBlock_(aBlock);
  1431. $2=_st($1)._yourself();
  1432. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  1433. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifFalse:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  1434. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "cancelBlock:", "yourself"]}),
  1435. smalltalk.HLManager);
  1436. smalltalk.addMethod(
  1437. smalltalk.method({
  1438. selector: "confirm:ifTrue:",
  1439. fn: function (aString,aBlock){
  1440. var self=this;
  1441. function $HLConfirmation(){return smalltalk.HLConfirmation||(typeof HLConfirmation=="undefined"?nil:HLConfirmation)}
  1442. return smalltalk.withContext(function($ctx1) {
  1443. var $1,$2;
  1444. $1=_st($HLConfirmation())._new();
  1445. _st($1)._confirmationString_(aString);
  1446. _st($1)._actionBlock_(aBlock);
  1447. $2=_st($1)._yourself();
  1448. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  1449. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  1450. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "actionBlock:", "yourself"]}),
  1451. smalltalk.HLManager);
  1452. smalltalk.addMethod(
  1453. smalltalk.method({
  1454. selector: "defaultEnvironment",
  1455. fn: function (){
  1456. var self=this;
  1457. function $Environment(){return smalltalk.Environment||(typeof Environment=="undefined"?nil:Environment)}
  1458. return smalltalk.withContext(function($ctx1) {
  1459. var $1,$2,$3;
  1460. $1=_st(window)._parent();
  1461. if(($receiver = $1) == nil || $receiver == undefined){
  1462. $2=_st($Environment())._new();
  1463. return $2;
  1464. } else {
  1465. $1;
  1466. };
  1467. $3=_st(_st(_st(_st(window)._parent())._at_("smalltalk"))._at_("Environment"))._new();
  1468. return $3;
  1469. }, function($ctx1) {$ctx1.fill(self,"defaultEnvironment",{},smalltalk.HLManager)})},
  1470. messageSends: ["ifNil:", "new", "parent", "at:"]}),
  1471. smalltalk.HLManager);
  1472. smalltalk.addMethod(
  1473. smalltalk.method({
  1474. selector: "environment",
  1475. fn: function (){
  1476. var self=this;
  1477. return smalltalk.withContext(function($ctx1) {
  1478. var $2,$1;
  1479. $2=self["@environment"];
  1480. if(($receiver = $2) == nil || $receiver == undefined){
  1481. self["@environment"]=_st(self)._defaultEnvironment();
  1482. $1=self["@environment"];
  1483. } else {
  1484. $1=$2;
  1485. };
  1486. return $1;
  1487. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLManager)})},
  1488. messageSends: ["ifNil:", "defaultEnvironment"]}),
  1489. smalltalk.HLManager);
  1490. smalltalk.addMethod(
  1491. smalltalk.method({
  1492. selector: "environment:",
  1493. fn: function (anEnvironment){
  1494. var self=this;
  1495. return smalltalk.withContext(function($ctx1) {
  1496. self["@environment"]=anEnvironment;
  1497. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLManager)})},
  1498. messageSends: []}),
  1499. smalltalk.HLManager);
  1500. smalltalk.addMethod(
  1501. smalltalk.method({
  1502. selector: "history",
  1503. fn: function (){
  1504. var self=this;
  1505. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1506. return smalltalk.withContext(function($ctx1) {
  1507. var $2,$1;
  1508. $2=self["@history"];
  1509. if(($receiver = $2) == nil || $receiver == undefined){
  1510. self["@history"]=_st($OrderedCollection())._new();
  1511. $1=self["@history"];
  1512. } else {
  1513. $1=$2;
  1514. };
  1515. return $1;
  1516. }, function($ctx1) {$ctx1.fill(self,"history",{},smalltalk.HLManager)})},
  1517. messageSends: ["ifNil:", "new"]}),
  1518. smalltalk.HLManager);
  1519. smalltalk.addMethod(
  1520. smalltalk.method({
  1521. selector: "history:",
  1522. fn: function (aCollection){
  1523. var self=this;
  1524. return smalltalk.withContext(function($ctx1) {
  1525. self["@history"]=aCollection;
  1526. return self}, function($ctx1) {$ctx1.fill(self,"history:",{aCollection:aCollection},smalltalk.HLManager)})},
  1527. messageSends: []}),
  1528. smalltalk.HLManager);
  1529. smalltalk.addMethod(
  1530. smalltalk.method({
  1531. selector: "initialize",
  1532. fn: function (){
  1533. var self=this;
  1534. return smalltalk.withContext(function($ctx1) {
  1535. smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  1536. _st(_st(self)._keyBinder())._setupEvents();
  1537. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager)})},
  1538. messageSends: ["initialize", "setupEvents", "keyBinder"]}),
  1539. smalltalk.HLManager);
  1540. smalltalk.addMethod(
  1541. smalltalk.method({
  1542. selector: "keyBinder",
  1543. fn: function (){
  1544. var self=this;
  1545. function $HLKeyBinder(){return smalltalk.HLKeyBinder||(typeof HLKeyBinder=="undefined"?nil:HLKeyBinder)}
  1546. return smalltalk.withContext(function($ctx1) {
  1547. var $2,$1;
  1548. $2=self["@keyBinder"];
  1549. if(($receiver = $2) == nil || $receiver == undefined){
  1550. self["@keyBinder"]=_st($HLKeyBinder())._new();
  1551. $1=self["@keyBinder"];
  1552. } else {
  1553. $1=$2;
  1554. };
  1555. return $1;
  1556. }, function($ctx1) {$ctx1.fill(self,"keyBinder",{},smalltalk.HLManager)})},
  1557. messageSends: ["ifNil:", "new"]}),
  1558. smalltalk.HLManager);
  1559. smalltalk.addMethod(
  1560. smalltalk.method({
  1561. selector: "refresh",
  1562. fn: function (){
  1563. var self=this;
  1564. return smalltalk.withContext(function($ctx1) {
  1565. _st(_st(window)._jQuery_(".navbar"))._remove();
  1566. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  1567. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLManager)})},
  1568. messageSends: ["remove", "jQuery:", "appendToJQuery:", "asJQuery"]}),
  1569. smalltalk.HLManager);
  1570. smalltalk.addMethod(
  1571. smalltalk.method({
  1572. selector: "removeActiveTab",
  1573. fn: function (){
  1574. var self=this;
  1575. return smalltalk.withContext(function($ctx1) {
  1576. _st(self)._removeTab_(_st(self)._activeTab());
  1577. return self}, function($ctx1) {$ctx1.fill(self,"removeActiveTab",{},smalltalk.HLManager)})},
  1578. messageSends: ["removeTab:", "activeTab"]}),
  1579. smalltalk.HLManager);
  1580. smalltalk.addMethod(
  1581. smalltalk.method({
  1582. selector: "removeFromHistory:",
  1583. fn: function (aTab){
  1584. var self=this;
  1585. return smalltalk.withContext(function($ctx1) {
  1586. _st(self)._history_(_st(_st(self)._history())._reject_((function(each){
  1587. return smalltalk.withContext(function($ctx2) {
  1588. return _st(each).__eq_eq(aTab);
  1589. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})));
  1590. return self}, function($ctx1) {$ctx1.fill(self,"removeFromHistory:",{aTab:aTab},smalltalk.HLManager)})},
  1591. messageSends: ["history:", "reject:", "==", "history"]}),
  1592. smalltalk.HLManager);
  1593. smalltalk.addMethod(
  1594. smalltalk.method({
  1595. selector: "removeTab:",
  1596. fn: function (aTab){
  1597. var self=this;
  1598. return smalltalk.withContext(function($ctx1) {
  1599. var $1,$2;
  1600. $1=_st(_st(self)._tabs())._includes_(aTab);
  1601. if(! smalltalk.assert($1)){
  1602. $2=self;
  1603. return $2;
  1604. };
  1605. _st(self)._removeFromHistory_(aTab);
  1606. _st(_st(self)._tabs())._remove_(aTab);
  1607. _st(_st(self)._keyBinder())._flushBindings();
  1608. _st(aTab)._remove();
  1609. _st(self)._refresh();
  1610. _st(_st(self)._history())._ifNotEmpty_((function(){
  1611. return smalltalk.withContext(function($ctx2) {
  1612. return _st(_st(_st(self)._history())._last())._activate();
  1613. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1614. return self}, function($ctx1) {$ctx1.fill(self,"removeTab:",{aTab:aTab},smalltalk.HLManager)})},
  1615. messageSends: ["ifFalse:", "includes:", "tabs", "removeFromHistory:", "remove:", "flushBindings", "keyBinder", "remove", "refresh", "ifNotEmpty:", "activate", "last", "history"]}),
  1616. smalltalk.HLManager);
  1617. smalltalk.addMethod(
  1618. smalltalk.method({
  1619. selector: "renderAddOn:",
  1620. fn: function (html){
  1621. var self=this;
  1622. function $HLWidget(){return smalltalk.HLWidget||(typeof HLWidget=="undefined"?nil:HLWidget)}
  1623. return smalltalk.withContext(function($ctx1) {
  1624. var $1,$3,$4,$5,$7,$8,$6,$2;
  1625. $1=_st(html)._li();
  1626. _st($1)._class_("dropdown");
  1627. $2=_st($1)._with_((function(){
  1628. return smalltalk.withContext(function($ctx2) {
  1629. $3=_st(html)._a();
  1630. _st($3)._class_("dropdown-toggle");
  1631. _st($3)._at_put_("data-toggle","dropdown");
  1632. $4=_st($3)._with_((function(){
  1633. return smalltalk.withContext(function($ctx3) {
  1634. _st(html)._with_("Open...");
  1635. return _st(_st(html)._tag_("b"))._class_("caret");
  1636. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1637. $4;
  1638. $5=_st(html)._ul();
  1639. _st($5)._class_("dropdown-menu");
  1640. $6=_st($5)._with_((function(){
  1641. return smalltalk.withContext(function($ctx3) {
  1642. return _st(_st(_st(_st($HLWidget())._withAllSubclasses())._select_((function(each){
  1643. return smalltalk.withContext(function($ctx4) {
  1644. return _st(each)._canBeOpenAsTab();
  1645. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})})))._sorted_((function(a,b){
  1646. return smalltalk.withContext(function($ctx4) {
  1647. return _st(_st(a)._tabPriority()).__lt(_st(b)._tabPriority());
  1648. }, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
  1649. return smalltalk.withContext(function($ctx4) {
  1650. return _st(_st(html)._li())._with_((function(){
  1651. return smalltalk.withContext(function($ctx5) {
  1652. $7=_st(html)._a();
  1653. _st($7)._with_(_st(each)._tabLabel());
  1654. $8=_st($7)._onClick_((function(){
  1655. return smalltalk.withContext(function($ctx6) {
  1656. return _st(each)._openAsTab();
  1657. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1658. return $8;
  1659. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1660. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})}));
  1661. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1662. return $6;
  1663. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1664. return self}, function($ctx1) {$ctx1.fill(self,"renderAddOn:",{html:html},smalltalk.HLManager)})},
  1665. messageSends: ["class:", "li", "with:", "a", "at:put:", "tag:", "ul", "do:", "tabLabel", "onClick:", "openAsTab", "sorted:", "<", "tabPriority", "select:", "canBeOpenAsTab", "withAllSubclasses"]}),
  1666. smalltalk.HLManager);
  1667. smalltalk.addMethod(
  1668. smalltalk.method({
  1669. selector: "renderContentOn:",
  1670. fn: function (html){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) {
  1673. var $1,$3,$4,$2;
  1674. $1=_st(html)._div();
  1675. _st($1)._class_("navbar navbar-fixed-top");
  1676. $2=_st($1)._with_((function(){
  1677. return smalltalk.withContext(function($ctx2) {
  1678. $3=_st(html)._div();
  1679. _st($3)._class_("navbar-inner");
  1680. $4=_st($3)._with_((function(){
  1681. return smalltalk.withContext(function($ctx3) {
  1682. return _st(self)._renderTabsOn_(html);
  1683. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1684. return $4;
  1685. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1686. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLManager)})},
  1687. messageSends: ["class:", "div", "with:", "renderTabsOn:"]}),
  1688. smalltalk.HLManager);
  1689. smalltalk.addMethod(
  1690. smalltalk.method({
  1691. selector: "renderTabsOn:",
  1692. fn: function (html){
  1693. var self=this;
  1694. return smalltalk.withContext(function($ctx1) {
  1695. var $1,$3,$4,$6,$5,$8,$9,$7,$2;
  1696. $1=_st(html)._ul();
  1697. _st($1)._class_("nav");
  1698. $2=_st($1)._with_((function(){
  1699. return smalltalk.withContext(function($ctx2) {
  1700. _st(_st(self)._tabs())._do_((function(each){
  1701. return smalltalk.withContext(function($ctx3) {
  1702. $3=_st(html)._li();
  1703. $4=$3;
  1704. $6=_st(each)._isActive();
  1705. if(smalltalk.assert($6)){
  1706. $5="active";
  1707. } else {
  1708. $5="inactive";
  1709. };
  1710. _st($4)._class_($5);
  1711. $7=_st($3)._with_((function(){
  1712. return smalltalk.withContext(function($ctx4) {
  1713. $8=_st(html)._a();
  1714. _st($8)._with_((function(){
  1715. return smalltalk.withContext(function($ctx5) {
  1716. _st(_st(_st(html)._tag_("i"))._class_("icon-remove"))._onClick_((function(){
  1717. return smalltalk.withContext(function($ctx6) {
  1718. return _st(self)._removeTab_(each);
  1719. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1720. return _st(html)._with_(_st(each)._displayLabel());
  1721. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1722. $9=_st($8)._onClick_((function(){
  1723. return smalltalk.withContext(function($ctx5) {
  1724. return _st(each)._activate();
  1725. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1726. return $9;
  1727. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  1728. return $7;
  1729. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  1730. return _st(self)._renderAddOn_(html);
  1731. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1732. return self}, function($ctx1) {$ctx1.fill(self,"renderTabsOn:",{html:html},smalltalk.HLManager)})},
  1733. messageSends: ["class:", "ul", "with:", "do:", "ifTrue:ifFalse:", "isActive", "li", "onClick:", "removeTab:", "tag:", "displayLabel", "a", "activate", "tabs", "renderAddOn:"]}),
  1734. smalltalk.HLManager);
  1735. smalltalk.addMethod(
  1736. smalltalk.method({
  1737. selector: "show:",
  1738. fn: function (aTab){
  1739. var self=this;
  1740. return smalltalk.withContext(function($ctx1) {
  1741. var $1,$2;
  1742. _st(_st(self)._tabs())._do_((function(each){
  1743. return smalltalk.withContext(function($ctx2) {
  1744. return _st(each)._hide();
  1745. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1746. $1=aTab;
  1747. _st($1)._show();
  1748. $2=_st($1)._focus();
  1749. return self}, function($ctx1) {$ctx1.fill(self,"show:",{aTab:aTab},smalltalk.HLManager)})},
  1750. messageSends: ["do:", "hide", "tabs", "show", "focus"]}),
  1751. smalltalk.HLManager);
  1752. smalltalk.addMethod(
  1753. smalltalk.method({
  1754. selector: "tabs",
  1755. fn: function (){
  1756. var self=this;
  1757. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1758. return smalltalk.withContext(function($ctx1) {
  1759. var $2,$1;
  1760. $2=self["@tabs"];
  1761. if(($receiver = $2) == nil || $receiver == undefined){
  1762. self["@tabs"]=_st($OrderedCollection())._new();
  1763. $1=self["@tabs"];
  1764. } else {
  1765. $1=$2;
  1766. };
  1767. return $1;
  1768. }, function($ctx1) {$ctx1.fill(self,"tabs",{},smalltalk.HLManager)})},
  1769. messageSends: ["ifNil:", "new"]}),
  1770. smalltalk.HLManager);
  1771. smalltalk.HLManager.klass.iVarNames = ['current'];
  1772. smalltalk.addMethod(
  1773. smalltalk.method({
  1774. selector: "current",
  1775. fn: function (){
  1776. var self=this;
  1777. return smalltalk.withContext(function($ctx1) {
  1778. var $2,$1;
  1779. $2=self["@current"];
  1780. if(($receiver = $2) == nil || $receiver == undefined){
  1781. self["@current"]=_st(_st(self)._basicNew())._initialize();
  1782. $1=self["@current"];
  1783. } else {
  1784. $1=$2;
  1785. };
  1786. return $1;
  1787. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLManager.klass)})},
  1788. messageSends: ["ifNil:", "initialize", "basicNew"]}),
  1789. smalltalk.HLManager.klass);
  1790. smalltalk.addMethod(
  1791. smalltalk.method({
  1792. selector: "initialize",
  1793. fn: function (){
  1794. var self=this;
  1795. return smalltalk.withContext(function($ctx1) {
  1796. _st(_st(self)._current())._appendToJQuery_(_st("body")._asJQuery());
  1797. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager.klass)})},
  1798. messageSends: ["appendToJQuery:", "asJQuery", "current"]}),
  1799. smalltalk.HLManager.klass);
  1800. smalltalk.addMethod(
  1801. smalltalk.method({
  1802. selector: "new",
  1803. fn: function (){
  1804. var self=this;
  1805. return smalltalk.withContext(function($ctx1) {
  1806. _st(self)._shouldNotImplement();
  1807. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLManager.klass)})},
  1808. messageSends: ["shouldNotImplement"]}),
  1809. smalltalk.HLManager.klass);
  1810. smalltalk.addClass('HLSUnit', smalltalk.HLWidget, [], 'Helios-Core');
  1811. smalltalk.addMethod(
  1812. smalltalk.method({
  1813. selector: "canBeOpenAsTab",
  1814. fn: function (){
  1815. var self=this;
  1816. return smalltalk.withContext(function($ctx1) {
  1817. return true;
  1818. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLSUnit.klass)})},
  1819. messageSends: []}),
  1820. smalltalk.HLSUnit.klass);
  1821. smalltalk.addMethod(
  1822. smalltalk.method({
  1823. selector: "tabLabel",
  1824. fn: function (){
  1825. var self=this;
  1826. return smalltalk.withContext(function($ctx1) {
  1827. return "SUnit";
  1828. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLSUnit.klass)})},
  1829. messageSends: []}),
  1830. smalltalk.HLSUnit.klass);
  1831. smalltalk.addMethod(
  1832. smalltalk.method({
  1833. selector: "tabPriority",
  1834. fn: function (){
  1835. var self=this;
  1836. return smalltalk.withContext(function($ctx1) {
  1837. var $1;
  1838. $1=(1000);
  1839. return $1;
  1840. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLSUnit.klass)})},
  1841. messageSends: []}),
  1842. smalltalk.HLSUnit.klass);
  1843. smalltalk.addClass('HLTranscript', smalltalk.HLWidget, [], 'Helios-Core');
  1844. smalltalk.addMethod(
  1845. smalltalk.method({
  1846. selector: "canBeOpenAsTab",
  1847. fn: function (){
  1848. var self=this;
  1849. return smalltalk.withContext(function($ctx1) {
  1850. return true;
  1851. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLTranscript.klass)})},
  1852. messageSends: []}),
  1853. smalltalk.HLTranscript.klass);
  1854. smalltalk.addMethod(
  1855. smalltalk.method({
  1856. selector: "tabLabel",
  1857. fn: function (){
  1858. var self=this;
  1859. return smalltalk.withContext(function($ctx1) {
  1860. return "Transcript";
  1861. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLTranscript.klass)})},
  1862. messageSends: []}),
  1863. smalltalk.HLTranscript.klass);
  1864. smalltalk.addMethod(
  1865. smalltalk.method({
  1866. selector: "tabPriority",
  1867. fn: function (){
  1868. var self=this;
  1869. return smalltalk.withContext(function($ctx1) {
  1870. var $1;
  1871. $1=(600);
  1872. return $1;
  1873. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLTranscript.klass)})},
  1874. messageSends: []}),
  1875. smalltalk.HLTranscript.klass);