Using a customised split view instead of a NSSplitView - more to come...

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@12227 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Philippe C.D. Robert 2002-01-27 13:55:07 +00:00
parent 32f9d95914
commit 0b9b383d9c
6 changed files with 65 additions and 10 deletions

View file

@ -59,7 +59,8 @@ ProjectCenter.h \
ProjectDebugger.h \
ProjectEditor.h \
ProjectType.h \
Server.h
Server.h \
PCSplitView.h
#
@ -76,7 +77,8 @@ PCProject.m \
PCProjectBuilder.m \
PCProjectDebugger.m \
PCProjectManager.m \
PCServer.m
PCServer.m \
PCSplitView.m
#

View file

@ -27,6 +27,7 @@
#import "PCProject.h"
#import "ProjectCenter.h"
#import "PCProjectBuilder.h"
#import "PCSplitView.h"
#if defined(GNUSTEP)
#import <AppKit/IMLoading.h>
@ -51,7 +52,7 @@
NSButtonCell* buttonCell = [[[NSButtonCell alloc] init] autorelease];
id textField;
id button;
NSSplitView *split;
PCSplitView *split;
browserController = [[PCBrowserController alloc] init];
@ -108,14 +109,11 @@
_w_frame.size.height -= 76;
_w_frame.size.width -= 16;
_w_frame.origin.x += 8;
split = [[NSSplitView alloc] initWithFrame:_w_frame];
split = [[PCSplitView alloc] initWithFrame:_w_frame];
[split setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
_c_view = [projectWindow contentView];
//[_c_view addSubview:browser];
//[_c_view addSubview:box];
[split addSubview:browser];
[split addSubview:box];
[split adjustSubviews];

View file

@ -153,7 +153,7 @@
[button setImage:IMAGE(@"ProjectCenter_debug")];
[button setAlternateImage:IMAGE(@"ProjectCenter_debug")];
[button setButtonType:NSOnOffButton];
[button setTitle:@"Clean"];
[button setTitle:@"Debug"];
[button setAction:@selector(debug:)];
[componentView sizeToFit];

28
PCLib/PCSplitView.h Normal file
View file

@ -0,0 +1,28 @@
/*
* PCSplitView.h created by probert on 2002-01-27 13:36:09 +0000
*
* Project ProjectCenter
*
* Created with ProjectCenter - http://www.gnustep.org
*
* $Id$
*/
#ifndef _PCSPLITVIEW_H_
#define _PCSPLITVIEW_H_
#import <AppKit/AppKit.h>
@interface PCSplitView : NSSplitView
{
}
- (float)dividerThickness;
- (void)drawDividerInRect:(NSRect)aRect;
@end
#endif // _PCSPLITVIEW_H_

25
PCLib/PCSplitView.m Normal file
View file

@ -0,0 +1,25 @@
/*
* PCSplitView.m created by probert on 2002-01-27 13:36:08 +0000
*
* Project ProjectCenter
*
* Created with ProjectCenter - http://www.gnustep.org
*
* $Id$
*/
#import "PCSplitView.h"
@implementation PCSplitView
- (float)dividerThickness
{
return 12.0f;
}
- (void)drawDividerInRect:(NSRect)aRect
{
[super drawDividerInRect:aRect];
}
@end

View file

@ -11,7 +11,8 @@
PCProjectBuilder.m,
PCProjectDebugger.m,
PCProjectManager.m,
PCServer.m
PCServer.m,
PCSplitView.m
);
COMPILEROPTIONS = "";
CREATION_DATE = "";
@ -38,7 +39,8 @@
ProjectDebugger.h,
ProjectEditor.h,
ProjectType.h,
Server.h
Server.h,
PCSplitView.h
);
INSTALLDIR = "$(GNUSTEP_SYSTEM_ROOT)";
LANGUAGE = English;