#import <CPProgressIndicator.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(CPDictionary) | + themeAttributes |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(void) | + initialize |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
This class is used in a Cappuccino GUI to display the progress of a function or task. If the duration of the task is unknown, there is also an indeterminate mode for the indicator.
Definition at line 2 of file CPProgressIndicator.h.
|
implementation |
Returns the progress indicator's size
Definition at line 237 of file CPProgressIndicator.j.
|
implementation |
Definition at line 252 of file CPProgressIndicator.j.
Reimplemented from CPView.
Definition at line 372 of file CPProgressIndicator.j.
|
implementation |
Reimplemented from CPView.
Definition at line 69 of file CPProgressIndicator.j.
|
implementation |
Returns the value of the progress indicator.
Definition at line 180 of file CPProgressIndicator.j.
|
implementation |
Definition at line 366 of file CPProgressIndicator.j.
|
implementation |
Draws the receiver into aRect
. This method should be overridden by subclasses.
aRect | the area that should be drawn into |
Reimplemented from CPView.
Definition at line 443 of file CPProgressIndicator.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPView.
Provided by category CPProgressIndicator(CPCoding).
Definition at line 516 of file CPProgressIndicator.j.
|
implementation |
Increases the progress of the bar by the specified value.
aValue | the amount to increase the progress value |
Definition at line 162 of file CPProgressIndicator.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPView.
Provided by category CPProgressIndicator(CPCoding).
Definition at line 496 of file CPProgressIndicator.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Definition at line 98 of file CPProgressIndicator.j.
|
implementation |
Definition at line 267 of file CPProgressIndicator.j.
|
implementation |
Returns YES
if the progress bar is displayed when not animating.
Definition at line 341 of file CPProgressIndicator.j.
|
implementation |
Returns YES
if the progress bar is indeterminate.
Definition at line 289 of file CPProgressIndicator.j.
|
implementation |
Reimplemented from CPView.
Definition at line 409 of file CPProgressIndicator.j.
|
implementation |
Returns the maximum value of the progress indicator.
Definition at line 214 of file CPProgressIndicator.j.
|
implementation |
Returns the minimum value of the progress indicator.
Definition at line 197 of file CPProgressIndicator.j.
|
implementation |
Reimplemented from CPView.
Definition at line 377 of file CPProgressIndicator.j.
|
implementation |
Definition at line 260 of file CPProgressIndicator.j.
|
implementation |
Sets the progress indicator's size.
aControlSize | the new size |
Definition at line 224 of file CPProgressIndicator.j.
|
implementation |
Definition at line 245 of file CPProgressIndicator.j.
|
implementation |
Sets whether the indicator should be displayed when it isn't animating. By default this is YES
if the style is CPProgressIndicatorBarStyle, and NO
if it's CPProgressIndicatorSpinningStyle.
isDisplayedWhenStopped | YES means the indicator will be displayed when it's not animating. |
Definition at line 326 of file CPProgressIndicator.j.
|
implementation |
Sets the progress value of the indicator.
Definition at line 170 of file CPProgressIndicator.j.
|
implementation |
Sets the receiver's frame size. If aSize
is the same as the frame's current dimensions, this method simply returns. The method posts a CPViewFrameDidChangeNotification to the default notification center if the receiver is configured to do so.
aSize | the new size for the frame |
Reimplemented from CPView.
Definition at line 358 of file CPProgressIndicator.j.
|
implementation |
Specifies whether this progress indicator should be indeterminate or display progress based on it's max and min.
isDeterminate | YES makes the indicator indeterminate |
Definition at line 276 of file CPProgressIndicator.j.
|
implementation |
Sets the maximum value of the progress indicator. The default is 100.0.
aValue | the new maximum value. |
Definition at line 206 of file CPProgressIndicator.j.
|
implementation |
Sets the minimum value of the progress indicator. The default is 0.0.
aValue | the new minimum value |
Definition at line 189 of file CPProgressIndicator.j.
|
implementation |
Sets the progress indicator's style
aStyle | the style to set it to |
Definition at line 298 of file CPProgressIndicator.j.
|
implementation |
Definition at line 123 of file CPProgressIndicator.j.
|
implementation |
Resizes the indicator based on it's style.
Definition at line 313 of file CPProgressIndicator.j.
|
implementation |
Starts the animation of the progress indicator in indeterminate mode.
the | requesting object |
Definition at line 131 of file CPProgressIndicator.j.
|
implementation |
Stops the animation of the progress indicator in indeterminate mode.
the | requesting object |
Definition at line 142 of file CPProgressIndicator.j.
|
implementation |
Reimplemented from CPView.
Definition at line 74 of file CPProgressIndicator.j.
|
implementation |
Definition at line 397 of file CPProgressIndicator.j.
|
implementation |
Always returns NO
. Cappuccino does not have multiple threads.
Definition at line 152 of file CPProgressIndicator.j.