API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPColorPanel Class Reference

#import <CPColorPanel.h>

+ Inheritance diagram for CPColorPanel:

Instance Methods

(selector) - action
 
(CPColor- color
 
(id) - init
 
(CPColorPanelMode) - mode
 
(float) - opacity
 
(void) - orderFront:
 
(void) - setAction:
 
(void) - setColor:
 
(void) - setColor:updatePicker:
 
(void) - setMode:
 
(void) - setOpacity:
 
(void) - setTarget:
 
(id) - target
 
- Instance Methods inherited from CPPanel
(BOOL) - becomesKeyOnlyIfNeeded
 
(BOOL) - canBecomeKeyWindow
 
(BOOL) - canBecomeMainWindow
 
(BOOL) - isFloatingPanel
 
(void) - setBecomesKeyOnlyIfNeeded:
 
(void) - setFloatingPanel:
 
(void) - setWorksWhenModal:
 
(BOOL) - worksWhenModal
 
- Instance Methods inherited from CPWindow
(BOOL) - acceptsFirstResponder
 
(BOOL) - acceptsMouseMovedEvents
 
(float) - alphaValue
 
(void) - animationDidEnd:
 
(CPTimeInterval) - animationResizeTime:
 
(CPWindow- attachedSheet
 
(BOOL) - autorecalculatesKeyViewLoop
 
(unsigned) - autoresizingMask
 
(void) - awakeFromCib
 
(CPColor- backgroundColor
 
(void) - becomeKeyWindow
 
(void) - becomeMainWindow
 
(void) - center
 
(void) - close
 
(BOOL) - containsPoint:
 
(CGRect) - contentRectForFrameRect:
 
(CPView- contentView
 
(CGPoint) - convertBaseToBridge:
 
(CGPoint) - convertBaseToGlobal:
 
(CGPoint) - convertBaseToPlatformWindow:
 
(CGPoint) - convertBaseToScreen:
 
(CGPoint) - convertBridgeToBase:
 
(CGPoint) - convertGlobalToBase:
 
(CGPoint) - convertPlatformWindowToBase:
 
(CGPoint) - convertScreenToBase:
 
(CPButton- defaultButton
 
(CPButton- defaultButtonCell
 
(id) - delegate
 
(void) - deminiaturize:
 
(void) - disableKeyEquivalentForDefaultButton
 
(void) - disableKeyEquivalentForDefaultButtonCell
 
(void) - doCommandBySelector:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - enableKeyEquivalentForDefaultButton
 
(void) - enableKeyEquivalentForDefaultButtonCell
 
(CPResponder- firstResponder
 
(CGRect) - frame
 
(CGRect) - frameRectForContentRect:
 
(BOOL) - hasShadow
 
(BOOL) - ignoresMouseEvents
 
(CPView- initialFirstResponder
 
(id) - initWithContentRect:styleMask:
 
(BOOL) - isDocumentEdited
 
(BOOL) - isDocumentSaving
 
(BOOL) - isFullBridge
 
(BOOL) - isFullPlatformWindow
 
(BOOL) - isKeyWindow
 
(BOOL) - isMainWindow
 
(void) - isMiniaturized
 
(void) - isMovable
 
(BOOL) - isMovableByWindowBackground
 
(BOOL) - isSheet
 
(BOOL) - isVisible
 
(void) - keyDown:
 
(int) - level
 
(BOOL) - makeFirstResponder:
 
(void) - makeKeyAndOrderFront:
 
(void) - makeKeyWindow
 
(void) - makeMainWindow
 
(CGSize) - maxSize
 
(void) - miniaturize:
 
(CGSize) - minSize
 
(void) - orderBack:
 
(void) - orderOut:
 
(void) - orderWindow:relativeTo:
 
(void) - performClose:
 
(BOOL) - performKeyEquivalent:
 
(void) - performMiniaturize:
 
(CPPlatformWindow- platformWindow
 
(void) - recalculateKeyViewLoop
 
(void) - redo:
 
(CPArray- registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(CPString- representedFilename
 
(CPURL- representedURL
 
(void) - resignKeyWindow
 
(void) - resignMainWindow
 
(CGSize) - resizeIndicatorOffset
 
(void) - resizeWithOldPlatformWindowSize:
 
(CPScreen- screen
 
(void) - selectKeyViewFollowingView:
 
(void) - selectKeyViewPrecedingView:
 
(void) - selectNextKeyView:
 
(void) - selectPreviousKeyView:
 
(void) - sendEvent:
 
(void) - setAcceptsMouseMovedEvents:
 
(void) - setAlphaValue:
 
(void) - setAutorecalculatesKeyViewLoop:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setContentView:
 
(void) - setDefaultButton:
 
(void) - setDefaultButtonCell:
 
(void) - setDelegate:
 
(void) - setDocumentEdited:
 
(void) - setDocumentSaving:
 
(void) - setFrame:
 
(void) - setFrame:display:
 
(void) - setFrame:display:animate:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setFullBridge:
 
(void) - setFullPlatformWindow:
 
(void) - setHasShadow:
 
(void) - setIgnoresMouseEvents:
 
(void) - setInitialFirstResponder:
 
(void) - setLevel:
 
(void) - setMaxSize:
 
(void) - setMinSize:
 
(void) - setMovable:
 
(void) - setMovableByWindowBackground:
 
(void) - setPlatformWindow:
 
(void) - setRepresentedFilename:
 
(void) - setRepresentedURL:
 
(void) - setResizeIndicatorOffset:
 
(void) - setShadowStyle:
 
(void) - setShowsResizeIndicator:
 
(void) - setTitle:
 
(void) - setTitleWithRepresentedFilename:
 
(void) - setToolbar:
 
(void) - setWindowController:
 
(BOOL) - showsResizeIndicator
 
(unsigned) - styleMask
 
(CPString- title
 
(void) - toggleToolbarShown:
 
(CPToolbar- toolbar
 
(void) - undo:
 
(CPUndoManager- undoManager
 
(void) - unregisterDraggedTypes
 
(CPWindowController- windowController
 
(int) - windowNumber
 
- Instance Methods inherited from CPResponder
(BOOL) - becomeFirstResponder
 
(void) - encodeWithCoder:
 
(void) - flagsChanged:
 
(id) - initWithCoder:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseDown:
 
(void) - mouseDragged:
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(void) - mouseMoved:
 
(void) - mouseUp:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseDown:
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(void) + provideColorPickerClass:
 
(void) + setPickerMode:
 
(CPColorPanel+ sharedColorPanel
 
- Class Methods inherited from CPWindow
(CGRect) + frameRectForContentRect:styleMask:
 
(int) + globalResizeStyle
 
(void) + initialize
 
(void) + setGlobalResizeStyle:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

CPColorPanel provides a reusable panel that can be used displayed on screen to prompt the user for a color selection. To obtain the panel, call the +sharedColorPanel method.

Definition at line 2 of file CPColorPanel.h.

Method Documentation

- (selector) action
implementation

Returns the current target action.

Definition at line 214 of file CPColorPanel.j.

- (CPColor) color
implementation

Returns the panel's currently selected color.

Definition at line 173 of file CPColorPanel.j.

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPWindow.

Definition at line 114 of file CPColorPanel.j.

- (CPColorPanelMode) mode
implementation

Returns the color panel's current display mode.

Definition at line 262 of file CPColorPanel.j.

- (float) opacity
implementation

Definition at line 178 of file CPColorPanel.j.

- (void) orderFront: (id)  aSender
implementation

Makes the receiver the front most window in the screen ordering.

Parameters
aSenderthe object that requested this

Reimplemented from CPWindow.

Definition at line 267 of file CPColorPanel.j.

+ (void) provideColorPickerClass: (Class)  aColorPickerSubclass
implementation

A list of color pickers is collected here, and any color panel created will contain any picker in this list up to this point. In other words, call before creating a color panel.

Definition at line 84 of file CPColorPanel.j.

- (void) setAction: (selector)  anAction
implementation

Sets the action that gets sent to the target. This action is sent whenever a color is selected in the panel.

Parameters
anActionthe action that will be sent

Definition at line 206 of file CPColorPanel.j.

- (void) setColor: (CPColor aColor
implementation

Sets the color of the panel, and updates the picker. Also posts a CPColorPanelDidChangeNotification.

Definition at line 139 of file CPColorPanel.j.

- (void) setColor: (CPColor aColor
updatePicker: (BOOL)  bool 
implementation

Sets the selected color of the panel and optionally updates the picker.

Parameters
boolwhether or not to update the picker

Definition at line 162 of file CPColorPanel.j.

- (void) setMode: (CPColorPanelMode)  mode
implementation

Sets the mode (look) of the color panel.

Parameters
modethe mode in which to display the color panel

Definition at line 223 of file CPColorPanel.j.

- (void) setOpacity: (id)  sender
implementation

Definition at line 393 of file CPColorPanel.j.

+ (void) setPickerMode: (CPColorPanelMode)  mode
implementation

Sets the mode for the shared color panel.

Parameters
modethe mode to which the color panel will be set

Definition at line 104 of file CPColorPanel.j.

- (void) setTarget: (id)  aTarget
implementation

Sets the target for the color panel. Messages are sent to the target when colors are selected in the panel.

Definition at line 187 of file CPColorPanel.j.

+ (CPColorPanel) sharedColorPanel
implementation

Returns (and if necessary, creates) the shared color panel.

Definition at line 92 of file CPColorPanel.j.

- (id) target
implementation

Returns the current target. The target receives messages when colors are selected in the panel.

Definition at line 196 of file CPColorPanel.j.


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