You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(124) |
Jun
(201) |
Jul
(168) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
---|
From: Richard K. <ric...@us...> - 2005-07-26 21:41:03
|
Update of /cvsroot/actionstep/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19032 Modified Files: README Log Message: added debugging info Index: README =================================================================== RCS file: /cvsroot/actionstep/actionstep/README,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README 26 Jul 2005 21:22:18 -0000 1.5 --- README 26 Jul 2005 21:40:54 -0000 1.6 *************** *** 67,70 **** --- 67,88 ---- mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 / -pack org/actionstep org/actionstep/test/ASTestMain -main + + == Debugging == + + To debug your ActionStep code if you have debugging enabled (see + above) there is a handy Ruby script (debug) in the root directory + of ActionStep's directory. To download Ruby see: + + http://www.ruby-lang.org + + And then to run this script just open a terminal window and do: + + ruby debug + + Then start your ActionStep project and it will connect (over a + TCP socket) to the Ruby debug process and start sending your + TRACE statements to it. Note that we are using TRACE (all caps) + rather than the Macromedia trace (lower case) because MTASC lets + you compile those statements out with the above method. == License == |
From: Richard K. <ric...@us...> - 2005-07-26 21:35:30
|
Update of /cvsroot/actionstep/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17433 Modified Files: build Log Message: ready pre-release Index: build =================================================================== RCS file: /cvsroot/actionstep/actionstep/build,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build 22 May 2005 03:58:01 -0000 1.3 --- build 26 Jul 2005 21:35:22 -0000 1.4 *************** *** 1,3 **** ! #!/usr/bin/ruby ! `/usr/local/bin/mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -separate -trace org.actionstep.ASDebugger.trace -pack org/actionstep -pack org/actionstep/constants -pack org/actionstep/images -main org/actionstep/test/ASTestMain` ! puts 'Build complete.' \ No newline at end of file --- 1,12 ---- ! #!/usr/bin/env sh ! ! # with ruby trace ! /usr/local/bin/mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -trace org.actionstep.ASDebugger.trace -pack org/actionstep -pack org/actionstep/constants -pack org/actionstep/images org/actionstep/test/ASTestMain -main ! ! # with OS X trace ! # /usr/local/bin/mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -trace org.actionstep.ASDebugger.SWFConsoleTrace -pack org/actionstep -pack org/actionstep/images -pack org/actionstep/constants org/actionstep/test/ASTestMain -main ! ! # without trace ! # /usr/local/bin/mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -pack org/actionstep -pack org/actionstep/images -pack org/actionstep/constants -pack org/actionstep/images org/actionstep/test/ASTestMain -main ! ! echo 'Build complete.' |
From: Richard K. <ric...@us...> - 2005-07-26 21:22:29
|
Update of /cvsroot/actionstep/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13889 Modified Files: README Log Message: updated pre release Index: README =================================================================== RCS file: /cvsroot/actionstep/actionstep/README,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** README 14 May 2005 13:14:29 -0000 1.4 --- README 26 Jul 2005 21:22:18 -0000 1.5 *************** *** 10,13 **** --- 10,17 ---- http://actionscript.org + And a wiki can be found here: + + http://osflash.org/doku.php?id=actionstep + This framework is a port of OpenStep and a major effort was put forward to try and maintain continuity between the *************** *** 55,66 **** To compile with TRACE output enabled (useful for debugging): ! mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -separate / -trace org.actionstep.ASDebugger.trace -pack org/actionstep / ! -main org/actionstep/ActionStep To compile without TRACE output enabled: ! mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 -separate / ! -pack org/actionstep -main org/actionstep/ActionStep == License == --- 59,70 ---- To compile with TRACE output enabled (useful for debugging): ! mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 / -trace org.actionstep.ASDebugger.trace -pack org/actionstep / ! org/actionstep/test/ASTestMain -main To compile without TRACE output enabled: ! mtasc -cp "src" -swf ActionStep.swf -header 800:600:20 / ! -pack org/actionstep org/actionstep/test/ASTestMain -main == License == |
From: Richard K. <ric...@us...> - 2005-07-26 19:54:19
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22953 Modified Files: ASStringFormatter.as Log Message: unused import Index: ASStringFormatter.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASStringFormatter.as,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ASStringFormatter.as 25 Jul 2005 03:44:34 -0000 1.5 --- ASStringFormatter.as 26 Jul 2005 19:54:02 -0000 1.6 *************** *** 32,36 **** */ ! import org.actionstep.ASUtils; import org.actionstep.NSArray; import org.actionstep.NSEnumerator; --- 32,36 ---- */ ! //import org.actionstep.ASUtils; import org.actionstep.NSArray; import org.actionstep.NSEnumerator; |
From: Richard K. <ric...@us...> - 2005-07-26 19:50:18
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21869 Removed Files: ASListBox.as ASListBoxDataSource.as ASListBoxSmartDataSource.as Log Message: will be superceeded by NSTable --- ASListBoxDataSource.as DELETED --- --- ASListBoxSmartDataSource.as DELETED --- --- ASListBox.as DELETED --- |
From: Richard K. <ric...@us...> - 2005-07-26 15:54:12
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29489 Modified Files: NSApplication.as Log Message: remove TRACE statements in callback Index: NSApplication.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSApplication.as,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** NSApplication.as 25 Jul 2005 05:46:03 -0000 1.29 --- NSApplication.as 26 Jul 2005 15:54:02 -0000 1.30 *************** *** 146,151 **** public function callObjectSelectorWithNextEventMatchingMaskDequeue(callback:Object, selector:String, mask:Number, dequeue:Boolean):Void { - TRACE(callback); - TRACE(selector); m_eventFilter = {object: callback, selector: selector, mask: mask, dequeue: dequeue}; } --- 146,149 ---- |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:41:07
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2604/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: - runModal calls display() Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** ASAlertPanel.as 26 Jul 2005 11:40:05 -0000 1.19 --- ASAlertPanel.as 26 Jul 2005 11:40:49 -0000 1.20 *************** *** 264,267 **** --- 264,268 ---- m_app.runModalForWindow(this, this, "__modal"); + display(); //orderOut(this); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:40:15
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2349/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: missing import ASDraw added Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** ASAlertPanel.as 26 Jul 2005 11:38:53 -0000 1.18 --- ASAlertPanel.as 26 Jul 2005 11:40:05 -0000 1.19 *************** *** 37,41 **** import org.actionstep.NSImage; import org.actionstep.NSSize; ! import org.actionstep.NSPoint; import org.actionstep.constants.NSAlertReturn; --- 37,42 ---- import org.actionstep.NSImage; import org.actionstep.NSSize; ! import org.actionstep.NSPoint; ! import org.actionstep.ASDraw; import org.actionstep.constants.NSAlertReturn; |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:39:03
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2184/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: - positionElements stores contentView in temp var, and draws white bg for view Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ASAlertPanel.as 26 Jul 2005 11:37:20 -0000 1.17 --- ASAlertPanel.as 26 Jul 2005 11:38:53 -0000 1.18 *************** *** 128,134 **** private function positionElements() { var rect:NSRect = NSRect.ZeroRect; if(m_ico_mc==null) { //create the icon ! var mc = contentView().mcBounds() m_ico_mc = mc.createEmptyMovieClip("m_ico_mc", mc.getNextHighestDepth()); m_ico.lockFocus(m_ico_mc); --- 128,135 ---- private function positionElements() { var rect:NSRect = NSRect.ZeroRect; + var content:NSView = contentView(); if(m_ico_mc==null) { //create the icon ! var mc = content.mcBounds() m_ico_mc = mc.createEmptyMovieClip("m_ico_mc", mc.getNextHighestDepth()); m_ico.lockFocus(m_ico_mc); *************** *** 200,203 **** --- 201,207 ---- rect.size.height = m_def.frame().maxY() + BtnBottom + rootView().titleRect().size.height; setFrame(rect); + + //fill content with white + ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xFFFFFF); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:37:32
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1881/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: added "this" to arguments for callback in - __modal Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ASAlertPanel.as 26 Jul 2005 11:36:49 -0000 1.16 --- ASAlertPanel.as 26 Jul 2005 11:37:20 -0000 1.17 *************** *** 264,268 **** private function __modal(res) { var x = m_callback, y=m_selector; ! x[y].call(x, res); } --- 264,268 ---- private function __modal(res) { var x = m_callback, y=m_selector; ! x[y].call(x, res, this); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:36:58
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1731/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: changed $modal to __modal in - runModal Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ASAlertPanel.as 26 Jul 2005 10:56:54 -0000 1.15 --- ASAlertPanel.as 26 Jul 2005 11:36:49 -0000 1.16 *************** *** 258,262 **** m_selector = sel; ! m_app.runModalForWindow(this, this, "$modal"); //orderOut(this); } --- 258,262 ---- m_selector = sel; ! m_app.runModalForWindow(this, this, "__modal"); //orderOut(this); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:34:33
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1230/actionstep/org/actionstep Modified Files: NSAlert.as Log Message: removed filling of view Index: NSAlert.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSAlert.as,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** NSAlert.as 26 Jul 2005 10:57:57 -0000 1.6 --- NSAlert.as 26 Jul 2005 11:34:21 -0000 1.7 *************** *** 36,41 **** import org.actionstep.NSApplication; import org.actionstep.NSRect; ! import org.actionstep.ASAlertPanel; import org.actionstep.ASDraw; ! import org.actionstep.constants.NSAlertStyle; import org.actionstep.constants.NSAlertReturn; --- 36,40 ---- import org.actionstep.NSApplication; import org.actionstep.NSRect; ! import org.actionstep.ASAlertPanel; import org.actionstep.constants.NSAlertStyle; import org.actionstep.constants.NSAlertReturn; *************** *** 188,193 **** window.resignKeyWindow(); m_sheet.display(); - var content = m_sheet.contentView(); - ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xFFFFFF); //add it to arg array --- 187,190 ---- |
From: Tay R. C. <rc...@us...> - 2005-07-26 11:04:33
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28079/actionstep/org/actionstep/test Modified Files: ASTestDate.as Log Message: reversed order of dob and momsBDay Index: ASTestDate.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestDate.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ASTestDate.as 26 Jul 2005 10:26:16 -0000 1.2 --- ASTestDate.as 26 Jul 2005 11:04:03 -0000 1.3 *************** *** 71,75 **** 1965, 12, 7, 17, 25, 0, 0); ! var since:Object = momsBDay.yearsMonthsDaysHoursMinutesSecondsSinceDate(dob); traceSince(since); } --- 71,75 ---- 1965, 12, 7, 17, 25, 0, 0); ! var since:Object = dob.yearsMonthsDaysHoursMinutesSecondsSinceDate(momsBDay); traceSince(since); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:58:05
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26660/actionstep/org/actionstep Modified Files: NSAlert.as Log Message: added newline after import NSRect and changed alert view to white Index: NSAlert.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSAlert.as,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** NSAlert.as 24 Jul 2005 00:13:13 -0000 1.5 --- NSAlert.as 26 Jul 2005 10:57:57 -0000 1.6 *************** *** 189,193 **** m_sheet.display(); var content = m_sheet.contentView(); ! ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xdddddd); //add it to arg array --- 189,193 ---- m_sheet.display(); var content = m_sheet.contentView(); ! ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xFFFFFF); //add it to arg array |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:57:03
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26488/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: renamed arg: m_defTitle to defTitle for + getSomePanel Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ASAlertPanel.as 26 Jul 2005 10:55:50 -0000 1.14 --- ASAlertPanel.as 26 Jul 2005 10:56:54 -0000 1.15 *************** *** 329,333 **** private static function getSomePanel( instance:ASAlertPanel, ! m_defTitle:String, title:String, message:String, --- 329,333 ---- private static function getSomePanel( instance:ASAlertPanel, ! defTitle:String, title:String, message:String, *************** *** 348,355 **** } if (title == "") { ! title = m_defTitle; } ! if (m_defTitle != null) { ! panel.setTitle(m_defTitle); } panel.setTitleMessageDefAltOther --- 348,355 ---- } if (title == "") { ! title = defTitle; } ! if (title != null) { ! panel.setTitle(title); } panel.setTitleMessageDefAltOther |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:56:08
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26266/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: changed m_defTitle to static init Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ASAlertPanel.as 26 Jul 2005 10:48:39 -0000 1.13 --- ASAlertPanel.as 26 Jul 2005 10:55:50 -0000 1.14 *************** *** 45,49 **** private static var m_app:NSApplication ! private static var m_defTitle:String private static var m_ico:NSImage; --- 45,49 ---- private static var m_app:NSApplication ! private static var m_defTitle:String = "Alert" private static var m_ico:NSImage; *************** *** 115,119 **** if(g_init==null) { //do it once only m_app = NSApplication.sharedApplication(); - m_defTitle ="Alert"; WinPos = new NSPoint(100, 100); WinSize = new NSSize(MsgWidth+m_ico.size.width+IconLeft+IconRight+BtnRight, 200); --- 115,118 ---- |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:48:48
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24992/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: added comments, reworked icon-img drawing Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ASAlertPanel.as 26 Jul 2005 10:46:44 -0000 1.12 --- ASAlertPanel.as 26 Jul 2005 10:48:39 -0000 1.13 *************** *** 35,39 **** import org.actionstep.NSView; import org.actionstep.NSFont; ! //import org.actionstep.NSImage; import org.actionstep.NSSize; import org.actionstep.NSPoint; --- 35,39 ---- import org.actionstep.NSView; import org.actionstep.NSFont; ! import org.actionstep.NSImage; import org.actionstep.NSSize; import org.actionstep.NSPoint; *************** *** 45,50 **** private static var m_app:NSApplication ! private static var m_defTitle:String="Alert"; ! ; private static var m_standardAlertPanel:ASAlertPanel; private static var m_informationalAlertPanel:ASAlertPanel; --- 45,51 ---- private static var m_app:NSApplication ! private static var m_defTitle:String ! private static var m_ico:NSImage; ! private static var m_standardAlertPanel:ASAlertPanel; private static var m_informationalAlertPanel:ASAlertPanel; *************** *** 54,58 **** private var m_alt:NSButton; private var m_oth:NSButton; ! private var m_ico:NSButton; private var m_btns:Array; --- 55,59 ---- private var m_alt:NSButton; private var m_oth:NSButton; ! private var m_ico_mc:MovieClip; private var m_btns:Array; *************** *** 88,92 **** public function init():ASAlertPanel { - //super.init(); var rect:NSRect = NSRect.ZeroRect; initWithContentRectStyleMask(rect, NSTitledWindowMask); --- 89,92 ---- *************** *** 97,115 **** m_result = NSAlertReturn.NSError; - //Icon will never change position var content:NSView = contentView(); ! //image is screwed ! //var image:NSImage = NSImage.imageNamed("ASAlertIcon"); ! var isize:NSSize = new NSSize(64, 64); ! rect.reset(IconLeft, IconTop, isize.width, isize.height); ! m_ico = (new NSButton()).initWithFrame(rect); ! m_ico.setBordered(false); ! //m_ico.setImagePosition(NSCellImagePosition.NSImageOnly); ! //m_ico.setImage(image); ! m_ico.setTitle("Ico"); ! TRACE(m_ico); ! TRACE(content); ! TRACE(content.subviews()); ! content.addSubview(m_ico); //position will be set later --- 97,107 ---- m_result = NSAlertReturn.NSError; var content:NSView = contentView(); ! ! if(m_ico==null) { ! m_ico = (new NSImage()).init(); ! m_ico.setName("ASAlertIcon"); ! m_ico.addRepresentation(new org.actionstep.images.ASAlertIconRep()); ! } //position will be set later *************** *** 121,131 **** m_btns = [m_def, m_alt, m_oth]; ! if(g_init==null) { m_app = NSApplication.sharedApplication(); WinPos = new NSPoint(100, 100); ! WinSize = new NSSize(MsgWidth+isize.width+IconLeft+IconRight+BtnRight, 200); MessageFont = NSFont.systemFontOfSize(14); g_init = true; } setFrame(rect); return this; --- 113,126 ---- m_btns = [m_def, m_alt, m_oth]; ! if(g_init==null) { //do it once only m_app = NSApplication.sharedApplication(); + m_defTitle ="Alert"; WinPos = new NSPoint(100, 100); ! WinSize = new NSSize(MsgWidth+m_ico.size.width+IconLeft+IconRight+BtnRight, 200); MessageFont = NSFont.systemFontOfSize(14); g_init = true; } + + //resize window setFrame(rect); return this; *************** *** 135,142 **** var rect:NSRect = NSRect.ZeroRect; if(m_msgField==null) { //assume that m_infoField is also null var fmt:TextFormat = MessageFont.textFormat(); //position will be set later ! rect.origin.x = m_ico.frame().maxX() + IconRight; rect.origin.y = IconTop; rect.size.width = MsgWidth --- 130,149 ---- var rect:NSRect = NSRect.ZeroRect; + if(m_ico_mc==null) { //create the icon + var mc = contentView().mcBounds() + m_ico_mc = mc.createEmptyMovieClip("m_ico_mc", mc.getNextHighestDepth()); + m_ico.lockFocus(m_ico_mc); + m_ico.drawAtPoint(NSPoint.ZeroPoint); + m_ico.unlockFocus(); + m_ico_mc._x = IconLeft; + m_ico_mc._y = IconTop; + m_ico_mc._width = m_ico.size().width; + m_ico_mc._height = m_ico.size().height; + } + if(m_msgField==null) { //assume that m_infoField is also null var fmt:TextFormat = MessageFont.textFormat(); //position will be set later ! rect.origin.x = m_ico_mc._width + m_ico_mc._x + IconRight; rect.origin.y = IconTop; rect.size.width = MsgWidth *************** *** 158,163 **** w+=btn.frame().size.width; } ! w+= BtnInterspace * (m_btns.length-1) + IconLeft + BtnRight; if(w>m_msgField._width+m_msgField._x+BtnRight) { m_msgField._width = w-m_msgField._x-BtnRight; --- 165,173 ---- w+=btn.frame().size.width; } ! ! //w is now width of window w+= BtnInterspace * (m_btns.length-1) + IconLeft + BtnRight; + + //resize fields if needed if(w>m_msgField._width+m_msgField._x+BtnRight) { m_msgField._width = w-m_msgField._x-BtnRight; *************** *** 165,175 **** } m_infoField._y = m_msgField._height+m_msgField._y+InfoTop; - var pt:NSPoint = new NSPoint(0, m_infoField._y+m_infoField._height+BtnTop); ! var icoy = m_ico.frame().maxY()+BtnTop ! if(pt.y<icoy) pt.y = icoy; ! w-=IconLeft-m_ico.frame().size.width+BtnRight for(i=0;i<3;i++) { btn = m_btns[i]; --- 175,191 ---- } + //position info tf m_infoField._y = m_msgField._height+m_msgField._y+InfoTop; ! //pt is temp var for btn-pos setting ! var pt:NSPoint = new NSPoint(0, m_infoField._y+m_infoField._height+BtnTop); ! ! //see if icoy is bigger than info's max-y (see pt.y) ! var icoy = m_ico_mc._height + m_ico_mc._y + BtnTop ! if(pt.y<icoy) ! pt.y = icoy; ! //offset first, then loop to set pos ! w-=IconLeft-m_ico_mc._width+BtnRight for(i=0;i<3;i++) { btn = m_btns[i]; *************** *** 180,184 **** } ! //resize window rect.origin = WinPos.copy(); rect.size.width = m_msgField._width + m_msgField._x + BtnRight; --- 196,200 ---- } ! //resize window -- unfortunately, no setFrameSize rect.origin = WinPos.copy(); rect.size.width = m_msgField._width + m_msgField._x + BtnRight; *************** *** 201,205 **** --- 217,223 ---- var content:NSView = contentView(); var mc:MovieClip = content.mcBounds(); + //location is not impt + //non-editable, selectable, fixed-width mc.createTextField(title, mc.getNextHighestDepth(), rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); var txt:TextField = mc[title] *************** *** 208,212 **** txt.wordWrap = true; txt.autoSize = true; - txt.border = true; return txt; --- 226,229 ---- *************** *** 236,240 **** public function isActivePanel():Boolean { return m_app.modalWindow() == this - //return true; } --- 253,256 ---- *************** *** 247,256 **** } ! private function $modal(res) { var x = m_callback, y=m_selector; x[y].call(x, res); } ! //macro private static function useControl(control:NSView):Boolean { return (control.superview()!=null) --- 263,272 ---- } ! private function __modal(res) { var x = m_callback, y=m_selector; x[y].call(x, res); } ! //macro from gnustep private static function useControl(control:NSView):Boolean { return (control.superview()!=null) |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:46:52
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24727/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: textfields now use setNewTextFormat Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ASAlertPanel.as 26 Jul 2005 10:45:46 -0000 1.11 --- ASAlertPanel.as 26 Jul 2005 10:46:44 -0000 1.12 *************** *** 143,152 **** m_msgField = makeTF(rect, "m_msgField"); fmt.bold = true; ! m_msgField.setTextFormat(fmt); rect.size.width = InfoWidth m_infoField = makeTF(rect, "m_infoField"); fmt.bold = false; ! m_infoField.setTextFormat(fmt); } m_msgField.text = m_msg; --- 143,152 ---- m_msgField = makeTF(rect, "m_msgField"); fmt.bold = true; ! m_msgField.setNewTextFormat(fmt); rect.size.width = InfoWidth m_infoField = makeTF(rect, "m_infoField"); fmt.bold = false; ! m_infoField.setNewTextFormat(fmt); } m_msgField.text = m_msg; |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:45:55
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24513/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: removed some comments Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ASAlertPanel.as 26 Jul 2005 10:44:18 -0000 1.10 --- ASAlertPanel.as 26 Jul 2005 10:45:46 -0000 1.11 *************** *** 57,61 **** private var m_btns:Array; - //private var m_titleField:NSTextField; private var m_msgField:TextField; private var m_msg:String; --- 57,60 ---- *************** *** 68,75 **** private var m_selector:String; - // TODO: Check this value. private static var WinPos:NSPoint; private static var WinSize:NSSize; ! private static var MessageFont:NSFont; //messageFontOfSize(14); private static var IconLeft:Number = 24; --- 67,73 ---- private var m_selector:String; private static var WinPos:NSPoint; private static var WinSize:NSSize; ! private static var MessageFont:NSFont; private static var IconLeft:Number = 24; |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:44:29
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24255/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: buttonAction now traces Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ASAlertPanel.as 26 Jul 2005 10:43:05 -0000 1.9 --- ASAlertPanel.as 26 Jul 2005 10:44:18 -0000 1.10 *************** *** 217,221 **** public function buttonAction(sender:Object):Void { if (!isActivePanel()) { ! //TRACE("alert panel buttonAction: when not in modal loop\n", LOG); return; } else if (sender == m_def) { --- 217,221 ---- public function buttonAction(sender:Object):Void { if (!isActivePanel()) { ! TRACE("Not in modal loop"); return; } else if (sender == m_def) { *************** *** 226,230 **** m_result = NSAlertReturn.NSOther; } else { ! //TRACE("alert panel buttonAction: from unknown sender - x%x\n", (unsigned)sender); } m_app.modalSession().docWin.makeKeyWindow(); --- 226,230 ---- m_result = NSAlertReturn.NSOther; } else { ! TRACE("Unknown sender -- "+sender); } m_app.modalSession().docWin.makeKeyWindow(); |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:43:16
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22936/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: removed m_green Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ASAlertPanel.as 24 Jul 2005 00:13:48 -0000 1.8 --- ASAlertPanel.as 26 Jul 2005 10:43:05 -0000 1.9 *************** *** 64,68 **** private var m_result:NSAlertReturn; - private var m_green:Boolean; private var m_callback:Object; --- 64,67 ---- *************** *** 99,103 **** setBecomesKeyOnlyIfNeeded(false); m_result = NSAlertReturn.NSError; - m_green = true; //Icon will never change position --- 98,101 ---- *************** *** 244,249 **** public function runModal(call:Object, sel:String):Void { - //if (m_green) sizePanelToFit(); - m_callback = call; m_selector = sel; --- 242,245 ---- *************** *** 315,319 **** }*/ - m_green = true; m_result = NSAlertReturn.NSError; /* If false button was pressed */ } --- 311,314 ---- |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:29:56
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19863/actionstep/org/actionstep/images Added Files: ASAlertIconRep.as Log Message: test icon for ASAlertPanel --- NEW FILE: ASAlertIconRep.as --- /* * Copyright (c) 2005, InfoEther, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1) Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3) The name InfoEther, Inc. may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import org.actionstep.NSImageRep; import org.actionstep.NSSize; import org.actionstep.ASDraw; class org.actionstep.images.ASAlertIconRep extends NSImageRep { public function ASAlertIconRep() { //as specified by Aqua guidelines m_size = new NSSize(64,64); } public function description():String { return "ASAlertIconRep"; } public function draw() { //drawn at (0,0) to force use of mc:(_x, _y) ASDraw.drawRect(m_drawClip, .25, 0xC7CAD1, 0, 0, m_drawRect.size.width, m_drawRect.size.height); } } |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:26:29
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19179/actionstep/org/actionstep/test Modified Files: ASTestDate.as Log Message: uses code on cocoa doc Index: ASTestDate.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestDate.as,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASTestDate.as 25 Jul 2005 03:13:36 -0000 1.1 --- ASTestDate.as 26 Jul 2005 10:26:16 -0000 1.2 *************** *** 62,75 **** public static function test():Void { ! var dt1:NSCalendarDate; ! var dt2:NSCalendarDate; ! dt1 = (new NSCalendarDate()).initWithYearMonthDayHourMinuteSecondTimeZone( ! 2005, 5, 20, 8, 10, 10, 0); ! dt2 = (new NSCalendarDate()).initWithYearMonthDayHourMinuteSecondTimeZone( ! 2004, 6, 25, 11, 10, 10, -4); ! var since:Object = dt1.yearsMonthsDaysHoursMinutesSecondsSinceDate(dt2); traceSince(since); } --- 62,75 ---- public static function test():Void { ! var momsBDay:NSCalendarDate; ! var dob:NSCalendarDate; ! momsBDay = (new NSCalendarDate()).initWithYearMonthDayHourMinuteSecondTimeZone( ! 1936, 1, 8, 7, 30, 0, 0); ! dob = (new NSCalendarDate()).initWithYearMonthDayHourMinuteSecondTimeZone( ! 1965, 12, 7, 17, 25, 0, 0); ! var since:Object = momsBDay.yearsMonthsDaysHoursMinutesSecondsSinceDate(dob); traceSince(since); } |
From: Tay R. C. <rc...@us...> - 2005-07-26 10:04:09
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14659/actionstep/org/actionstep Modified Files: ASRootWindowView.as Log Message: added - titleRect():NSRect Index: ASRootWindowView.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASRootWindowView.as,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** ASRootWindowView.as 20 Jul 2005 04:08:10 -0000 1.18 --- ASRootWindowView.as 26 Jul 2005 10:04:00 -0000 1.19 *************** *** 528,530 **** --- 528,534 ---- } + public function titleRect():NSRect { + return m_titleRect.copy(); + } + } \ No newline at end of file |
From: Scott H. <sco...@us...> - 2005-07-25 05:46:12
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24996/src/org/actionstep Modified Files: NSApplication.as Log Message: Added call to NSUserDefaults.registerDefaults() Index: NSApplication.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSApplication.as,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** NSApplication.as 19 Jul 2005 21:55:53 -0000 1.28 --- NSApplication.as 25 Jul 2005 05:46:03 -0000 1.29 *************** *** 37,41 **** import org.actionstep.NSException; import org.actionstep.NSModalSession; ! import org.actionstep.ASEventMonitor; import org.actionstep.ASFieldEditor; --- 37,41 ---- import org.actionstep.NSException; import org.actionstep.NSModalSession; ! import org.actionstep.NSUserDefaults; import org.actionstep.ASEventMonitor; import org.actionstep.ASFieldEditor; *************** *** 87,90 **** --- 87,91 ---- m_sharedApplication = (new NSApplication()).init(); ASTheme.current().registerDefaultImages(); + NSUserDefaults.registerDefaults(); } return m_sharedApplication; *************** *** 145,148 **** --- 146,151 ---- public function callObjectSelectorWithNextEventMatchingMaskDequeue(callback:Object, selector:String, mask:Number, dequeue:Boolean):Void { + TRACE(callback); + TRACE(selector); m_eventFilter = {object: callback, selector: selector, mask: mask, dequeue: dequeue}; } |