mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 02:41:01 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5169 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8f0540e43
commit
b439de410c
1 changed files with 31 additions and 21 deletions
|
@ -173,31 +173,12 @@ static SEL getSel = @selector(objectAtIndex:);
|
||||||
numberOfColumns: 0];
|
numberOfColumns: 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) initWithFrame: (NSRect)frameRect
|
- (id) _privateFrame: (NSRect)frameRect
|
||||||
mode: (int)aMode
|
mode: (int)aMode
|
||||||
cellClass: (Class)class
|
|
||||||
numberOfRows: (int)rowsHigh
|
|
||||||
numberOfColumns: (int)colsWide
|
|
||||||
{
|
|
||||||
self = [self initWithFrame: frameRect
|
|
||||||
mode: aMode
|
|
||||||
prototype: nil
|
|
||||||
numberOfRows: rowsHigh
|
|
||||||
numberOfColumns: colsWide];
|
|
||||||
[self setCellClass: class];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id) initWithFrame: (NSRect)frameRect
|
|
||||||
mode: (int)aMode
|
|
||||||
prototype: (NSCell*)prototype
|
|
||||||
numberOfRows: (int)rows
|
numberOfRows: (int)rows
|
||||||
numberOfColumns: (int)cols
|
numberOfColumns: (int)cols
|
||||||
{
|
{
|
||||||
[super initWithFrame: frameRect];
|
|
||||||
|
|
||||||
myZone = [self zone];
|
myZone = [self zone];
|
||||||
[self setPrototype: prototype];
|
|
||||||
[self _renewRows: rows columns: cols rowSpace: 0 colSpace: 0];
|
[self _renewRows: rows columns: cols rowSpace: 0 colSpace: 0];
|
||||||
mode = aMode;
|
mode = aMode;
|
||||||
[self setFrame: frameRect];
|
[self setFrame: frameRect];
|
||||||
|
@ -222,10 +203,39 @@ static SEL getSel = @selector(objectAtIndex:);
|
||||||
{
|
{
|
||||||
selectedRow = selectedColumn = 0;
|
selectedRow = selectedColumn = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (id) initWithFrame: (NSRect)frameRect
|
||||||
|
mode: (int)aMode
|
||||||
|
cellClass: (Class)class
|
||||||
|
numberOfRows: (int)rowsHigh
|
||||||
|
numberOfColumns: (int)colsWide
|
||||||
|
{
|
||||||
|
self = [super initWithFrame: frameRect];
|
||||||
|
|
||||||
|
[self setCellClass: class];
|
||||||
|
return [self _privateFrame: frameRect
|
||||||
|
mode: aMode
|
||||||
|
numberOfRows: rowsHigh
|
||||||
|
numberOfColumns: colsWide];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) initWithFrame: (NSRect)frameRect
|
||||||
|
mode: (int)aMode
|
||||||
|
prototype: (NSCell*)prototype
|
||||||
|
numberOfRows: (int)rowsHigh
|
||||||
|
numberOfColumns: (int)colsWide
|
||||||
|
{
|
||||||
|
self = [super initWithFrame: frameRect];
|
||||||
|
|
||||||
|
[self setPrototype: prototype];
|
||||||
|
return [self _privateFrame: frameRect
|
||||||
|
mode: aMode
|
||||||
|
numberOfRows: rowsHigh
|
||||||
|
numberOfColumns: colsWide];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue