< LynkeosProcessingView > Protocol Reference

Protocol implemented by the "view" part of each processing. More...

#import <LynkeosProcessingView.h>

Inheritance diagram for < LynkeosProcessingView >:

Inheritance graph
[legend]
Collaboration diagram for < LynkeosProcessingView >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithWindowController:document:configuration:
 Initialize a processing view instance.
(NSView *) - getProcessingView
 Access to the processing view.
(LynkeosProcessingViewFrame_t- preferredDisplay
 Prefered way of displaying the processing view.
(Class) - processingClass
 What processing class is controlled by this processing view.
(void) - setActiveView:
 Informs about activity of the view.
(id< LynkeosProcessingParameter >) - getCurrentParameters
 Get the parameters being processed.

Static Public Member Functions

(BOOL) + isStandardProcessingViewController
 Should the plugin controller auto-register that class.
(ProcessingViewKind_t+ processingViewKindForConfig:
 Category to which this processing view controller belongs.
(BOOL) + isViewControllingProcess:withConfig:
 Whether this view controls the given processing class.
(void) + getProcessingTitle:toolTitle:key:icon:tip:forConfig:
 View characteristics.
(unsigned int) + allowedDisplaysForConfig:
 Allowed ways of displaying the process view.


Detailed Description

Protocol implemented by the "view" part of each processing.

The processing view class is instantiated by the main window controller when needed.
Remark: Each instance is attached to one document and window controller.


Member Function Documentation

+ (BOOL) isStandardProcessingViewController  

Should the plugin controller auto-register that class.

The processing view is given here an opportunity to register some alternate view with the plugin controller. If it does so, it shall return "No" to avoid being registered the standard way.
Standard processing view controllers shall just return "Yes".

Returns:
Whether to register as a standard processing controller

+ (ProcessingViewKind_t) processingViewKindForConfig: (id< NSObject >)  config  

Category to which this processing view controller belongs.

Returns:
The processing view kind

+ (BOOL) isViewControllingProcess: (Class)  processingClass
withConfig: (id< NSObject > *)  config 

Whether this view controls the given processing class.

Parameters:
processingClass The processing class which cotroller is looked for
[out] config The config for this processing class if any
Returns:
Whether this view controls the given processing class This method is used only for "image processing" controllers. Other kind of processing controller shall return NO.
It is assumed that only one controller respond YES for any given processing class ; if not, the first in the scan will be taken.

+ (void) getProcessingTitle: (NSString **)  title
toolTitle: (NSString **)  toolTitle
key: (NSString **)  key
icon: (NSImage **)  icon
tip: (NSString **)  tip
forConfig: (id< NSObject >)  config 

View characteristics.

Parameters:
title The (localized) name of the processing, used in the menu.
toolTitle The (localized) name of the processing, used in the toolbar
key A key shortcut for this item's menu.
icon The processing icon, used in the toolbar.
tip A tooltip for that processing
config The optional configuration object The values should be the same as those returned for the preferences pane, if any.
The plugin controller, at startup, scans for classes implenting this protocol, the toolbar and menu are built by calling this method.

+ (unsigned int) allowedDisplaysForConfig: (id< NSObject >)  config  

Allowed ways of displaying the process view.

Returns:
Bitfield of the allowed displays (LynkeosProcessingViewFrame_t)

- (id) initWithWindowController: (id< LynkeosWindowController >)  window
document: (id< LynkeosViewDocument >)  document
configuration: (id< NSObject >)  config 

Initialize a processing view instance.

Parameters:
window The window controller
document The document
config Optional configuration for customizing the view

- (NSView*) getProcessingView  

Access to the processing view.

Returns:
The view which controls a processing

- (LynkeosProcessingViewFrame_t) preferredDisplay  

Prefered way of displaying the processing view.

This is not a class method to allow for "per document" customization

Returns:
Preferred display

- (Class) processingClass  

What processing class is controlled by this processing view.

Returns:
The processing class controlled by this instance

- (id <LynkeosProcessingParameter>) getCurrentParameters  

Get the parameters being processed.

Returns:
The current parameters. The image processing view shall allocate new parameters if applicable and it has no parameters yet. Other kind of processing need not return anything if they have no parameters or if their parameters are spread on the items of the list.


The documentation for this protocol was generated from the following file:
Generated on Sat Mar 22 17:44:50 2008 for Lynkeos by  doxygen 1.5.4