|
3 | 3 | // SelfControl
|
4 | 4 | //
|
5 | 5 | // Created by Charlie Stigler on 1/29/09.
|
6 |
| -// Copyright 2009 Eyebeam. |
| 6 | +// Copyright 2009 Eyebeam. |
7 | 7 |
|
8 | 8 | // This file is part of SelfControl.
|
9 |
| -// |
| 9 | +// |
10 | 10 | // SelfControl is free software: you can redistribute it and/or modify
|
11 | 11 | // it under the terms of the GNU General Public License as published by
|
12 | 12 | // the Free Software Foundation, either version 3 of the License, or
|
13 | 13 | // (at your option) any later version.
|
14 | 14 |
|
15 | 15 | // This program is distributed in the hope that it will be useful,
|
16 |
| -// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 | 18 | // GNU General Public License for more details.
|
19 | 19 |
|
|
34 | 34 | // The main controller for the SelfControl app, which includes several methods
|
35 | 35 | // to handle command flow and acts as delegate for the initial window.
|
36 | 36 | @interface AppController : NSObject {
|
37 |
| - IBOutlet id blockDurationSlider_; |
38 |
| - IBOutlet id blockSliderTimeDisplayLabel_; |
39 |
| - IBOutlet id submitButton_; |
40 |
| - IBOutlet id initialWindow_; |
41 |
| - IBOutlet id domainListMenuItem_; |
42 |
| - IBOutlet id editBlacklistButton_; |
43 |
| - IBOutlet DomainListWindowController* domainListWindowController_; |
44 |
| - IBOutlet TimerWindowController* timerWindowController_; |
45 |
| - NSUserDefaults* defaults_; |
46 |
| - NSLock* refreshUILock_; |
47 |
| - BOOL blockIsOn; |
48 |
| - BOOL addingBlock; |
| 37 | + IBOutlet id blockDurationSlider_; |
| 38 | + IBOutlet id blockSliderTimeDisplayLabel_; |
| 39 | + IBOutlet id submitButton_; |
| 40 | + IBOutlet id initialWindow_; |
| 41 | + IBOutlet id domainListMenuItem_; |
| 42 | + IBOutlet id editBlacklistButton_; |
| 43 | + IBOutlet DomainListWindowController* domainListWindowController_; |
| 44 | + IBOutlet TimerWindowController* timerWindowController_; |
| 45 | + NSUserDefaults* defaults_; |
| 46 | + NSLock* refreshUILock_; |
| 47 | + BOOL blockIsOn; |
| 48 | + BOOL addingBlock; |
49 | 49 | }
|
50 | 50 |
|
51 | 51 | @property (assign) BOOL addingBlock;
|
|
63 | 63 | - (IBAction)updateTimeSliderDisplay:(id)sender;
|
64 | 64 |
|
65 | 65 | /* // Gets authorization for and then immediately removes the block by calling
|
66 |
| -// SelfControl's helper tool with the appropriate arguments. This can be used |
67 |
| -// for testing, but should not be called at all during normal execution of the |
68 |
| -// program. |
69 |
| -- (void)removeBlock; */ |
| 66 | + // SelfControl's helper tool with the appropriate arguments. This can be used |
| 67 | + // for testing, but should not be called at all during normal execution of the |
| 68 | + // program. |
| 69 | + - (void)removeBlock; */ |
70 | 70 |
|
71 | 71 | // Called when the main Start button is clicked. Launchs installBlock in another
|
72 | 72 | // thread after some checking and syncing.
|
|
0 commit comments