Adjusting UI elements and cleaned up code.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/branches/RELEASE_0_3_5@17147 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Philippe C.D. Robert 2003-07-05 18:20:00 +00:00
parent 19fa93e907
commit 2bef7a4f38
2 changed files with 40 additions and 39 deletions

View file

@ -2,7 +2,7 @@
2003-07-05 Philippe C.D. Robert <probert@siggraph.org>
* Uppercase key for interface category lookup: PCFileManager.m
* Adjusting UI elements ... : PCGormProject.m
* Adjusting UI elements: PCGormProject.m
* Adding proper header: PCLib/PCButton.h, PCLib/PCButton.m
* Code cleanup and corrected contact address: PCInfoController.m,
PCInfoController.h, PCLogController.m, PCLogController.h,
@ -18,6 +18,7 @@
* Added missing files to project: PCLib/PCButton.h, PCLib/PCButton.m
* Updated version for PCLib: PCLib/Version
* Changed menu title to ProjectCenter: ProjectCenter_main.m
* Adjusting UI elements and cleaned up code: PCRenaissanceProject.m
2003-07-04 Philippe C.D. Robert <probert@siggraph.org>

View file

@ -3,7 +3,7 @@
Copyright (C) 2003 Free Software Foundation
Authors: Philippe C.D. Robert <phr@3dkit.org>
Authors: Philippe C.D. Robert <probert@siggraph.org>
Modified by Daniel Luederwald <das_flip@gmx.de>
This file is part of GNUstep.
@ -40,8 +40,9 @@
- (void)_initUI
{
NSTextField *textField;
NSRect frame = {{84,120}, {80, 80}};
NSBox *_box;
NSRect frame = {{84,120}, {80, 80}};
NSBox *_iconViewBox;
NSBox *_appIconBox;
[super _initUI];
@ -55,7 +56,7 @@
[projectProjectInspectorView addSubview:textField];
RELEASE(textField);
appClassField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,256,176,21)];
appClassField =[[NSTextField alloc] initWithFrame:NSMakeRect(111,248,165,21)];
[appClassField setAlignment: NSLeftTextAlignment];
[appClassField setBordered: YES];
[appClassField setEditable: YES];
@ -66,49 +67,48 @@
[appClassField setAction:@selector(setAppClass:)];
[projectProjectInspectorView addSubview:appClassField];
textField =[[NSTextField alloc] initWithFrame:NSMakeRect(16,204,64,21)];
[textField setAlignment: NSRightTextAlignment];
[textField setBordered: NO];
[textField setEditable: NO];
[textField setBezeled: NO];
[textField setDrawsBackground: NO];
[textField setStringValue:@"App icon:"];
[projectProjectInspectorView addSubview:textField];
RELEASE(textField);
// Application Icon
_appIconBox = [[NSBox alloc] init];
[_appIconBox setFrame:NSMakeRect(6,154,270,84)];
[_appIconBox setContentViewMargins:NSMakeSize(4.0, 6.0)];
[_appIconBox setTitle:@"Application Icon"];
[projectProjectInspectorView addSubview:_appIconBox];
RELEASE(_appIconBox);
appImageField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,204,176,21)];
appImageField = [[NSTextField alloc] initWithFrame:NSMakeRect(0,34,195,21)];
[appImageField setAlignment: NSLeftTextAlignment];
[appImageField setBordered: YES];
[appImageField setEditable: NO];
[appImageField setEditable: YES];
[appImageField setBezeled: YES];
[appImageField setDrawsBackground: YES];
[appImageField setStringValue:@""];
[projectProjectInspectorView addSubview:appImageField];
[_appIconBox addSubview:appImageField];
RELEASE(appImageField);
setAppIconButton =[[NSButton alloc] initWithFrame:NSMakeRect(220,180,40,21)];
[setAppIconButton setTitle:@"Set"];
setAppIconButton = [[NSButton alloc] initWithFrame:NSMakeRect(147,0,48,21)];
[setAppIconButton setTitle:@"Set..."];
[setAppIconButton setTarget:self];
[setAppIconButton setAction:@selector(setAppIcon:)];
[projectProjectInspectorView addSubview:setAppIconButton];
[_appIconBox addSubview:setAppIconButton];
RELEASE(setAppIconButton);
clearAppIconButton =[[NSButton alloc] initWithFrame:NSMakeRect(180,180,40,21)];
clearAppIconButton = [[NSButton alloc] initWithFrame:NSMakeRect(95,0,48,21)];
[clearAppIconButton setTitle:@"Clear"];
[clearAppIconButton setTarget:self];
[clearAppIconButton setAction:@selector(clearAppIcon:)];
[projectProjectInspectorView addSubview:clearAppIconButton];
_box = [[NSBox alloc] init];
[_box setFrame:frame];
[_box setTitlePosition:NSNoTitle];
[_box setBorderType:NSBezelBorder];
[projectProjectInspectorView addSubview:_box];
appIconView = [[NSImageView alloc] initWithFrame:frame];
[_box addSubview:appIconView];
RELEASE(_box);
RELEASE(setAppIconButton);
[_appIconBox addSubview:clearAppIconButton];
RELEASE(clearAppIconButton);
frame = NSMakeRect(200,0,56,56);
_iconViewBox = [[NSBox alloc] init];
[_iconViewBox setFrame:frame];
[_iconViewBox setTitlePosition:NSNoTitle];
[_iconViewBox setBorderType:NSBezelBorder];
[_appIconBox addSubview:_iconViewBox];
RELEASE(_iconViewBox);
appIconView = [[NSImageView alloc] initWithFrame:frame];
[_iconViewBox addSubview:appIconView];
RELEASE(appIconView);
}
@ -159,11 +159,11 @@
- (void)dealloc
{
[rootCategories release];
[rootObjects release];
[rootKeys release];
[appClassField release];
[appImageField release];
RELEASE(rootCategories);
RELEASE(rootObjects);
RELEASE(rootKeys);
RELEASE(appClassField);
RELEASE(appImageField);
[super dealloc];
}