ProjectManager  0.2
Public Member Functions | Protected Attributes
ProjectWindowController Class Reference

List of all members.

Public Member Functions

(id) - initWithWindowNibName:ownerDocument:
(void) - switchView:
 Action invoked when a module-switch has been requested, either from the project window's switcher popup, or from a menu item (unused so far).
(void) - selectModule:
 Puts the project module in the project module list at index `moduleNumber' into the receiver's window.
(void) - setCurrentModule:
 Sets the current module displayed in the receiver's project window.
(id< ProjectModule >) - currentModule
(NSToolbarItem *) - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:
(NSArray *) - toolbarAllowedItemIdentifiers:
 Returns the allowed item identifiers for a project window toolbar.
(NSArray *) - toolbarDefaultItemIdentifiers:
 Returns the default item identifiers for a project window toolbar.
(BOOL) - validateToolbarItem:
(void) - projectNameChanged:
 Notification method invoked when the project name changes - we then update our window's title to hold it.
(void) - logMessage:
 Appends a message to the project log.

Protected Attributes

id myWindow
NSBox * box
NSObject< ProjectModule > * currentModule
 Returns the currently visible project module.
NSToolbar * toolbar
NSToolbarItem * switcherItem
NSToolbarItem * logItem
NSPopUpButton * moduleSwitcher
NSTextView * log
ProjectDocumentowner

Member Function Documentation

- (void) logMessage: (NSString *)  aMessage

Appends a message to the project log.

Parameters:
aMessageThe message which to append. It does not have to end with a newline character - one is automatically appended if necessary.

Referenced by ProjectDocument::logMessage:.

- (void) setCurrentModule: (id <ProjectModule>)  aModule

Sets the current module displayed in the receiver's project window.

Parameters:
aModuleThe module which to display. It must be one of the project's modules, otherwise an exception is thrown.

References currentModule.

Referenced by selectModule:, and ProjectDocument::setCurrentProjectModule:.

- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar*)  toolbar

Returns the allowed item identifiers for a project window toolbar.

The allowed item identifiers are first our project module switcher, then any of the standard toolbar items (NSToolbarSeparatorItemIdentifier etc.) and then any item identifiers returned when sending the responsible module a allowedToolbarItemIdentifiers message.

References ProjectDocument::projectModules.

- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar*)  toolbar

Returns the default item identifiers for a project window toolbar.

The default item identifiers are first our project module switcher, then a separator and then any item identifiers returned when sending the responsible module a defaultToolbarItemIdentifiers message.


Member Data Documentation

- (id< ProjectModule >) currentModule [protected]

Returns the currently visible project module.

To some stuff (e.g. the debugger's inspectors) this information is better than the current tab.

Referenced by ProjectDocument::currentProjectModule, and setCurrentModule:.


The documentation for this class was generated from the following files: