From e80de8d11cec6662fbf29ecb292fd3a00c209191 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Jun 2008 15:51:01 -0400 Subject: [PATCH] Adding a breakpoints NSWindowController for Breakpoints.xib * Source/BreakpointWindowController.m+h: New files * MacGDBp.xcodeproj: Project updates for BreakpointWindowController * Source/AppDelegate.m+h: (showBreakpointWindow:): New method * English.lproj/MainMenu.xib: Add a --- English.lproj/MainMenu.xib | 53 ++++++++++++++++++++++++----- MacGDBp.xcodeproj/project.pbxproj | 6 ++++ Source/AppDelegate.h | 3 ++ Source/AppDelegate.m | 8 +++++ Source/BreakpointWindowController.h | 25 ++++++++++++++ Source/BreakpointWindowController.m | 22 ++++++++++++ 6 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 Source/BreakpointWindowController.h create mode 100644 Source/BreakpointWindowController.m diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 98c044c..1884d6e 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -2,13 +2,13 @@ 1050 - 9C7010 - 644 - 949.26 + 9D34 + 667 + 949.33 352.00 YES - + YES @@ -575,6 +575,15 @@ + + + Breakpoints + B + 1048576 + 2147483647 + + + YES @@ -858,6 +867,14 @@ 267 + + + showBreakpointWindow: + + + + 269 + @@ -914,8 +931,9 @@ - + + @@ -1338,6 +1356,11 @@ + + 268 + + + @@ -1452,6 +1475,7 @@ 263.IBPluginDependency 264.IBPluginDependency 265.IBPluginDependency + 268.IBPluginDependency 29.IBEditorWindowLastContentRect 29.IBPluginDependency 29.ImportedFromIB2 @@ -1556,7 +1580,7 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{248, 642}, {211, 103}} + {{248, 622}, {211, 123}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1577,6 +1601,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{63, 745}, {317, 20}} com.apple.InterfaceBuilder.CocoaPlugin @@ -1613,7 +1638,7 @@ - 267 + 269 @@ -1622,8 +1647,17 @@ AppDelegate NSObject - showDebuggerWindow: - id + YES + + YES + showBreakpointWindow: + showDebuggerWindow: + + + YES + id + id + IBProjectSource @@ -1640,6 +1674,7 @@ FirstResponder + NSObject IBUserSource diff --git a/MacGDBp.xcodeproj/project.pbxproj b/MacGDBp.xcodeproj/project.pbxproj index 6008d5f..82a3398 100644 --- a/MacGDBp.xcodeproj/project.pbxproj +++ b/MacGDBp.xcodeproj/project.pbxproj @@ -29,6 +29,7 @@ 1EEBFD120D359A9F008F835B /* dimple.png in Resources */ = {isa = PBXBuildFile; fileRef = 1EEBFD110D359A9F008F835B /* dimple.png */; }; 1EEE875D0D9DE4B4009CBA7C /* MacGDBp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 1EEE875C0D9DE4B4009CBA7C /* MacGDBp.icns */; }; 1EEEE9400C618B70000C0732 /* SocketWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EEEE93F0C618B70000C0732 /* SocketWrapper.m */; }; + 1EFF70C30DFDC018006B9D33 /* BreakpointWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EFF70C20DFDC018006B9D33 /* BreakpointWindowController.m */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; @@ -72,6 +73,8 @@ 1EEE875C0D9DE4B4009CBA7C /* MacGDBp.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = MacGDBp.icns; path = Icons/MacGDBp.icns; sourceTree = ""; }; 1EEEE93E0C618B70000C0732 /* SocketWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SocketWrapper.h; path = Source/SocketWrapper.h; sourceTree = ""; }; 1EEEE93F0C618B70000C0732 /* SocketWrapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SocketWrapper.m; path = Source/SocketWrapper.m; sourceTree = ""; }; + 1EFF70C10DFDC018006B9D33 /* BreakpointWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BreakpointWindowController.h; path = Source/BreakpointWindowController.h; sourceTree = ""; }; + 1EFF70C20DFDC018006B9D33 /* BreakpointWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BreakpointWindowController.m; path = Source/BreakpointWindowController.m; sourceTree = ""; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; @@ -149,6 +152,8 @@ 1E822CDC0DA28AC30027A23F /* Breakpoint.m */, 1E4C7AF70DA401C7000A9DC7 /* BreakpointManager.h */, 1E4C7AF80DA401C7000A9DC7 /* BreakpointManager.m */, + 1EFF70C10DFDC018006B9D33 /* BreakpointWindowController.h */, + 1EFF70C20DFDC018006B9D33 /* BreakpointWindowController.m */, ); name = Breakpoints; sourceTree = ""; @@ -332,6 +337,7 @@ 1E71886A0D839F6300969277 /* BSSourceViewTextView.m in Sources */, 1E822CDD0DA28AC30027A23F /* Breakpoint.m in Sources */, 1E4C7AF90DA401C7000A9DC7 /* BreakpointManager.m in Sources */, + 1EFF70C30DFDC018006B9D33 /* BreakpointWindowController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Source/AppDelegate.h b/Source/AppDelegate.h index 7ed417c..7b39d47 100644 --- a/Source/AppDelegate.h +++ b/Source/AppDelegate.h @@ -16,12 +16,15 @@ #import #import "DebuggerWindowController.h" +#import "BreakpointWindowController.h" @interface AppDelegate : NSObject { DebuggerWindowController *debugger; + BreakpointWindowController *breakpoint; } - (IBAction)showDebuggerWindow:(id)sender; +- (IBAction)showBreakpointWindow:(id)sender; @end diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index 114182e..7916bd1 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -47,4 +47,12 @@ [[debugger window] makeKeyAndOrderFront:self]; } +/** + * Shows the breakpoints window + */ +- (IBAction)showBreakpointWindow:(id)sender +{ + [[breakpoint window] makeKeyAndOrderFront:self]; +} + @end diff --git a/Source/BreakpointWindowController.h b/Source/BreakpointWindowController.h new file mode 100644 index 0000000..7837bb8 --- /dev/null +++ b/Source/BreakpointWindowController.h @@ -0,0 +1,25 @@ +/* + * MacGDBp + * Copyright (c) 2007 - 2008, Blue Static + * + * This program is free software; you can redistribute it and/or modify it under the terms of the GNU + * General Public License as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program; if not, + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#import + + +@interface BreakpointWindowController : NSWindowController +{ + +} + +@end diff --git a/Source/BreakpointWindowController.m b/Source/BreakpointWindowController.m new file mode 100644 index 0000000..8aa816a --- /dev/null +++ b/Source/BreakpointWindowController.m @@ -0,0 +1,22 @@ +/* + * MacGDBp + * Copyright (c) 2007 - 2008, Blue Static + * + * This program is free software; you can redistribute it and/or modify it under the terms of the GNU + * General Public License as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program; if not, + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#import "BreakpointWindowController.h" + + +@implementation BreakpointWindowController + +@end -- 2.43.5