some more UI

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@7864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Robert Slover 2000-10-20 14:49:43 +00:00
parent 5c5a54d2d3
commit fd8c5a701a
4 changed files with 68 additions and 5 deletions

View file

@ -108,12 +108,10 @@ static PCAppMakefileFactory *_factory = nil;
enumerator = [[prDict objectForKey:k] objectEnumerator];
while (tmp = [enumerator nextObject]) {
[string appendString:[NSString stringWithFormat:@"\\\nEnglish.lproj/%@ ",tmp]];
[string appendString:[NSString stringWithFormat:@"\\\n%@ ",tmp]];
}
}
[string appendString:[NSString stringWithFormat:@"\\\nInfo-project.plist "]];
[string appendString:@"\n\n#\n\n"];
[string appendString:@"# Header files\n"];
[string appendString:@"#\n\n"];

View file

@ -91,7 +91,7 @@ static PCAppProj *_creator = nil;
[dict setObject:[path lastPathComponent] forKey:PCProjectName];
[dict setObject:[project principalClass] forKey:PCProjType];
// Create the Info-project.plist
// Create the AppNameInfo.plist
infoDict = [NSDictionary dictionaryWithObjectsAndKeys:
@"Automatically generated!",@"NOTE",
[path lastPathComponent],@"ApplicationName",

View file

@ -38,6 +38,11 @@
@interface PCAppProject : PCProject
{
NSTextField *appClassField;
NSTextField *appImageField;
NSButton *setAppIconButton;
NSImageView *appIconView;
NSImage *icon;
}
//----------------------------------------------------------------------------

View file

@ -43,7 +43,63 @@
- (void)_initUI
{
NSTextField *textField;
NSRect frame = {{84,120}, {80, 80}};
NSBox *box;
[super _initUI];
textField =[[NSTextField alloc] initWithFrame:NSMakeRect(16,256,64,21)];
[textField setAlignment: NSRightTextAlignment];
[textField setBordered: NO];
[textField setEditable: NO];
[textField setBezeled: NO];
[textField setDrawsBackground: NO];
[textField setStringValue:@"App class:"];
[projectProjectInspectorView addSubview:[textField autorelease]];
appClassField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,256,176,21)];
[appClassField setAlignment: NSLeftTextAlignment];
[appClassField setBordered: YES];
[appClassField setEditable: YES];
[appClassField setBezeled: YES];
[appClassField setDrawsBackground: YES];
[appClassField setStringValue:@""];
[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 autorelease]];
appImageField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,204,176,21)];
[appImageField setAlignment: NSLeftTextAlignment];
[appImageField setBordered: YES];
[appImageField setEditable: YES];
[appImageField setBezeled: YES];
[appImageField setDrawsBackground: YES];
[appImageField setStringValue:@""];
[projectProjectInspectorView addSubview:appImageField];
setAppIconButton =[[NSButton alloc] initWithFrame:NSMakeRect(180,180,80,21)];
[setAppIconButton setTitle:@"Set..."];
[setAppIconButton setTarget:self];
[setAppIconButton setAction:@selector(setAppIcon:)];
[projectProjectInspectorView addSubview:setAppIconButton];
box = [[NSBox alloc] init];
[box setFrame:frame];
[box setTitlePosition:NSNoTitle];
//[box setBorderType:NSNoBorder];
[projectProjectInspectorView addSubview:box];
AUTORELEASE(box);
appIconView = [[NSImageView alloc] initWithFrame:frame];
[box addSubview:appIconView];
}
@end
@ -77,7 +133,11 @@
- (void)dealloc
{
[rootCategories release];
[appClassField release];
[appImageField release];
[setAppIconButton release];
[appIconView release];
[super dealloc];
}