From 667fa689bc84f8d7f49a1718c29f9ca49f9ce424 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 2 Dec 2008 11:10:52 -0500 Subject: [PATCH] Renaming registers to variables --- English.lproj/Debugger.xib | 48 ++++++++++++++++++------------------- English.lproj/MainMenu.xib | 8 +++---- Source/DebuggerController.h | 6 ++--- Source/DebuggerController.m | 18 +++++++------- 4 files changed, 39 insertions(+), 41 deletions(-) diff --git a/English.lproj/Debugger.xib b/English.lproj/Debugger.xib index a58c123..c3e5608 100644 --- a/English.lproj/Debugger.xib +++ b/English.lproj/Debugger.xib @@ -8,7 +8,6 @@ 352.00 YES - YES @@ -394,7 +393,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ {3.40282e+38, 3.40282e+38} {213, 107} - + 256 YES @@ -910,7 +909,6 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ {769, 501} - {{0, 0}, {1440, 878}} {213, 169} @@ -1068,22 +1066,6 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 92 - - - registerController - - - - 144 - - - - registerView - - - - 169 - errormsg @@ -1264,6 +1246,22 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 565 + + + variablesTreeController + + + + 566 + + + + variablesOutlineView + + + + 567 + @@ -1344,7 +1342,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 59 - RegistersController + VariablesController 453 @@ -1803,7 +1801,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ - 565 + 567 @@ -1863,20 +1861,20 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ YES errormsg - registerController - registerView sourceViewer stackArrayController statusmsg + variablesOutlineView + variablesTreeController YES NSTextField - NSTreeController - NSOutlineView BSSourceView NSArrayController NSTextField + NSOutlineView + NSTreeController diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index ee2c3cd..7b2973d 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -1981,8 +1981,6 @@ YES errormsg reconnectButton - registerController - registerView runButton sourceViewer stackController2 @@ -1990,13 +1988,13 @@ stepInButton stepOutButton stepOverButton + variablesOutlineView + variablesTreeController YES NSTextField NSToolbarItem - NSTreeController - NSOutlineView NSToolbarItem BSSourceView NSArrayController @@ -2004,6 +2002,8 @@ NSToolbarItem NSToolbarItem NSToolbarItem + NSOutlineView + NSTreeController diff --git a/Source/DebuggerController.h b/Source/DebuggerController.h index 0bbbf5d..c3e6267 100644 --- a/Source/DebuggerController.h +++ b/Source/DebuggerController.h @@ -27,9 +27,9 @@ StackController *stackController; IBOutlet NSArrayController *stackArrayController; - IBOutlet NSTreeController *registerController; - IBOutlet NSOutlineView *registerView; - NSMutableSet *expandedRegisters; + IBOutlet NSTreeController *variablesTreeController; + IBOutlet NSOutlineView *variablesOutlineView; + NSMutableSet *expandedVariables; IBOutlet NSTextField *statusmsg; IBOutlet NSTextField *errormsg; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index c201ffd..e4972a7 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -42,7 +42,7 @@ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; connection = [[GDBpConnection alloc] initWithPort:[defaults integerForKey:@"Port"] session:[defaults stringForKey:@"IDEKey"]]; - expandedRegisters = [[NSMutableSet alloc] init]; + expandedVariables = [[NSMutableSet alloc] init]; [[self window] makeKeyAndOrderFront:nil]; [[self window] setDelegate:self]; @@ -62,7 +62,7 @@ - (void)dealloc { [connection release]; - [expandedRegisters release]; + [expandedVariables release]; [stackController release]; [super dealloc]; } @@ -108,7 +108,7 @@ */ - (void)resetDisplays { - [registerController setContent:nil]; + [variablesTreeController setContent:nil]; [stackController.stack removeAllObjects]; [[sourceViewer textView] setString:@""]; } @@ -198,7 +198,7 @@ - (void)outlineViewItemDidExpand:(NSNotification *)notif { NSTreeNode *node = [[notif userInfo] objectForKey:@"NSObject"]; - [expandedRegisters addObject:[[node representedObject] fullname]]; + [expandedVariables addObject:[[node representedObject] fullname]]; } /** @@ -206,7 +206,7 @@ */ - (void)outlineViewItemDidCollapse:(NSNotification *)notif { - [expandedRegisters removeObject:[[[[notif userInfo] objectForKey:@"NSObject"] representedObject] fullname]]; + [expandedVariables removeObject:[[[[notif userInfo] objectForKey:@"NSObject"] representedObject] fullname]]; } #pragma mark Private @@ -258,12 +258,12 @@ */ - (void)expandVariables { - for (int i = 0; i < [registerView numberOfRows]; i++) + for (int i = 0; i < [variablesOutlineView numberOfRows]; i++) { - NSTreeNode *node = [registerView itemAtRow:i]; - if ([expandedRegisters containsObject:[[node representedObject] fullname]]) + NSTreeNode *node = [variablesOutlineView itemAtRow:i]; + if ([expandedVariables containsObject:[[node representedObject] fullname]]) { - [registerView expandItem:node]; + [variablesOutlineView expandItem:node]; } } } -- 2.43.5