From 4b0be76f1392679f7760f4fc61323e24a91edf61 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Tue, 30 Dec 2008 03:21:13 +0000 Subject: [PATCH] * Modules/Debuggers/ProjectCenter/GNUmakefile: Add continue icon. * Modules/Debuggers/ProjectCenter/PCDebugger.m: Add continue method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27460 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Modules/Debuggers/ProjectCenter/GNUmakefile | 1 + Modules/Debuggers/ProjectCenter/PCDebugger.m | 23 ++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1e36fe2..b501d30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-29 22:27-EST Gregory John Casamento + + * Modules/Debuggers/ProjectCenter/GNUmakefile: Add continue icon. + * Modules/Debuggers/ProjectCenter/PCDebugger.m: Add continue method. + 2008-12-29 20:23-EST Gregory John Casamento * Documentation/TODO: Update progress. diff --git a/Modules/Debuggers/ProjectCenter/GNUmakefile b/Modules/Debuggers/ProjectCenter/GNUmakefile index ff7b2d3..8748ba2 100644 --- a/Modules/Debuggers/ProjectCenter/GNUmakefile +++ b/Modules/Debuggers/ProjectCenter/GNUmakefile @@ -23,6 +23,7 @@ ProjectCenter_RESOURCE_FILES= \ Resources/PCDebugger.gorm \ Resources/Info.table \ Resources/go_button.png \ + Resources/continue_button.png \ Resources/pause_button.png \ Resources/restart_button.png \ Resources/next_button.png \ diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.m b/Modules/Debuggers/ProjectCenter/PCDebugger.m index 8322647..c7e284d 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.m +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.m @@ -30,6 +30,7 @@ static NSImage *goImage = nil; static NSImage *pauseImage = nil; +static NSImage *continueImage = nil; static NSImage *restartImage = nil; static NSImage *nextImage = nil; static NSImage *stepInImage = nil; @@ -56,6 +57,11 @@ static NSImage *downImage = nil; { pauseImage = [[NSImage alloc] initWithContentsOfFile: path]; } + path = [bundle pathForImageResource: @"continue_button"]; + if (path != nil) + { + continueImage = [[NSImage alloc] initWithContentsOfFile: path]; + } path = [bundle pathForImageResource: @"restart_button"]; if (path != nil) { @@ -184,6 +190,12 @@ static NSImage *downImage = nil; [debuggerView interrupt]; } +- (void) continue: (id) sender +{ + [self setStatus: @"Continue..."]; + [debuggerView putString: @"continue\n"]; +} + - (void) restart: (id) sender { [self setStatus: @"Restarting..."]; @@ -265,6 +277,14 @@ willBeInsertedIntoToolbar: (BOOL)flag [toolbarItem setAction: @selector(pause:)]; [toolbarItem setTag: 1]; } + else if([itemIdentifier isEqual: @"ContinueItem"]) + { + [toolbarItem setLabel: @"Continue"]; + [toolbarItem setImage: continueImage]; + [toolbarItem setTarget: self]; + [toolbarItem setAction: @selector(continue:)]; + [toolbarItem setTag: 1]; + } else if([itemIdentifier isEqual: @"RestartItem"]) { [toolbarItem setLabel: @"Restart"]; @@ -321,6 +341,7 @@ willBeInsertedIntoToolbar: (BOOL)flag { return [NSArray arrayWithObjects: @"GoItem", @"PauseItem", + @"ContinueItem", @"RestartItem", @"NextItem", @"StepIntoItem", @@ -334,6 +355,7 @@ willBeInsertedIntoToolbar: (BOOL)flag { return [NSArray arrayWithObjects: @"GoItem", @"PauseItem", + @"ContinueItem", @"RestartItem", @"NextItem", @"StepIntoItem", @@ -347,6 +369,7 @@ willBeInsertedIntoToolbar: (BOOL)flag { return [NSArray arrayWithObjects: @"GoItem", @"PauseItem", + @"ContinueItem", @"RestartItem", @"NextItem", @"StepIntoItem",