-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgressController.h
More file actions
50 lines (45 loc) · 1.63 KB
/
Copy pathProgressController.h
File metadata and controls
50 lines (45 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// ===========================================================================
// ProgressController.h
// Reduce3D
//
// Created by David Hirsch on 11/25/07.
// Copyright 2011 David Hirsch.
// Distributed under the terms of the GNU General Public License v3
// See file "COPYING for more info.
// ===========================================================================
#import <Cocoa/Cocoa.h>
enum PauseButtonStates {kResume, kPause};
const short kDefaultNumThermoIncrements = 50; // number of increments in progress bar
@interface ProgressController : NSWindowController {
IBOutlet NSButton *pauseButton;
IBOutlet NSButton *stopButton;
IBOutlet NSTextField *shaveText;
IBOutlet NSTextField *envelopeText;
IBOutlet NSTextField *message;
IBOutlet NSTextField *timeLeft;
IBOutlet NSTextField *timeLeftPrompt;
IBOutlet NSProgressIndicator *progBar;
short mNumIncrements;
double mLastTickValue;
NSDate *mStartTime;
bool mRateBasetimeSet;
}
- (IBAction)pause:(id)sender;
- (IBAction)stop:(id)sender;
- (void)showMyWindow;
- (void)hideWindow;
- (void)setEnvelopeMessage:(NSString *) inMessage;
- (void)setShaveMessage:(NSString*) inMessage;
- (void)setProgMessage:(NSString *) inMessage;
- (void)setProgMessageWithCString:(char *) inMessage;
- (void)setProgTitle:(NSString *) inStr;
- (void)setProgTitleWithCString:(char *) inStr;
- (void)setProgMinValue:(double) inVal;
- (void)setProgMaxValue:(double) inVal;
- (void)setProgMin:(double)inMin max:(double)inMax cur:(double)inCur;
- (void)thisMuchCompleted:(double) inCur;
- (void)spinPattern;
- (void)setIncrements:(short)inVal;
- (void)setIndeterminate:(bool)inVal;
- (bool)isIndeterminate;
@end