-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a progressbar to the dock icon
- Loading branch information
Showing
9 changed files
with
346 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+205 Bytes
Externals/UKDockProgressIndicator/English.lproj/MiniProgressGradient.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
Externals/UKDockProgressIndicator/UKDockProgressIndicator Readme.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
UKDOCKPROGRESSINDICATOR | ||
----------------------- | ||
|
||
A class that shows a small determinate progress bar overlaid over your application's dock icon. | ||
|
||
This is intended as a drop-in replacement for the NSProgressIndicator view, as it understands the same messages. You can even have the dock progress indicator forward all calls to the view, thus driving both without changing your existing code. | ||
|
||
|
||
LICENSE: | ||
|
||
(c) 2005 by M. Uli Kusterer. You may redistribute, modify, use in | ||
commercial products free of charge, however distributing modified copies | ||
requires that you clearly mark them as having been modified by you, while | ||
maintaining the original markings and copyrights. I don't like getting bug | ||
reports about code I wasn't involved in. | ||
|
||
I'd also appreciate if you gave credit in your app's about screen or a similar | ||
place. A simple "Thanks to M. Uli Kusterer" is quite sufficient. | ||
Also, I rarely turn down any postcards, gifts, complementary copies of | ||
applications etc. | ||
|
||
|
||
REVISION HISTORY: | ||
0.1 - Initial release. | ||
|
||
|
||
CONTACT: | ||
Get the newest version at http://www.zathras.de | ||
E-Mail me at witness (at) zathras (dot) de or witness (dot) of (dot) teachtext (at) gmx (dot) net |
52 changes: 52 additions & 0 deletions
52
Externals/UKDockProgressIndicator/UKDockProgressIndicator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// UKDockProgressIndicator.h | ||
// Doublette | ||
// | ||
// Created by Uli Kusterer on 30.04.05. | ||
// Copyright 2005 M. Uli Kusterer. All rights reserved. | ||
// | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Headers: | ||
// ----------------------------------------------------------------------------- | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
|
||
/* A class that displays a determinate progress indicator (progress bar) | ||
on top of the app's icon in the dock. Use it just like an NSProgressIndicator. | ||
You can even have it call through to another progress indicator if desired. */ | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Class Declarationâ: | ||
// ----------------------------------------------------------------------------- | ||
|
||
@interface UKDockProgressIndicator : NSObject | ||
{ | ||
IBOutlet NSProgressIndicator* progress; // A progress indicator view to call through to. | ||
double max; | ||
double min; | ||
double current; | ||
} | ||
|
||
// NSProgressIndicator compatibility stuff: | ||
// These forward to "progress" if you've hooked that up in IB. | ||
-(void) setMinValue: (double)mn; | ||
-(double) minValue; | ||
|
||
-(void) setMaxValue: (double)mn; | ||
-(double) maxValue; | ||
|
||
-(void) setDoubleValue: (double)mn; | ||
-(double) doubleValue; | ||
|
||
-(void) setNeedsDisplay: (BOOL)mn; | ||
-(void) display; | ||
|
||
-(void) setHidden: (BOOL)flag; | ||
-(BOOL) isHidden; | ||
|
||
// private: | ||
-(void) updateDockTile; | ||
|
||
@end |
Oops, something went wrong.