mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:10:47 +00:00
* Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep decorations in resizeWindowStartingWithEvent:. * Source/NSLayoutManager.m: Unarchive the text containers into an array in initWithCoder:. * Source/NSTextContainer.m: Get the layout manager in initWithCoder:. * Source/NSTextView.m: Changes to include text container from nib file into the nib loading process in initWithCoder:. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7b6563b013
commit
e42b695869
5 changed files with 32 additions and 8 deletions
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2009-05-23 11:48-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/GSStandardWindowDecorationView.m: Live window resize changes
|
||||||
|
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
|
||||||
|
* Source/NSLayoutManager.m: Unarchive the text containers into an
|
||||||
|
array in initWithCoder:.
|
||||||
|
* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
|
||||||
|
* Source/NSTextView.m: Changes to include text container from nib
|
||||||
|
file into the nib loading process in initWithCoder:.
|
||||||
|
|
||||||
2009-05-22 Nicolas Roard <nicolas@roard.com>
|
2009-05-22 Nicolas Roard <nicolas@roard.com>
|
||||||
Add a live resize for splitviews. Users can revert to the old behaviour
|
Add a live resize for splitviews. Users can revert to the old behaviour
|
||||||
by doing: defaults write NSGlobalDomain GSUseGhostResize YES
|
by doing: defaults write NSGlobalDomain GSUseGhostResize YES
|
||||||
|
@ -5,7 +15,8 @@
|
||||||
|
|
||||||
2009-05-14 Riccardo Mottola <rmottola@users.sf.net>
|
2009-05-14 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
|
||||||
* Source/NSApplication.m: fixed allocation of Mutable array instead of Array
|
* Source/NSApplication.m: fixed allocation of Mutable array instead of
|
||||||
|
Array
|
||||||
|
|
||||||
2009-05-14 14:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
2009-05-14 14:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
@ -2425,8 +2436,8 @@
|
||||||
2008-05-03 Fred Kiefer <FredKiefer@gmx.de>
|
2008-05-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTableView.m (-selectRow:byExtendingSelection:,
|
* Source/NSTableView.m (-selectRow:byExtendingSelection:,
|
||||||
-selectColumn:byExtendingSelection:, -rectOfColumn:, -rectOfRow:): Don't
|
-selectColumn:byExtendingSelection:, -rectOfColumn:, -rectOfRow:):
|
||||||
raise an exception for invalid indexes.
|
Don't raise an exception for invalid indexes.
|
||||||
|
|
||||||
2008-05-01 Fred Kiefer <FredKiefer@gmx.de>
|
2008-05-01 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -467,6 +467,7 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
|
||||||
NSPoint firstPoint, point;
|
NSPoint firstPoint, point;
|
||||||
NSRect newFrame, frame;
|
NSRect newFrame, frame;
|
||||||
NSSize minSize, maxSize;
|
NSSize minSize, maxSize;
|
||||||
|
int num = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0 drag lower left corner
|
0 drag lower left corner
|
||||||
|
@ -513,6 +514,13 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
|
||||||
untilDate: [NSDate distantFuture]
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
|
|
||||||
|
num++;
|
||||||
|
if(num == 5)
|
||||||
|
{
|
||||||
|
[window setFrame: newFrame display: YES];
|
||||||
|
num = 0;
|
||||||
|
}
|
||||||
} while ([currentEvent type] != NSLeftMouseUp);
|
} while ([currentEvent type] != NSLeftMouseUp);
|
||||||
[window _releaseMouse: nil];
|
[window _releaseMouse: nil];
|
||||||
|
|
||||||
|
|
|
@ -2292,7 +2292,6 @@ no_soft_invalidation:
|
||||||
|
|
||||||
if ([aDecoder allowsKeyedCoding])
|
if ([aDecoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
int i;
|
int i;
|
||||||
int flags;
|
int flags;
|
||||||
NSArray *array = [aDecoder decodeObjectForKey: @"NSTextContainers"];
|
NSArray *array = [aDecoder decodeObjectForKey: @"NSTextContainers"];
|
||||||
|
@ -2312,7 +2311,6 @@ no_soft_invalidation:
|
||||||
{
|
{
|
||||||
[self addTextContainer: [array objectAtIndex: i]];
|
[self addTextContainer: [array objectAtIndex: i]];
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -473,7 +473,11 @@ framework intact.
|
||||||
}
|
}
|
||||||
|
|
||||||
// decoding the manager adds this text container automatically...
|
// decoding the manager adds this text container automatically...
|
||||||
[aDecoder decodeObjectForKey: @"NSLayoutManager"];
|
if ([aDecoder containsValueForKey: @"NSLayoutManager"])
|
||||||
|
{
|
||||||
|
_layoutManager = [aDecoder decodeObjectForKey: @"NSLayoutManager"];
|
||||||
|
}
|
||||||
|
|
||||||
[self setTextView: view];
|
[self setTextView: view];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
|
@ -852,16 +852,19 @@ that makes decoding and encoding compatible with the old code.
|
||||||
|
|
||||||
// currently not used....
|
// currently not used....
|
||||||
if ([aDecoder containsValueForKey: @"NSTextContainer"])
|
if ([aDecoder containsValueForKey: @"NSTextContainer"])
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
NSSize size = NSMakeSize(0,_maxSize.height);
|
NSSize size = NSMakeSize(0,_maxSize.height);
|
||||||
NSTextContainer *aTextContainer = [self buildUpTextNetwork: NSZeroSize];
|
NSTextContainer *aTextContainer = [self buildUpTextNetwork: NSZeroSize];
|
||||||
[aTextContainer setTextView: (NSTextView *)self];
|
[aTextContainer setTextView: (NSTextView *)self];
|
||||||
/* See initWithFrame: for comments on this RELEASE */
|
// See initWithFrame: for comments on this RELEASE
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
|
|
||||||
[aTextContainer setContainerSize: size];
|
[aTextContainer setContainerSize: size];
|
||||||
[aTextContainer setWidthTracksTextView: YES];
|
[aTextContainer setWidthTracksTextView: YES];
|
||||||
[aTextContainer setHeightTracksTextView: NO];
|
[aTextContainer setHeightTracksTextView: NO];
|
||||||
|
*/
|
||||||
|
_textContainer = [aDecoder decodeObjectForKey: @"NSTextContainer"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([aDecoder containsValueForKey: @"NSTVFlags"])
|
if ([aDecoder containsValueForKey: @"NSTVFlags"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue