* Framework/PCProjectManager.m:

(openProjectAt:): Setactive project to loaded after all initalization
completed.
* Framework/PCProject.m:
(saveProjectWindowsAndPanels): Save project windows and panels
according to preferences setting.
(close:): Remove unsused code.
* Framework/PCProjectBuilder.m: Cleanup.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28087 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2009-03-16 23:32:00 +00:00
parent f8d2b38fe4
commit 96516dd723
9 changed files with 46 additions and 33 deletions

View file

@ -1,6 +1,17 @@
2009-03-17 02:14 Sergii Stoian <stoyan255@gmail.com>
* Framework/PCProjectManager.m:
(openProjectAt:): Setactive project to loaded after all initalization
completed.
* Framework/PCProject.m:
(saveProjectWindowsAndPanels): Save project windows and panels
according to preferences setting.
(close:): Remove unsused code.
* Framework/PCProjectBuilder.m: Cleanup.
2009-03-15 02:14 Sergii Stoian <stoyan255@gmail.com>
* * Headers/Protocols/Preferences.h: Add new methods.
* Headers/Protocols/Preferences.h: Add new methods.
* PCPrefController.m: Implemented set/get of preferences value
dependent. All values are stored in preferences as NSString values
and converted upon request to specified type.

View file

@ -209,8 +209,8 @@
bundlePaths = [bundlesInfo allKeys];
enumerator = [bundlePaths objectEnumerator];
NSLog(@"Bundle fullpath method #1: %@",
[[self resourcePath] stringByAppendingPathComponent:bundleName]);
// NSLog(@"Bundle fullpath method #1: %@",
// [[self resourcePath] stringByAppendingPathComponent:bundleName]);
while ((bundleFullPath = [enumerator nextObject]))
{
@ -220,7 +220,7 @@
}
}
NSLog(@"Bundle fullpath method #2: %@", bundleFullPath);
// NSLog(@"Bundle fullpath method #2: %@", bundleFullPath);
return bundleFullPath;
}

View file

@ -37,8 +37,7 @@
//- (id)initWithFrame:(NSRect)frameRect
- (id)initWithCoder:(NSCoder *)coder
{
NSLog(@"PCButton: initWithCoder");
// self = [super initWithFrame:frameRect];
// NSLog(@"PCButton: initWithCoder");
self = [super initWithCoder:coder];
[_cell setGradientType:NSGradientConcaveWeak];
[_cell setImageDimsWhenDisabled:YES];

View file

@ -110,8 +110,8 @@ NSString
RELEASE(projectBrowser);
RELEASE(projectLoadedFiles);
RELEASE(projectEditor);
if (projectBuilder) RELEASE(projectBuilder);
if (projectLauncher) RELEASE(projectLauncher);
TEST_RELEASE(projectBuilder);
TEST_RELEASE(projectLauncher);
if (isSubproject == YES)
{
@ -357,14 +357,13 @@ NSString
forKey:@"ProjectBrowser"];
// Write to file and exit if prefernces wasn't set to save panels
if (rememberWindows)
if (!rememberWindows)
{
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
[projectFileDict writeToFile:projectFile atomically:YES];
return YES;
}
// Project Build
if (projectBuilder && [[projectManager buildPanel] isVisible])
{
@ -543,12 +542,6 @@ NSString
return NO;
}
// Project Builder
/* if (projectBuilder)
{
[projectBuilder release];
}*/
// Project window
if (sender != projectWindow)
{

View file

@ -57,9 +57,11 @@
- (id)initWithProject:(PCProject *)aProject
{
NSAssert(aProject, @"No project specified!");
#ifdef DEBUG
NSLog (@"PCProjectBuilder: initWithProject");
#endif
// PCLogInfo(self, @"initWithProject %@", [aProject projectName]);
NSAssert(aProject, @"No project specified!");
if ((self = [super init]))
{
@ -93,12 +95,17 @@
- (void)dealloc
{
#ifdef DEVELOPMENT
#ifdef DEBUG
NSLog (@"PCProjectBuilder: dealloc");
#endif
[[NSNotificationCenter defaultCenter] removeObserver:self];
if ([componentView superview])
{
[componentView removeFromSuperview];
}
RELEASE(buildStatusTarget);
RELEASE(buildTarget);
RELEASE(buildArgs);
@ -109,12 +116,15 @@
RELEASE(rootBuildDir);
RELEASE(buildTool);
// PCLogInfo(self, @"componentView RC: %i", [componentView retainCount]);
// PCLogInfo(self, @"RC: %i", [self retainCount]);
// NSLog(@"Project Builder--> componentView RC: %i",
// [componentView retainCount]);
RELEASE(componentView);
RELEASE(errorArray);
RELEASE(errorString);
// NSLog(@"Project Builder--> RC: %i", [self retainCount]);
[super dealloc];
}
@ -128,13 +138,13 @@
return;
}
NSLog(@"ProjectBuilder awakeFromNib");
// NSLog(@"ProjectBuilder awakeFromNib");
[componentView retain];
[componentView removeFromSuperview];
NSLog(@"ProjectBuilder awakeFromNib: componentView RC:%i",
[componentView retainCount]);
// NSLog(@"ProjectBuilder awakeFromNib: componentView RC:%i",
// [componentView retainCount]);
/*
* 4 build Buttons

View file

@ -131,9 +131,8 @@
currentProject = rootProject;
/* PCLogInfo(self, @"activeProjectDidChange to: %@",
[rootProject projectName]);*/
NSLog(@"activeProjectDidChange to: %@", [rootProject projectName]);
// NSLog(@"Buider Panel: activeProjectDidChange to: %@",
// [rootProject projectName]);
if (!rootProject)
{

View file

@ -617,7 +617,6 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
}
[loadedProjects setObject:project forKey:projectName];
[self setActiveProject:project];
[project setProjectManager:self];
// Windows and panels
@ -637,6 +636,8 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
[[project projectWindow] makeKeyAndOrderFront:self];
[self setActiveProject:project];
return YES;
}

View file

@ -310,8 +310,8 @@
rootActiveProject = [[project projectManager] rootActiveProject];
NSLog(@"ProjectWindow showProjectBuild: componentView RC:%i",
[view retainCount]);
// NSLog(@"ProjectWindow showProjectBuild: componentView RC:%i",
// [view retainCount]);
if ([prefs boolForKey:UseTearOffWindows])
{
@ -548,7 +548,7 @@
{
id <PCPreferences> prefs = [aNotif object];
PCLogStatus(self, @"Preferences did change");
NSLog(@"ProjectWindow: Preferences did change");
/* if ([[project projectManager] rootActiveProject] != project)
{
@ -858,7 +858,7 @@
NSRect vSplitRect;
NSRect boxRect;
NSLog(@"resizeHorizontalSubiewsWithOldSize entered split view width: %f, height %f", splitSize.width, splitSize.height);
// NSLog(@"resizeHorizontalSubiewsWithOldSize entered split view width: %f, height %f", splitSize.width, splitSize.height);
if (splitSize.width == oldSize.width && splitSize.height == oldSize.height)
{

View file

@ -251,7 +251,7 @@ static NSNotificationCenter *nc = nil;
// Save the old position
op = p;
NSLog(@"SplitView: entering knob loop");
// NSLog(@"SplitView: entering knob loop");
//--- Dragging start ----------------------------------------------------------
// user is moving the knob loop until left mouse up
while ([e type] != NSLeftMouseUp)