3 * Copyright (c) 2007 - 2008, Blue Static <http://www.bluestatic.org>
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17 #import <Cocoa/Cocoa.h>
19 @
class DebuggerConnection
;
21 @interface DebuggerWindowController
: NSWindowController
23 DebuggerConnection
*connection
;
25 IBOutlet NSArrayController
*stackController
;
28 IBOutlet NSTreeController
*registerController
;
29 IBOutlet NSOutlineView
*registerView
;
30 NSMutableSet
*expandedRegisters
;
32 IBOutlet NSTextField
*statusmsg
;
33 IBOutlet NSTextField
*errormsg
;
35 IBOutlet NSTextView
*sourceViewer
;
36 IBOutlet NSScrollView
*sourceViewerScroller
;
38 IBOutlet NSToolbarItem
*stepInButton
;
39 IBOutlet NSToolbarItem
*stepOutButton
;
40 IBOutlet NSToolbarItem
*stepOverButton
;
41 IBOutlet NSToolbarItem
*runButton
;
42 IBOutlet NSToolbarItem
*reconnectButton
;
45 @
property(readonly
) DebuggerConnection
*connection
;
47 - (id
)initWithPort
:(int)aPort session
:(NSString
*)aSession
;
49 - (void)resetDisplays
;
51 - (void)setStatus
:(NSString
*)aStatus
;
52 - (void)setError
:(NSString
*)anError
;
53 - (void)setStack
:(NSArray
*)node
;
54 - (void)setRegister
:(NSXMLDocument
*)reg
;
56 - (void)addChildren
:(NSArray
*)children toNode
:(NSTreeNode
*)node
;
58 - (IBAction
)run
:(id
)sender
;
59 - (IBAction
)stepIn
:(id
)sender
;
60 - (IBAction
)stepOut
:(id
)sender
;
61 - (IBAction
)stepOver
:(id
)sender
;
62 - (IBAction
)reconnect
:(id
)sender
;