API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPStepper Class Reference

#import <CPStepper.h>

+ Inheritance diagram for CPStepper:

Instance Methods

(BOOL) - autorepeat
 
(void) - encodeWithCoder:
 
(int) - increment
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - layoutSubviews
 
(int) - maxValue
 
(int) - minValue
 
(IBAction) - performClickDown:
 
(IBAction) - performClickUp:
 
(void) - setAutorepeat:
 
(void) - setDoubleValue:
 
(void) - setEnabled:
 
(void) - setFrame:
 
(void) - setIncrement:
 
(void) - setMaxValue:
 
(void) - setMinValue:
 
(void) - setValueWraps:
 
(BOOL) - valueWraps
 
- Instance Methods inherited from CPControl
(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(BOOL) - continueTracking:at:
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(void) - mouseDown:
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(id) - objectValue
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setContinuous:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setImageScaling:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setObjectValue:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(CPString- stringValue
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidChange:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(CPTextVerticalAlignment) - verticalAlignment
 

Class Methods

(CPString+ defaultThemeClass
 
(CPStepper+ stepper
 
(CPStepper+ stepperWithInitialValue:minValue:maxValue:
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPControl
(void) + initialize
 

Detailed Description

CPStepper is an implementation of Cocoa NSStepper.

This control displays a two part button that can be used to increase or decrease a value with a given interval.

Definition at line 2 of file CPStepper.h.

Method Documentation

- (BOOL) autorepeat
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 360 of file CPStepper.j.

+ (CPString) defaultThemeClass
implementation

Definition at line 262 of file CPStepper.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPControl.

Provided by category CPStepper(CPCoding).

Definition at line 321 of file CPStepper.j.

- (int) increment
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 368 of file CPStepper.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPControl.

Provided by category CPStepper(CPCoding).

Definition at line 305 of file CPStepper.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes a CPStepper.

Parameters
aFramethe frame of the control
Returns
initialized CPStepper

Reimplemented from CPControl.

Definition at line 101 of file CPStepper.j.

- (void) layoutSubviews
implementation

Definition at line 170 of file CPStepper.j.

- (int) maxValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 384 of file CPStepper.j.

- (int) minValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 400 of file CPStepper.j.

- (IBAction) performClickDown: (id)  aSender
implementation

Perform a programatic click on down button.

Parameters
aSendersender of the action

Definition at line 253 of file CPStepper.j.

- (IBAction) performClickUp: (id)  aSender
implementation

Perform a programatic click on up button.

Parameters
aSendersender of the action

Definition at line 244 of file CPStepper.j.

- (void) setAutorepeat: (BOOL)  shouldAutoRepeat
implementation

Set if CPStepper should autorepeat.

Parameters
shouldAutoRepeatif YES, the first mouse down does one increment (decrement) and, after each delay of 0.5 seconds

Definition at line 198 of file CPStepper.j.

- (void) setDoubleValue: (double)  aValue
implementation

Set the current value of the stepper.

Parameters
aValuea float containing the value

Reimplemented from CPControl.

Definition at line 213 of file CPStepper.j.

- (void) setEnabled: (BOOL)  shouldEnabled
implementation

Set if the CPStepper is enabled or not.

Parameters
shouldEnabledBOOL that define if stepper is enabled or not.

Reimplemented from CPControl.

Definition at line 148 of file CPStepper.j.

- (void) setFrame: (CGRect)  aFrame
implementation

Definition at line 157 of file CPStepper.j.

- (void) setIncrement: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 376 of file CPStepper.j.

- (void) setMaxValue: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 392 of file CPStepper.j.

- (void) setMinValue: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 408 of file CPStepper.j.

- (void) setValueWraps: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 352 of file CPStepper.j.

+ (CPStepper) stepper
implementation

Initializes a CPStepper with default values:

  • minValue = 0.0
  • maxValue = 59.0
  • value = 0.0
Returns
Initialized CPStepper

Definition at line 75 of file CPStepper.j.

+ (CPStepper) stepperWithInitialValue: (float)  aValue
minValue: (float)  aMinValue
maxValue: (float)  aMaxValue 
implementation

Initializes a CPStepper with given values.

Parameters
aValuethe initial value of the CPStepper
minValuethe minimal acceptable value of the stepper
maxValuethe maximal acceptable value of the stepper
Returns
Initialized CPStepper

Definition at line 53 of file CPStepper.j.

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPControl.

Definition at line 267 of file CPStepper.j.

- (BOOL) valueWraps
implementation

Synthesized accessor method.

Provided by category CPStepper(CPSynthesizedAccessors).

Definition at line 344 of file CPStepper.j.


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