* Documentation/TODO: Update progress.

* Modules/Debuggers/ProjectCenter/GNUmakefile: Add images
	to makefile.
	* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add up and down
	methods to implement this behaviour.
	* Modules/Debuggers/ProjectCenter/Resources/down_button.png
	* Modules/Debuggers/ProjectCenter/Resources/up_button.png:
	Images for the up/down buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-30 01:17:05 +00:00
parent 66b546f33f
commit f41650b9b8
6 changed files with 73 additions and 12 deletions

View file

@ -1,12 +1,25 @@
2008-12-29 20:23-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Documentation/TODO: Update progress.
* Modules/Debuggers/ProjectCenter/GNUmakefile: Add images
to makefile.
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add up and down
methods to implement this behaviour.
* Modules/Debuggers/ProjectCenter/Resources/down_button.png
* Modules/Debuggers/ProjectCenter/Resources/up_button.png:
Images for the up/down buttons.
2008-12-29 00:30-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Framework/PCProjectLauncher.m: Remove local variable for debugger from
method. Also add it to the launcher dealloc method.
* Headers/ProjectCenter/PCProjectLauncher.h: Add an ivar for the debugger.
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add dealloc to shut down
* Framework/PCProjectLauncher.m: Remove local variable for debugger
from method. Also add it to the launcher dealloc method.
* Headers/ProjectCenter/PCProjectLauncher.h: Add an ivar for the
debugger.
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add dealloc to shut
down
the debugger window when it's dealloc.
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Don't set status when
terminated, since it causes a crash.
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Don't set status
when terminated, since it causes a crash.
2008-12-28 11:25-EST Gregory John Casamento <greg_casamento@yahoo.com>

View file

@ -44,7 +44,7 @@ ProjectCenter 0.6
-----------------
- Create new Info panel [done!]
- Implement support for integrated debugging casamento/mottola
- Implement support for integrated debugging [90% done]
- change project type from file to bundle casamento/mottola
- Finish FileNameIcon (draggable, files can be dragged to it) stoyan
- Review all situations when dialogs must be popped up stoyan

View file

@ -27,7 +27,9 @@ ProjectCenter_RESOURCE_FILES= \
Resources/restart_button.png \
Resources/next_button.png \
Resources/stepin_button.png \
Resources/stepout_button.png
Resources/stepout_button.png \
Resources/up_button.png \
Resources/down_button.png
#
# Header files

View file

@ -34,6 +34,8 @@ static NSImage *restartImage = nil;
static NSImage *nextImage = nil;
static NSImage *stepInImage = nil;
static NSImage *stepOutImage = nil;
static NSImage *upImage = nil;
static NSImage *downImage = nil;
@implementation PCDebugger
+ (void) initialize
@ -74,6 +76,16 @@ static NSImage *stepOutImage = nil;
{
stepOutImage = [[NSImage alloc] initWithContentsOfFile: path];
}
path = [bundle pathForImageResource: @"up_button"];
if (path != nil)
{
upImage = [[NSImage alloc] initWithContentsOfFile: path];
}
path = [bundle pathForImageResource: @"down_button"];
if (path != nil)
{
downImage = [[NSImage alloc] initWithContentsOfFile: path];
}
}
}
@ -198,6 +210,18 @@ static NSImage *stepOutImage = nil;
[debuggerView putString: @"finish\n"];
}
- (void) up: (id) sender
{
[self setStatus: @"Up to calling method."];
[debuggerView putString: @"up\n"];
}
- (void) down: (id) sender
{
[self setStatus: @"Down to called method."];
[debuggerView putString: @"down\n"];
}
// Status..
- (void) setStatus: (NSString *) status
{
@ -247,7 +271,7 @@ willBeInsertedIntoToolbar: (BOOL)flag
[toolbarItem setImage: restartImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(restart:)];
[toolbarItem setTag: 1];
[toolbarItem setTag: 2];
}
else if([itemIdentifier isEqual: @"NextItem"])
{
@ -255,7 +279,7 @@ willBeInsertedIntoToolbar: (BOOL)flag
[toolbarItem setImage: nextImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(next:)];
[toolbarItem setTag: 2];
[toolbarItem setTag: 3];
}
else if([itemIdentifier isEqual: @"StepIntoItem"])
{
@ -263,7 +287,7 @@ willBeInsertedIntoToolbar: (BOOL)flag
[toolbarItem setImage: stepInImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(stepInto:)];
[toolbarItem setTag: 3];
[toolbarItem setTag: 4];
}
else if([itemIdentifier isEqual: @"StepOutItem"])
{
@ -271,7 +295,23 @@ willBeInsertedIntoToolbar: (BOOL)flag
[toolbarItem setImage: stepOutImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(stepOut:)];
[toolbarItem setTag: 4];
[toolbarItem setTag: 5];
}
else if([itemIdentifier isEqual: @"UpItem"])
{
[toolbarItem setLabel: @"Up"];
[toolbarItem setImage: upImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(up:)];
[toolbarItem setTag: 6];
}
else if([itemIdentifier isEqual: @"DownItem"])
{
[toolbarItem setLabel: @"Down"];
[toolbarItem setImage: downImage];
[toolbarItem setTarget: self];
[toolbarItem setAction: @selector(down:)];
[toolbarItem setTag: 7];
}
return toolbarItem;
@ -285,6 +325,8 @@ willBeInsertedIntoToolbar: (BOOL)flag
@"NextItem",
@"StepIntoItem",
@"StepOutItem",
@"UpItem",
@"DownItem",
nil];
}
@ -296,6 +338,8 @@ willBeInsertedIntoToolbar: (BOOL)flag
@"NextItem",
@"StepIntoItem",
@"StepOutItem",
@"UpItem",
@"DownItem",
nil];
}
@ -307,6 +351,8 @@ willBeInsertedIntoToolbar: (BOOL)flag
@"NextItem",
@"StepIntoItem",
@"StepOutItem",
@"UpItem",
@"DownItem",
nil];
}
@end

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B