mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add initWithCoder: implementation
This commit is contained in:
parent
0e246f3c36
commit
c486e7c14d
2 changed files with 12 additions and 8 deletions
|
@ -139,7 +139,7 @@ APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
|
|||
/// Column
|
||||
@interface NSGridColumn : NSObject <NSCoding>
|
||||
{
|
||||
NSGridView *_owningGrid;
|
||||
NSGridView *_gridView;
|
||||
NSGridCellPlacement _xPlacement;
|
||||
CGFloat _width;
|
||||
CGFloat _leadingPadding;
|
||||
|
|
|
@ -366,7 +366,7 @@
|
|||
|
||||
- (NSGridView *) gridView
|
||||
{
|
||||
return nil;
|
||||
return _gridView;
|
||||
}
|
||||
|
||||
- (NSInteger) numberOfCells
|
||||
|
@ -381,43 +381,47 @@
|
|||
|
||||
- (NSGridCellPlacement) xPlacement
|
||||
{
|
||||
return 0;
|
||||
return _xPlacement;
|
||||
}
|
||||
|
||||
- (void) setXPlacement: (NSGridCellPlacement)x
|
||||
{
|
||||
_xPlacement = x;
|
||||
}
|
||||
|
||||
- (CGFloat) width
|
||||
{
|
||||
return 0.0;
|
||||
return _width;
|
||||
}
|
||||
|
||||
- (void) setWidth: (CGFloat)f
|
||||
{
|
||||
_width = f;
|
||||
}
|
||||
|
||||
- (CGFloat) leadingPadding
|
||||
{
|
||||
return 0.0;
|
||||
return _leadingPadding;
|
||||
}
|
||||
|
||||
- (void) setLeadingPadding: (CGFloat)f
|
||||
{
|
||||
_leadingPadding = f;
|
||||
}
|
||||
|
||||
- (CGFloat) trailingPadding
|
||||
{
|
||||
return 0.0;
|
||||
return _trailingPadding;
|
||||
}
|
||||
|
||||
- (void) setTrailingPadding: (CGFloat)f
|
||||
{
|
||||
_trailingPadding = f;
|
||||
}
|
||||
|
||||
- (BOOL) isHidden
|
||||
{
|
||||
return NO;
|
||||
return _isHidden;
|
||||
}
|
||||
|
||||
- (void) mergeCellsInRange: (NSRange)range
|
||||
|
@ -444,7 +448,7 @@
|
|||
}
|
||||
if ([coder containsValueForKey: @"NSGrid_owningGrid"])
|
||||
{
|
||||
_owningGrid = [coder decodeObjectForKey: @"NSGrid_owningGrid"];
|
||||
ASSIGN(_gridView, [coder decodeObjectForKey: @"NSGrid_owningGrid"]);
|
||||
}
|
||||
if ([coder containsValueForKey: @"NSGrid_trailingPadding"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue