mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 16:10:41 +00:00
Merge with revision 39619 of GUI main branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39629 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
59be9b4a52
commit
fab1e8f6f4
3 changed files with 63 additions and 13 deletions
|
@ -224,6 +224,8 @@ static CGFloat scrollerWidth;
|
|||
// For compatibility the ruler should be present but not visible.
|
||||
[self setHasHorizontalRuler: YES];
|
||||
[self tile];
|
||||
_horizScrollElasticity = NSScrollElasticityAutomatic;
|
||||
_vertScrollElasticity = NSScrollElasticityAutomatic;
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver: self
|
||||
|
@ -398,6 +400,27 @@ static CGFloat scrollerWidth;
|
|||
_autohidesScrollers = flag;
|
||||
}
|
||||
|
||||
- (NSScrollElasticity)horizontalScrollElasticity
|
||||
{
|
||||
return _horizScrollElasticity;
|
||||
}
|
||||
|
||||
- (void)setHorizontalScrollElasticity:(NSScrollElasticity)value
|
||||
{
|
||||
_horizScrollElasticity = value;
|
||||
}
|
||||
|
||||
- (NSScrollElasticity)verticalScrollElasticity
|
||||
{
|
||||
return _vertScrollElasticity;
|
||||
}
|
||||
|
||||
|
||||
- (void)setVerticalScrollElasticity:(NSScrollElasticity)value
|
||||
{
|
||||
_vertScrollElasticity = value;
|
||||
}
|
||||
|
||||
- (void) scrollWheel: (NSEvent *)theEvent
|
||||
{
|
||||
NSRect clipViewBounds;
|
||||
|
@ -913,7 +936,7 @@ static CGFloat scrollerWidth;
|
|||
// Testplant-MAL-2015-07-08: keeping testplant branch code...
|
||||
_reflectScrolledClipView_HRecursionCnt--;
|
||||
}
|
||||
|
||||
|
||||
if (_hasHeaderView)
|
||||
{
|
||||
NSPoint headerClipViewOrigin;
|
||||
|
@ -1366,17 +1389,12 @@ GSOppositeEdge(NSRectEdge edge)
|
|||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
#if 0
|
||||
// FIXME: Only needs to be NO in a corner case,
|
||||
// when [[GSTheme theme] scrollViewUseBottomCorner] is NO
|
||||
// and the theme tile for the bottom corner is transparent.
|
||||
// So maybe cache the value of
|
||||
// [[GSTheme theme] scrollViewUseBottomCorner] and check it here.
|
||||
return NO;
|
||||
#else
|
||||
// Testplant-MAL-2015-07-08: keeping testplant branch code...
|
||||
return [_contentView isOpaque];
|
||||
#endif
|
||||
}
|
||||
|
||||
- (NSBorderType) borderType
|
||||
|
@ -1532,6 +1550,17 @@ GSOppositeEdge(NSRectEdge edge)
|
|||
return _vertScroller;
|
||||
}
|
||||
|
||||
- (BOOL)allowsMagnification
|
||||
{
|
||||
//we need an ivar for this
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)setAllowsMagnification:(BOOL)m
|
||||
{
|
||||
//we need an ivar for this
|
||||
}
|
||||
|
||||
/*
|
||||
* NSCoding protocol
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue