mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-18 16:41:35 +00:00
* 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
This commit is contained in:
parent
f41650b9b8
commit
4b0be76f13
3 changed files with 29 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-29 22:27-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/GNUmakefile: Add continue icon.
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add continue method.
|
||||
|
||||
2008-12-29 20:23-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Documentation/TODO: Update progress.
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue