Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (56 sloc) 2.045 kb
dc5be1c Initial check-in.
uli authored
1 //
2 // UKDockProgressIndicator.h
3 // Doublette
4 //
5 // Created by Uli Kusterer on 30.04.05.
720b0e7 @uliwitness Added licensing information to the source files.
authored
6 // Copyright 2005 Uli Kusterer.
7 //
8 // This software is provided 'as-is', without any express or implied
9 // warranty. In no event will the authors be held liable for any damages
10 // arising from the use of this software.
11 //
12 // Permission is granted to anyone to use this software for any purpose,
13 // including commercial applications, and to alter it and redistribute it
14 // freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 //
21 // 2. Altered source versions must be plainly marked as such, and must not be
22 // misrepresented as being the original software.
23 //
24 // 3. This notice may not be removed or altered from any source
25 // distribution.
dc5be1c Initial check-in.
uli authored
26 //
27
28 #import <Cocoa/Cocoa.h>
29
30
31 /* A class that displays a determinate progress indicator (progress bar)
32 on top of the app's icon in the dock. Use it just like an NSProgressIndicator.
33 You can even have it call through to another progress indicator if desired. */
34
885d772 @mikeabdullah Support NSValueBinding.
mikeabdullah authored
35 /* Supports NSValueBinding
36 */
37
dc5be1c Initial check-in.
uli authored
38 @interface UKDockProgressIndicator : NSObject
39 {
40 double max;
41 double min;
42 double current;
43 IBOutlet NSProgressIndicator* progress;
d737eaa @danwood tweaks to dock progress indicator
danwood authored
44 BOOL hidden;
09d47b5 @danwood Several code changes (and nib fixes) to allow *most* alerts to show w…
danwood authored
45 NSImage* savedDockIcon;
dc5be1c Initial check-in.
uli authored
46 }
47
48 // NSProgressIndicator compatibility stuff:
49 // These forward to "progress" if you've hooked that up in IB.
50 -(void) setMinValue: (double)mn;
51 -(double) minValue;
52
53 -(void) setMaxValue: (double)mn;
54 -(double) maxValue;
55
56 -(void) setDoubleValue: (double)mn;
57 -(double) doubleValue;
58
59 -(void) setNeedsDisplay: (BOOL)mn;
60 -(void) display;
61
62 -(void) setHidden: (BOOL)flag;
63 -(BOOL) isHidden;
64
65 // private:
66 -(void) updateDockTile;
67
68 @end
Something went wrong with that request. Please try again.