DRBurnProgressPanel

Inherits from:
Declared In:

Overview

Manages a panel that displays progress while burning data to media.

Discussion

A DRBurnProgressPanel object manages a panel that displays and updates burn progress. The burn panel is responsible for begining the burn.

The burn is begun and a progress panel is displayed on screen by calling beginProgressSheetForBurn:layout:modalForWindow: if a sheet interface is desired, or beginProgressPanelForBurn:layout: for a non-modal panel.

A DRBurnProgressPanel sends a burnProgressPanel:burnDidFinish: message to it's delegate when the burn completes. This method allows the delegate to take over end-of-burn handling from the burn progress panel to customize error dialogs or user notification.



Methods

-beginProgressPanelForBurn:layout:

Presents the progress panel on screen and begins the burn process.

-beginProgressSheetForBurn:layout:modalForWindow:

Presents the progress panel as a sheet and begins the burn process.

-description

Returns the description string displayed in the panel.

+progressPanel

Creates and returns an instance of the burn progress panel.

-setDescription:

Sets the panel text displayed to the user.

-setVerboseProgressStatus:

Sets the vebosity of the progress feedback.

-stopBurn:

Invoked when the user clicks the panel's stop button.

-verboseProgressStatus

Returns the vebosity of the panel.


beginProgressPanelForBurn:layout:


Presents the progress panel on screen and begins the burn process.

- (void) beginProgressPanelForBurn:(DRBurn*)burn layout:(id)layout; 
Parameters
burn

The object performing the burn.

layout

The data to be burned to disc. See the DRBurn documentation for information on valid layouts.

Discussion

This method returns control to the caller after it has displayed the progress sheet and begun the burn. Once the method has returned the caller can perform other operations while the burn continues.


beginProgressSheetForBurn:layout:modalForWindow:


Presents the progress panel as a sheet and begins the burn process.

- (void) beginProgressSheetForBurn:(DRBurn*)burn layout:(id)layout 
        modalForWindow:(NSWindow *)docWindow; 
Parameters
burn

The object performing the burn.

layout

The data to be burned to disc. See the DRBurn documentation for information on valid layouts.

docWindow

The window the sheet will be attached to. If docWindow is not nil, the panel slides down as a sheet running as a document modal window. If owner is nil, this is an error.

Discussion

This method returns control to the caller after it has displayed the progress sheet and begun the burn. Once the method has returned the caller can perform other operations while the burn continues.


description


Returns the description string displayed in the panel.

- (NSString*) description; 
Return Value

An NSString containing the text of the description.

Discussion

If no description is explicitly set, this method will return the standard text string.


progressPanel


Creates and returns an instance of the burn progress panel.

+ (DRBurnProgressPanel*) progressPanel; 
Return Value

A pointer to the newly created DRBurnProgressPanel.


setDescription:


Sets the panel text displayed to the user.

- (void) setDescription:(NSString*)description; 
Parameters
description

The text to display.

Discussion

The panel's description is typically a short text string that gives an indication to the user what operation is being performed. If no description is explicitly set, the progress panel uses a standard text string suitable to the burn.


setVerboseProgressStatus:


Sets the vebosity of the progress feedback.

- (void) setVerboseProgressStatus:(BOOL)verbose; 
Parameters
verbose

A BOOL value indicating how detailed the status panel feedback should be.

Discussion

If verbose is YES, the panel will update status for every change. If verbose is NO, the panel will filter some status messages and only update for major changes. The default for the panel is filter the status messages.


stopBurn:


Invoked when the user clicks the panel's stop button.

- (IBAction) stopBurn:(id)sender; 


verboseProgressStatus


Returns the vebosity of the panel.

- (BOOL) verboseProgressStatus; 
Return Value

A BOOL value indicating how detailed the status panel feedback is.

Discussion

This method will return YES if the panel will update status for every change and NO if the panel will filter some status messages and only update for major changes.

 

Last Updated: 2009-08-13