| |
Getting Started
SDK API Reference
SDK API Features
Other Documentation
|
|
|
Progress Suite
Detailed Description
The Progress Suite provides a set of routines that allows the plug-in control over the display of the progress bar.
The Progress Suite is available in Adobe Photoshop 5.0 and later.
Accessing the Suite
The Progress suite is referred to as: #define kPSProgressSuite "Photoshop Progress Suite for Plug-ins"
The current version of the Progress suite: #define kPSProgressSuiteVersion1 1
The suite is acquired as follows: For PICA errors, see SPErrorCodes.h.
|
Data Structures |
| struct | PSProgressSuite1 |
| | The set of routines available in the Progress Suite. More...
|
Defines |
| #define | kPSProgressSuite "Photoshop Progress Suite for Plug-ins" |
| | Unique identifier for the Progress Suite.
|
| #define | kPSProgressSuiteVersion1 1 |
| | Current version of the progress suite.
|
Typedefs |
| typedef SPErr(*) | Progress_DoProgress (const ASZString zs, SPErr(*proc)(void *), void *refCon) |
| typedef SPErr(*) | Progress_DoTask (double taskLength, SPErr(*proc)(void *), void *refCon) |
| | Sections off a portion of the unused progress bar for execution of the subtask defined by proc.
|
| typedef SPErr(*) | Progress_DoSegmentTask (int32 segmentLength, int32 *done, int32 total, SPErr(*proc)(void *), void *refCon) |
| | Limits progress to a section of the progress bar based on executing segmentLength out of total steps.
|
| typedef void(*) | Progress_ChangeProgressText (const ASZString zs) |
| | Changes the current text in the progress bar.
|
| typedef SPErr(*) | Progress_DoPreviewTask (const char *selector, SPErr(*proc)(void *), void *refCon) |
| | Performs a task using the preview sniffing logic.
|
| typedef SPErr(*) | Progress_DoWatchTask (SPErr(*proc)(void *), void *refCon) |
| | Runs a task with the watch cursor up.
|
| typedef SPErr(*) | Progress_DoSuspendedWatchTask (SPErr(*proc)(void *), void *refCon) |
| | Runs a task without the watch cursor.
|
| typedef void(*) | Progress_ContinueWatchCursor (void) |
Define Documentation
| #define kPSProgressSuite "Photoshop Progress Suite for Plug-ins" |
Unique identifier for the Progress Suite.
| #define kPSProgressSuiteVersion1 1 |
Current version of the progress suite.
Typedef Documentation
| typedef SPErr(*) Progress_DoTask(double taskLength, SPErr(*proc)(void *), void *refCon) |
Sections off a portion of the unused progress bar for execution of the subtask defined by proc.
- Parameters:
-
| taskLength | The length of the progress bar to section off. Should be between 0.0 and 1.0. |
| proc | The procedure to execute as a subtask. |
| refCon | |
- Returns:
- The error code returned from
proc.
| typedef SPErr(*) Progress_DoSegmentTask(int32 segmentLength, int32 *done, int32 total, SPErr(*proc)(void *), void *refCon) |
Limits progress to a section of the progress bar based on executing segmentLength out of total steps.
- Parameters:
-
| segmentLength | |
| done | [OUT] A counter of how much has been accomplished so far. This is incremented by segmentLength if the task succeeds. (We need done because, as with DoTask, we care about the percentage of the remaining progress bar.) |
| total | The total number of steps. |
| proc | The procedure to execute as a segment of a task. |
| refCon | |
- Returns:
- The error code returned from
proc.
Changes the current text in the progress bar.
- Parameters:
-
| zs | The text to display in the progress bar. |
Performs a task using the preview sniffing logic.
This aborts if Photoshop encounters an event that meets the conditions indicated by selector. - Parameters:
-
| selector | The conditions that indicate when to abort the procedure. Should be one of the following:
- "up" Continue processing while mouse is up. Abort when mouse down or key stroke.
- "down" Continue processing while mouse is down. Abort when mouse is released.
- "paused" Continue processing while mouse is still. Abort when mouse is moved or released.
- NULL Causes the code to choose between "up" and "paused" dependent on the current mouse state.
|
| proc | The procedure to execute.. |
| refCon | |
- Returns:
- The error code returned from
proc, or an error resulting from an invalid selector value.
Runs a task with the watch cursor up.
- Parameters:
-
| proc | The procedure to execute. |
| refCon | |
- Returns:
- The error code returned from
proc.
Runs a task without the watch cursor.
This doesn't actually take the watch cursor down, but it does keep the watch from spinning. - Parameters:
-
| proc | The procedure to execute. |
| refCon | |
- Returns:
- The error code returned from
proc.
|
|