forked from irlabs/TransparentWebView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreferenceController.h
executable file
·50 lines (37 loc) · 1.39 KB
/
PreferenceController.h
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
//
// PreferenceController.h
// TransparentWebView
//
// Created by Dirk van Oosterbosch on 24-02-11.
// Copyright 2011 IR labs. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern NSString *const TWVShouldAutomaticReloadKey;
extern NSString *const TWVAutomaticReloadIntervalKey;
extern NSString *const TWVAutomaticReloadChangedNotification;
extern NSString *const TWVOpacityKey;
extern NSString *const TWVOpacityChangedNotification;
@interface PreferenceController : NSWindowController {
IBOutlet NSButton *autoRefreshCheckBox;
IBOutlet NSSlider *autoRefreshIntervalSlider;
IBOutlet NSTextField *autoRefreshIntervalValueLabel;
IBOutlet NSTextField *autoRefreshInfoLabel;
IBOutlet NSTextField *autoRefreshRightMark;
IBOutlet NSTextField *autoRefreshMiddleMark;
IBOutlet NSTextField *autoRefreshLeftMark;
IBOutlet NSTextField *opacityInfoLabel;
IBOutlet NSSlider *opacitySlider;
IBOutlet NSTextField *opacityValueLabel;
float lastSliderValue;
NSMutableArray *sliderDeltas;
}
- (IBAction)changeAutomaticRefresh:(id)sender;
- (IBAction)changeAutoRefreshValue:(id)sender;
- (IBAction)changeOpacityValue:(id)sender;
- (BOOL)shouldAutomaticReload;
- (int)automaticReloadInterval;
- (void)setAutomaticReloadEnabled:(BOOL)enabledState;
- (void)setAutomaticIntervalLabelValue:(int)seconds;
- (double)opacity;
- (void)setOpacityValue:(double)opacity setPreference:(BOOL)setPreference;
@end