Merge branch 'refs/heads/fix-CPWindow-cluster' into cappuccino

This commit is contained in:
Aparajita Fishman committed 2013-02-01 18:42:18 +08:00
commit 48d711023e
12 files changed
+3457 -3482

No files matched your search

+2
View File
@@ -523,6 +523,7 @@ CPButtonImageOffset = 3.0;
_isTracking = YES;
var startedTracking = [super startTrackingAt:aPoint];
if (_highlightsBy & (CPPushInCellMask | CPChangeGrayCellMask))
{
if (_showsStateBy & (CPChangeGrayCellMask | CPChangeBackgroundCellMask))
@@ -537,6 +538,7 @@ CPButtonImageOffset = 3.0;
else
[self highlight:NO];
}
return startedTracking;
}
+1
View File
@@ -23,6 +23,7 @@
@import "CPButton.j"
@import "CPCookie.j"
@import "CPPanel.j"
@import "CPPasteboard.j"
@import "CPView.j"
@class CPSlider
+2 -33
View File
@@ -25,8 +25,9 @@
@import "CPImageView.j"
@import "CPPasteboard.j"
@import "CPView.j"
@import "CPWindow.j"
@import "CPWindow_Constants.j"
@class CPWindow // This file is imported by CPWindow.j
@class _CPDOMDataTransferPasteboard
@global CPApp
@@ -476,35 +477,3 @@ var CPDraggingSource_draggedImage_movedTo_ = 1 << 0,
}
@end
@implementation CPWindow (CPDraggingAdditions)
/* @ignore */
- (id)_dragHitTest:(CGPoint)aPoint pasteboard:(CPPasteboard)aPasteboard
{
// If none of our views or ourselves has registered for drag events...
if (!_inclusiveRegisteredDraggedTypes)
return nil;
// We don't need to do this because the only place this gets called
// -_dragHitTest: in CPPlatformWindow does this already. Perhaps to
// be safe?
// if (![self containsPoint:aPoint])
// return nil;
var adjustedPoint = [self convertPlatformWindowToBase:aPoint],
hitView = [_windowView hitTest:adjustedPoint];
while (hitView && ![aPasteboard availableTypeFromArray:[hitView registeredDraggedTypes]])
hitView = [hitView superview];
if (hitView)
return hitView;
if ([aPasteboard availableTypeFromArray:[self registeredDraggedTypes]])
return self;
return nil;
}
@end
+1
View File
@@ -25,6 +25,7 @@
@import <Foundation/CPDictionary.j>
@import <Foundation/CPIndexSet.j>
@import "CPPasteboard.j"
@import "CPRuleEditor_Constants.j"
@import "CPTextField.j"
@import "CPViewAnimation.j"
+3441 -12
View File
File diff suppressed because it is too large. Load diff
+5
View File
@@ -189,3 +189,8 @@ CPWindowPositionFlexibleRight = 1 << 19;
CPWindowPositionFlexibleLeft = 1 << 20;
CPWindowPositionFlexibleBottom = 1 << 21;
CPWindowPositionFlexibleTop = 1 << 22;
CPStandardWindowShadowStyle = 0;
CPMenuWindowShadowStyle = 1;
CPPanelWindowShadowStyle = 2;
CPCustomWindowShadowStyle = 3;
-1
View File
@@ -21,7 +21,6 @@
*/
@import "_CPWindowView.j"
@import "CPView.j"
@implementation _CPShadowWindowView : CPView
+1 -2
View File
@@ -20,9 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@import "CPTextField.j"
@import "_CPTitleableWindowView.j"
@import "CPButton.j"
@import "_CPTitleableWindowView.j"
@class _CPDocModalWindowView
+2 -3
View File
@@ -20,14 +20,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@import "CPTextField.j"
@import "_CPWindowView.j"
@class CPTextField
@implementation _CPTitleableWindowView : _CPWindowView
{
CPTextField _titleField;
CPTextField _titleField;
}
+ (int)titleBarHeight
+1 -1
View File
@@ -21,7 +21,7 @@
*/
@import "_CPWindowView.j"
@import "_CPToolTip.j"
@implementation _CPToolTipWindowView : _CPWindowView
{
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -142,7 +142,7 @@ var PrimaryPlatformWindow = NULL;
{
var frame = [self contentBounds];
frame.origin = CGPointMakeZero();
frame.origin = _CGPointMakeZero();
if ([CPMenu menuBarVisible] && [CPPlatformWindow primaryPlatformWindow] === self)
{