From cb79333ec34cf5a45bc3675efbdfb2272d047fd7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 1 Aug 2007 11:31:51 -0700 Subject: [PATCH] * Source/ConnectWindowController.h: Adding outlets and actions for our interface * Source/ConnectWindowController.m: ([ConnectWindowController connect:]): New function to create a new DebuggerConnection * Source/DebuggerConnection.m/h: Added * Source/DebuggerWindowController.m/h: Added * English.lproj/Connect.nib: Hooking up new outlets and actions from ConnectWindowController --- English.lproj/Connect.nib/classes.nib | 2 + English.lproj/Connect.nib/keyedobjects.nib | Bin 5600 -> 5941 bytes MacGDBp.xcodeproj/project.pbxproj | 12 +++++ Source/ConnectWindowController.h | 8 +++- Source/ConnectWindowController.m | 11 ++++- Source/DebuggerConnection.h | 31 +++++++++++++ Source/DebuggerConnection.m | 51 +++++++++++++++++++++ Source/DebuggerWindowController.h | 28 +++++++++++ Source/DebuggerWindowController.m | 44 ++++++++++++++++++ 9 files changed, 185 insertions(+), 2 deletions(-) create mode 100644 Source/DebuggerConnection.h create mode 100644 Source/DebuggerConnection.m create mode 100644 Source/DebuggerWindowController.h create mode 100644 Source/DebuggerWindowController.m diff --git a/English.lproj/Connect.nib/classes.nib b/English.lproj/Connect.nib/classes.nib index bd68c84..99f71ac 100644 --- a/English.lproj/Connect.nib/classes.nib +++ b/English.lproj/Connect.nib/classes.nib @@ -1,8 +1,10 @@ { IBClasses = ( { + ACTIONS = {connect = id; }; CLASS = ConnectWindowController; LANGUAGE = ObjC; + OUTLETS = {"_host" = NSTextField; "_port" = NSTextField; "_session" = NSTextField; }; SUPERCLASS = NSWindowController; }, {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; } diff --git a/English.lproj/Connect.nib/keyedobjects.nib b/English.lproj/Connect.nib/keyedobjects.nib index e2b06df7c1ef1c9aea7f78150aa6a72a25effceb..3d2ed7101f660b5b1e573b6075953c913b6bf5d4 100644 GIT binary patch delta 3636 zcmZ`)2Y3|K7Cz@rFFSK*LV^M+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ii_>TGc;oeNHtbCXKcq%~+=+KR^0o;00i(rh}Mj-+{XG|i`DX(275 z6KFA=LTA#sw47GZmGnLOKK+2MrR(Shx`}R~TmAGCx|5!v=ja7`kzS_X((mXs`aQi# zZ_(TICwhlPu-dFHtH&N-53(p0&6==g>|xfNwP2lDPd0#Mv2m=J&0urbTsEJ*$riH` zR?fDu?W~gRWV_iH>`S(v9bkvp5q6XvXD8WdcG*Q&auru|(+t;geJ*ufw}xBOt>xBn zBi;IL1Gk~u$ZhO4bsutL+(+D&ZY%duH_q+iCc2NiJ>4hW6gSl!=4L_gLrC?#Y3Tm@ H)h+xl4^O?~ diff --git a/MacGDBp.xcodeproj/project.pbxproj b/MacGDBp.xcodeproj/project.pbxproj index 5fc4c0e..3295aa2 100644 --- a/MacGDBp.xcodeproj/project.pbxproj +++ b/MacGDBp.xcodeproj/project.pbxproj @@ -11,6 +11,8 @@ 1E02C3D50C60EC2C006F1752 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C3D40C60EC2C006F1752 /* AppDelegate.m */; }; 1E02C3F00C60ED56006F1752 /* Debugger.nib in Resources */ = {isa = PBXBuildFile; fileRef = 1E02C3EE0C60ED56006F1752 /* Debugger.nib */; }; 1E02C4080C60EF3F006F1752 /* ConnectWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C4070C60EF3F006F1752 /* ConnectWindowController.m */; }; + 1E02C5710C610158006F1752 /* DebuggerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C5700C610158006F1752 /* DebuggerConnection.m */; }; + 1E02C5F60C610724006F1752 /* DebuggerWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C5F50C610724006F1752 /* DebuggerWindowController.m */; }; 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; @@ -27,6 +29,10 @@ 1E02C3EF0C60ED56006F1752 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/Debugger.nib; sourceTree = ""; }; 1E02C4060C60EF3F006F1752 /* ConnectWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectWindowController.h; path = Source/ConnectWindowController.h; sourceTree = ""; }; 1E02C4070C60EF3F006F1752 /* ConnectWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ConnectWindowController.m; path = Source/ConnectWindowController.m; sourceTree = ""; }; + 1E02C56F0C610158006F1752 /* DebuggerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DebuggerConnection.h; path = Source/DebuggerConnection.h; sourceTree = ""; }; + 1E02C5700C610158006F1752 /* DebuggerConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DebuggerConnection.m; path = Source/DebuggerConnection.m; sourceTree = ""; }; + 1E02C5F40C610724006F1752 /* DebuggerWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DebuggerWindowController.h; path = Source/DebuggerWindowController.h; sourceTree = ""; }; + 1E02C5F50C610724006F1752 /* DebuggerWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DebuggerWindowController.m; path = Source/DebuggerWindowController.m; sourceTree = ""; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29B97319FDCFA39411CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = ""; }; 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; @@ -102,6 +108,10 @@ 1E02C3D40C60EC2C006F1752 /* AppDelegate.m */, 1E02C4060C60EF3F006F1752 /* ConnectWindowController.h */, 1E02C4070C60EF3F006F1752 /* ConnectWindowController.m */, + 1E02C56F0C610158006F1752 /* DebuggerConnection.h */, + 1E02C5700C610158006F1752 /* DebuggerConnection.m */, + 1E02C5F40C610724006F1752 /* DebuggerWindowController.h */, + 1E02C5F50C610724006F1752 /* DebuggerWindowController.m */, ); name = "Other Sources"; sourceTree = ""; @@ -185,6 +195,8 @@ 8D11072D0486CEB800E47090 /* main.m in Sources */, 1E02C3D50C60EC2C006F1752 /* AppDelegate.m in Sources */, 1E02C4080C60EF3F006F1752 /* ConnectWindowController.m in Sources */, + 1E02C5710C610158006F1752 /* DebuggerConnection.m in Sources */, + 1E02C5F60C610724006F1752 /* DebuggerWindowController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Source/ConnectWindowController.h b/Source/ConnectWindowController.h index 13a5601..bf80708 100644 --- a/Source/ConnectWindowController.h +++ b/Source/ConnectWindowController.h @@ -18,8 +18,14 @@ @interface ConnectWindowController : NSWindowController -{} +{ + IBOutlet NSTextField *_host; + IBOutlet NSTextField *_port; + IBOutlet NSTextField *_session; +} + (id)sharedController; +- (IBAction)connect: (id)sender; + @end diff --git a/Source/ConnectWindowController.m b/Source/ConnectWindowController.m index 193ab72..2fe763d 100644 --- a/Source/ConnectWindowController.m +++ b/Source/ConnectWindowController.m @@ -15,7 +15,7 @@ */ #import "ConnectWindowController.h" - +#import "DebuggerConnection.h" @implementation ConnectWindowController @@ -47,4 +47,13 @@ [self release]; } +/** + * Creates a new DebuggerConnection object (and then completely forgets about it) and then close the window + */ +- (IBAction)connect: (id)sender +{ + [[DebuggerConnection alloc] initWithHost: [_host stringValue] port: [_port intValue] session: [_session stringValue]]; + [[self window] orderOut: self]; +} + @end diff --git a/Source/DebuggerConnection.h b/Source/DebuggerConnection.h new file mode 100644 index 0000000..d610007 --- /dev/null +++ b/Source/DebuggerConnection.h @@ -0,0 +1,31 @@ +/* + * MacGDBp + * Copyright (c) 2002 - 2007, 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 +#import "DebuggerWindowController.h" + +@interface DebuggerConnection : NSObject +{ + NSString *_host; + int _port; + NSString *_session; + + DebuggerWindowController *_windowController; +} + +- (id)initWithHost: (NSString *)host port: (int)port session: (NSString *)session; + +@end diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m new file mode 100644 index 0000000..acbd7cb --- /dev/null +++ b/Source/DebuggerConnection.m @@ -0,0 +1,51 @@ +/* + * MacGDBp + * Copyright (c) 2002 - 2007, 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 "DebuggerConnection.h" + + +@implementation DebuggerConnection + +/** + * Creates a new DebuggerConnection and initializes the socket from the given connection + * paramters. + */ +- (id)initWithHost: (NSString *)host port: (int)port session: (NSString *)session +{ + NSLog(@"initWithHost"); + if (self = [super init]) + { + _host = [host retain]; + _port = port; + _session = [session retain]; + _windowController = [[DebuggerWindowController alloc] initWithConnection: self]; + [[_windowController window] makeKeyAndOrderFront: self]; + } + return self; +} + +/** + * Deallocates all of the object's data members + */ +- (void)dealloc +{ + [_host release]; + [_session release]; + + [super dealloc]; +} + +@end diff --git a/Source/DebuggerWindowController.h b/Source/DebuggerWindowController.h new file mode 100644 index 0000000..d49a9b7 --- /dev/null +++ b/Source/DebuggerWindowController.h @@ -0,0 +1,28 @@ +/* + * MacGDBp + * Copyright (c) 2002 - 2007, 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 + +@class DebuggerConnection; + +@interface DebuggerWindowController : NSWindowController +{ + DebuggerConnection *_connection; +} + +- (id)initWithConnection: (DebuggerConnection *)cnx; + +@end diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m new file mode 100644 index 0000000..5848e7c --- /dev/null +++ b/Source/DebuggerWindowController.m @@ -0,0 +1,44 @@ +/* + * MacGDBp + * Copyright (c) 2002 - 2007, 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 "DebuggerWindowController.h" +#import "DebuggerConnection.h" + +@implementation DebuggerWindowController + +/** + * Initializes the window controller and sets the connection + */ +- (id)initWithConnection: (DebuggerConnection *)cnx +{ + if (self = [super initWithWindowNibName: @"Debugger"]) + { + _connection = [cnx retain]; + } + return self; +} + +/** + * Release object members + */ +- (void)dealloc +{ + [_connection release]; + + [super dealloc]; +} + +@end -- 2.22.5