Update of /cvsroot/actionstep/actionstep/src/org/actionstep
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4561
Modified Files:
ASThemeProtocol.as ASTheme.as NSButtonCell.as
Log Message:
added first responder rendering
Index: ASTheme.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASTheme.as,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** ASTheme.as 11 Jul 2005 03:32:18 -0000 1.17
--- ASTheme.as 19 Jul 2005 22:13:17 -0000 1.18
***************
*** 96,99 ****
--- 96,104 ----
drawBorderButtonDown(view.mcBounds(), rect);
}
+
+ public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView) {
+ ASDraw.outlineRectWithRect(view.mcBounds(), rect, [0xC55660]);
+ }
+
public function drawBezelButtonUpWithRectInViewHasShadow(rect:NSRect, view:NSView, hasShadow:Boolean) {
Index: NSButtonCell.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSButtonCell.as,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** NSButtonCell.as 27 Jun 2005 03:37:02 -0000 1.23
--- NSButtonCell.as 19 Jul 2005 22:13:17 -0000 1.24
***************
*** 659,662 ****
--- 659,665 ----
image.unlockFocus();
}
+ if (m_showsFirstResponder) {
+ ASTheme.current().drawFirstResponderButtonWithRectInView(cellFrame, inView);
+ }
}
}
\ No newline at end of file
Index: ASThemeProtocol.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASThemeProtocol.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ASThemeProtocol.as 19 Jun 2005 05:21:57 -0000 1.10
--- ASThemeProtocol.as 19 Jul 2005 22:13:17 -0000 1.11
***************
*** 80,83 ****
--- 80,85 ----
public function drawBorderButtonDisabledWithRectInView(rect:NSRect, view:NSView);
+ public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView);
+
public function drawListWithRectInView(rect:NSRect, view:NSView);
|