File: programming/cocoa/UKProgressPanel.zip/UKProgressPanel_02/UKProgressPanel/UKProgressPanel.h


/* =============================================================================
	POJECT:		UKProgressPanel
	AUTHORS:	M. Uli Kusterer (UK), (c) 2003, all rights reserved.
	REQUIRES:	UKProgressPanel.m
				UKProgressPanel.nib
				UKProgressPanel.strings
				UKProgressPanelTask.h
				UKProgressPanelTask.m
				(UKProgressPanelTask.nib)
   ========================================================================== */
 
/** MT-Newswatcher/Finder-style progress window for keeping the user current on
	concurrently running tasks.
	
	The only interesting part of the UKProgressPanel class really is the
	category at the bottom of the file. It implements the IBAction
	orderFrontProgressPanel:, which you can use to implement a menu
	item to show the progress panel.
 
	\note   UKProgressPanel and UKProgressPanelTask are thread-safe. */
	
 
/* -----------------------------------------------------------------------------
	Headers:
   -------------------------------------------------------------------------- */
 
#import <Cocoa/Cocoa.h>
 
 
// Set this in compiler flags using -DUK_PROGRESS_PANEL_SAFARI_STYLE=1
//	Don't change this file.
#ifndef UK_PROGRESS_PANEL_SAFARI_STYLE
	#define UK_PROGRESS_PANEL_SAFARI_STYLE		1
#endif
 
 
 
/* -----------------------------------------------------------------------------
	Forwards:
   -------------------------------------------------------------------------- */// Forward declaration.
 
 
/* -----------------------------------------------------------------------------
	Controller:
   -------------------------------------------------------------------------- */// All instance variables are *private*:
///< View that we add our progress elements' views to.
///< Status field displaying the number of tasks.
///< The window in which we display our task list.
///< An array that doesn't retain its objects where we keep a list of all tasks.
}
 
+(UKProgressPanel*)	sharedProgressPanel;		///< Returns the shared progress panel instance.
///< Bring this instance's window to the front.
///< Cancel all running tasks.
// Private (automatically done for you on task creation):
/* -----------------------------------------------------------------------------
	Progress Panel NSApplication category:
   -------------------------------------------------------------------------- *//// Use this for implementing a "Tasks" or "Show Progress Panel" menu item:
///< Create and show the progress panel.
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.