fixes in Build, Launch, History panels

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/branches/UNSTABLE_0_4@18967 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2004-03-30 07:14:07 +00:00
parent 7b6b0daac3
commit c15a581115
8 changed files with 63 additions and 35 deletions

View file

@ -54,7 +54,7 @@
[contentBox setBorderType:NSNoBorder];
[self setContentView:contentBox];
[self setContentView: [projectBuilder componentView]];
[self setContentView:[projectBuilder componentView]];
// Track project switching
[[NSNotificationCenter defaultCenter]
@ -73,18 +73,28 @@
- (void)dealloc
{
NSLog (@"PCBuildPanel: dealloc");
NSLog (@"PCBuildePanel: view RC: %i",
NSLog (@"PCBuildPanel: dealloc (CV RC:%i)",
[[contentBox contentView] retainCount]);
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
}
- (NSView *)contentView
{
if (contentBox)
{
return [contentBox contentView];
}
return [super contentView];
}
- (void)setContentView:(NSView *)view
{
if (view == contentBox)
{
NSLog(@"");
[super setContentView:view];
}
else
@ -97,10 +107,10 @@
{
PCProject *activeProject = [aNotif object];
if (![self isVisible])
/* if (![self isVisible])
{
return;
}
}*/
NSLog (@"PCBuildPanel: activeProjectDidChange");
@ -109,7 +119,8 @@
if (!activeProject)
{
[[contentBox contentView] removeFromSuperview];
// [[contentBox contentView] removeFromSuperview];
[contentBox setContentView:nil];
}
else
{

View file

@ -1,12 +1,26 @@
/*
* PCDefines.h created by probert on 2002-02-02 20:47:54 +0000
*
* Project ProjectCenter
*
* Created with ProjectCenter - http://www.gnustep.org
*
* $Id$
*/
/*
GNUstep ProjectCenter - http://www.gnustep.org
Copyright (C) 2000-2002 Free Software Foundation
Author: Philippe C.D. Robert <probert@siggraph.org>
This file is part of GNUstep.
This application is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This application 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.
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
#ifndef _PCDefines_h_
#define _PCDefines_h_

View file

@ -81,6 +81,16 @@
[super dealloc];
}
- (NSView *)contentView
{
if (contentBox)
{
return [contentBox contentView];
}
return [super contentView];
}
- (void)setContentView:(NSView *)view
{
if (view == contentBox)
@ -97,17 +107,18 @@
{
PCProject *activeProject = [aNotif object];
if (![self isVisible])
/* if (![self isVisible])
{
return;
}
}*/
[self setTitle: [NSString stringWithFormat:
@"%@ - Launch", [activeProject projectName]]];
if (!activeProject)
{
[[contentBox contentView] removeFromSuperview];
// [[contentBox contentView] removeFromSuperview];
[contentBox setContentView:nil];
}
else
{

View file

@ -20,8 +20,6 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$Id$
*/
#include "PCFileManager.h"
@ -230,13 +228,14 @@ NSString
RELEASE(projectPath);
RELEASE(projectDict);
// Initialized in -init
RELEASE(projectWindow);
RELEASE(projectBrowser);
RELEASE(projectHistory);
RELEASE(projectEditor);
if (projectHistory) RELEASE(projectHistory);
if (projectBuilder) RELEASE(projectBuilder);
if (projectBuilder) RELEASE(projectBuilder);
if (projectLauncher) RELEASE(projectLauncher);
if (projectEditor) RELEASE(projectEditor);
RELEASE(buildOptions);
@ -367,8 +366,7 @@ NSString
|| [key isEqualToString:PCDocuFiles]
|| [key isEqualToString:PCOtherSources]
|| [key isEqualToString:PCOtherResources]
|| [key isEqualToString:PCNonProject]
|| [key isEqualToString:PCGSMarkupFiles])
|| [key isEqualToString:PCNonProject])
{
return YES;
}

View file

@ -20,8 +20,6 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$Id$
*/
#include "PCProjectBuilder.h"

View file

@ -20,8 +20,6 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$Id$
*/
#include "PCProjectLauncher.h"
@ -156,7 +154,7 @@ enum {
- (void)dealloc
{
NSLog (@"PCLauncher: dealloc");
NSLog (@"PCProjectLauncher: dealloc");
RELEASE (componentView);
RELEASE (textAttributes);

View file

@ -447,7 +447,7 @@
{
[self showProjectEditor:self];
}
[buildPanel orderFront: nil];
[buildPanel orderFront:nil];
}
else
{

View file

@ -20,8 +20,6 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$Id$
*/
#include "PCAppController.h"
@ -307,7 +305,7 @@
- (void)applicationWillTerminate:(NSNotification *)notification
{
NSLog (@"Applictaion WILL terminate");
NSLog (@"--- Application WILL terminate");
if ([[[NSUserDefaults standardUserDefaults]
stringForKey:DeleteCacheWhenQuitting] isEqualToString:@"YES"])
{
@ -336,7 +334,7 @@
RELEASE(doServer);
RELEASE(projectTypes);
NSLog (@"Applictaion WILL terminate.END");
NSLog (@"--- Application WILL terminate.END");
}
//============================================================================