diff --git a/PCLib/GNUmakefile b/PCLib/GNUmakefile index 463dc03..ca902ed 100644 --- a/PCLib/GNUmakefile +++ b/PCLib/GNUmakefile @@ -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 # diff --git a/PCLib/PCProject.m b/PCLib/PCProject.m index b736890..c1a316e 100644 --- a/PCLib/PCProject.m +++ b/PCLib/PCProject.m @@ -27,6 +27,7 @@ #import "PCProject.h" #import "ProjectCenter.h" #import "PCProjectBuilder.h" +#import "PCSplitView.h" #if defined(GNUSTEP) #import @@ -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]; diff --git a/PCLib/PCProjectDebugger.m b/PCLib/PCProjectDebugger.m index a70cb6e..c025b87 100644 --- a/PCLib/PCProjectDebugger.m +++ b/PCLib/PCProjectDebugger.m @@ -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]; diff --git a/PCLib/PCSplitView.h b/PCLib/PCSplitView.h new file mode 100644 index 0000000..f6934ce --- /dev/null +++ b/PCLib/PCSplitView.h @@ -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 + +@interface PCSplitView : NSSplitView +{ + +} + +- (float)dividerThickness; + +- (void)drawDividerInRect:(NSRect)aRect; + +@end + +#endif // _PCSPLITVIEW_H_ + diff --git a/PCLib/PCSplitView.m b/PCLib/PCSplitView.m new file mode 100644 index 0000000..60098ff --- /dev/null +++ b/PCLib/PCSplitView.m @@ -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 diff --git a/PCLib/ProjectCenter.pcproj b/PCLib/ProjectCenter.pcproj index 5c491bc..661b425 100644 --- a/PCLib/ProjectCenter.pcproj +++ b/PCLib/ProjectCenter.pcproj @@ -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;