some more minor fix and cleanup work

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8495 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Robert Slover 2001-01-07 14:43:34 +00:00
parent f82e117932
commit af54ec14db
5 changed files with 32 additions and 7 deletions

View file

@ -56,7 +56,8 @@
[textField setBezeled: NO]; [textField setBezeled: NO];
[textField setDrawsBackground: NO]; [textField setDrawsBackground: NO];
[textField setStringValue:@"App class:"]; [textField setStringValue:@"App class:"];
[projectProjectInspectorView addSubview:[textField autorelease]]; [projectProjectInspectorView addSubview:textField];
RELEASE(textField);
appClassField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,256,176,21)]; appClassField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,256,176,21)];
[appClassField setAlignment: NSLeftTextAlignment]; [appClassField setAlignment: NSLeftTextAlignment];
@ -74,7 +75,8 @@
[textField setBezeled: NO]; [textField setBezeled: NO];
[textField setDrawsBackground: NO]; [textField setDrawsBackground: NO];
[textField setStringValue:@"App icon:"]; [textField setStringValue:@"App icon:"];
[projectProjectInspectorView addSubview:[textField autorelease]]; [projectProjectInspectorView addSubview:textField];
RELEASE(textField);
appImageField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,204,176,21)]; appImageField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,204,176,21)];
[appImageField setAlignment: NSLeftTextAlignment]; [appImageField setAlignment: NSLeftTextAlignment];
@ -245,6 +247,7 @@
[appImageField setStringValue:@"No Icon!"]; [appImageField setStringValue:@"No Icon!"];
[appIconView setImage:nil]; [appIconView setImage:nil];
[appIconView display]; [appIconView display];
[self writeMakefile]; [self writeMakefile];
} }

View file

@ -43,6 +43,8 @@
NSString *rootBuildPath; NSString *rootBuildPath;
NSWindow *loadedProjectsWindow;
@private @private
BOOL _needsReleasing; BOOL _needsReleasing;
} }

View file

@ -48,6 +48,21 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
NSRect _w_frame; NSRect _w_frame;
NSBox *line; NSBox *line;
/*
* Projects Window
*
*/
_w_frame = NSMakeRect(200,300,560,384);
loadedProjectsWindow = [[NSWindow alloc] initWithContentRect:_w_frame
styleMask:style
backing:NSBackingStoreBuffered
defer:YES];
[loadedProjectsWindow setMinSize:NSMakeSize(560,384)];
[loadedProjectsWindow setTitle:@"Loaded Projects"];
[loadedProjectsWindow setReleasedWhenClosed:NO];
[loadedProjectsWindow setFrameAutosaveName:@"LoadedProjects"];
/* /*
* Inspector Window * Inspector Window
* *
@ -57,7 +72,7 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
inspector = [[NSWindow alloc] initWithContentRect:_w_frame inspector = [[NSWindow alloc] initWithContentRect:_w_frame
styleMask:style styleMask:style
backing:NSBackingStoreBuffered backing:NSBackingStoreBuffered
defer:NO]; defer:YES];
[inspector setMinSize:NSMakeSize(280,384)]; [inspector setMinSize:NSMakeSize(280,384)];
[inspector setTitle:@"Inspector"]; [inspector setTitle:@"Inspector"];
[inspector setReleasedWhenClosed:NO]; [inspector setReleasedWhenClosed:NO];
@ -124,6 +139,7 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
[inspector release]; [inspector release];
[inspectorView release]; [inspectorView release];
[inspectorPopup release]; [inspectorPopup release];
[loadedProjectsWindow release];
} }
[super dealloc]; [super dealloc];
@ -331,6 +347,10 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
- (void)showLoadedProjects - (void)showLoadedProjects
{ {
if (![loadedProjectsWindow isVisible]) {
[loadedProjectsWindow center];
}
[loadedProjectsWindow makeKeyAndOrderFront:self];
} }
- (void)saveFiles - (void)saveFiles

View file

@ -23,10 +23,10 @@
ApplicationName = "ProjectCenter"; ApplicationName = "ProjectCenter";
ApplicationDescription = "GNUstep IDE"; ApplicationDescription = "GNUstep IDE";
ApplicationIcon = "ProjectCenter.tiff"; ApplicationIcon = "ProjectCenter.tiff";
ApplicationRelease = "ProjectCenter 0.2"; ApplicationRelease = "ProjectCenter 0.22";
FullVersionID = "0.2"; FullVersionID = "0.22";
Authors = ("Philippe C.D. Robert <phr@projectcenter.ch>"); Authors = ("Philippe C.D. Robert <phr@projectcenter.ch>");
URL = "http://www.projectcenter.ch"; URL = "http://www.projectcenter.ch";
Copyright = "Copyright (C) 2000 Philippe C.D. Robert"; Copyright = "Copyright (C) 2000-2001 Philippe C.D. Robert";
CopyrightDescription = "Released under the GNU General Public License 2.0"; CopyrightDescription = "Released under the GNU General Public License 2.0";
} }

View file

@ -49,7 +49,7 @@
- (void)showBuildPanel:(id)sender; - (void)showBuildPanel:(id)sender;
{ {
[[projectManager activeProject] build:self]; [[projectManager activeProject] showBuildView:self];
} }
- (void)openProject:(id)sender - (void)openProject:(id)sender