ProjectManager  0.2
Instance Methods | Protected Attributes | List of all members
ProjectWindowController Class Reference
Inheritance diagram for ProjectWindowController:

Instance Methods

(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. More...
 
(id< ProjectModule >) - currentModule
 
(NSToolbarItem *) - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:
 
(NSArray *) - toolbarAllowedItemIdentifiers:
 Returns the allowed item identifiers for a project window toolbar. More...
 
(NSArray *) - toolbarDefaultItemIdentifiers:
 Returns the default item identifiers for a project window toolbar. More...
 
(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. More...
 

Protected Attributes

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

Method Documentation

◆ logMessage:

- (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:.

◆ setCurrentModule:

- (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:.

◆ toolbarAllowedItemIdentifiers:

- (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.

◆ toolbarDefaultItemIdentifiers:

- (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

◆ currentModule

- (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: