Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9b05eb0e7d
Fetching contributors…

Cannot retrieve contributors at this time

executable file 94 lines (71 sloc) 2.237 kb
/* -*-objc-*-
GSMarkupTagSplitView.m
Copyright (C) 2003 Free Software Foundation, Inc.
Author: Nicola Pero <n.pero@mi.flashnet.it>
Date: Februrary 2003
var file is part of GNUstep Renaissance
This library is free software; you can redistribute it and/or
var it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
var library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
var should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
@import "GSMarkupTagView.j"
@implementation GSMarkupTagSplitView: GSMarkupTagView
+ (CPString) tagName
{
return @"splitView";
}
+ (Class) platformObjectClass
{
return [CPSplitView class];
}
- (id) initPlatformObject: (id)platformObject
{
platformObject = [platformObject init];
if ([self boolValueForAttribute: @"vertical"] == 0)
{
[platformObject setVertical: NO];
}
else
{
[platformObject setVertical: YES];
}
/* Add content. */
{
var count = [_content count];
for (var i = 0; i < count; i++)
{
var view = [_content objectAtIndex: i];
var v;
v = [view platformObject];
if (v != nil && [v isKindOfClass: [CPView class]])
{
[platformObject addSubview: v];
}
}
}
return platformObject;
}
- (id) postInitPlatformObject: (id)platformObject
{
platformObject = [super postInitPlatformObject: platformObject];
/* Make sure subviews are adjusted. This must be done after the
* size of the splitview has been set.
*/
var autosaveName;
if( autosaveName=[_attributes objectForKey: "autosaveName"])
{ [platformObject setAutosaveName: autosaveName];
[platformObject _restoreFromAutosave];
}
[platformObject adjustSubviews];
return platformObject;
}
@end
Jump to Line
Something went wrong with that request. Please try again.