-
Notifications
You must be signed in to change notification settings - Fork 2
/
Slife_AppDelegate.h
130 lines (99 loc) · 3.93 KB
/
Slife_AppDelegate.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Slife for MacOS X
// Copyright (C) 2009 Slife Labs, LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/
//
// For comments or questions, please contact us at http://www.slifelabs.com
#import <Cocoa/Cocoa.h>
@class DBSourceSplitView;
@class SLObserver;
@class SLInfoWindowController;
@interface Slife_AppDelegate : NSObject
{
BOOL m_debugState;
IBOutlet DBSourceSplitView* m_mainWindowSplitView;
IBOutlet NSView* m_sideFrameViewPlaceholder;
IBOutlet NSView* m_mainFrameViewPlaceholder;
IBOutlet NSView* m_mainFrameTopViewPlaceholder;
IBOutlet NSView* m_mainFrameBottomViewPlaceholder;
IBOutlet NSView* m_sideFrameView;
IBOutlet NSView* m_mainFrameView;
IBOutlet NSView* m_dayView;
IBOutlet NSView* m_dayControlsView;
IBOutlet NSView* m_monthView;
IBOutlet NSView* m_monthControlsView;
IBOutlet NSView* m_itemView;
IBOutlet NSView* m_itemControlsView;
IBOutlet NSView* m_applicationView;
IBOutlet NSView* m_applicationControlsView;
IBOutlet NSTableView* m_appSettingsTableView;
int m_targetApplicationColorRow;
IBOutlet NSView* m_activityView;
IBOutlet NSTableView* m_activitySettingsSideFrameTableView;
IBOutlet NSView* m_activityControlsView;
IBOutlet NSView* m_goalView;
IBOutlet NSView* m_goalControlsView;
IBOutlet NSView* m_preferencesView;
IBOutlet NSView* m_prefsControlsView;
IBOutlet NSPopUpButton* m_prefsEventPurgePopUpButton;
NSView* m_frontView;
BOOL m_privateModeActive;
IBOutlet NSMenuItem* m_privateModeMenuItem;
NSStatusItem* m_statusMenuItem;
IBOutlet NSMenuItem* m_removeActivityMenuItem;
IBOutlet NSMenuItem* m_editActivityMenuItem;
IBOutlet NSMenuItem* m_visualizeActivityMenuItem;
NSUserDefaults* m_userDefaults;
BOOL m_firstRun;
BOOL m_mainWindowVisible;
BOOL m_appVisible;
NSTimer* m_appVisibleTimer;
NSTimer* m_welcomeTimer;
NSTimer* m_newSlifeAlertTimer;
IBOutlet NSArrayController* m_applicationsArrayController;
IBOutlet NSArrayController* m_activitiesArrayController;
IBOutlet NSArrayController* m_itemsArrayController;
NSPersistentStoreCoordinator* persistentStoreCoordinator;
NSManagedObjectModel* managedObjectModel;
NSManagedObjectContext* managedObjectContext;
SLObserver* m_observer;
SLInfoWindowController* m_infoWindowController;
}
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator;
- (NSManagedObjectModel *)managedObjectModel;
- (NSManagedObjectContext *)managedObjectContext;
- (IBAction) saveAction:sender;
// Views
- (IBAction) showDayView: (id) sender;
- (IBAction) showMonthView: (id) sender;
- (IBAction) showApplicationsView: (id) sender;
- (IBAction) showItemsView: (id) sender;
- (IBAction) showActivitiesView: (id) sender;
- (IBAction) showGoalsView: (id) sender;
- (IBAction) showPreferencesView: (id) sender;
- (IBAction) showWelcomeView: (id) sender;
- (void) refreshFrontView;
// Menus
- (IBAction) addActivity: (id) sender;
- (IBAction) editActivity: (id) sender;
// Preferences
- (IBAction) launchAtLoginSettingChanged: (id) sender;
- (IBAction) menubarIconSettingChanged: (id) sender;
- (IBAction) eventPurgePopUpClicked: (id) sender;
// Info window
- (IBAction) showInfoWindow: (id) sender;
// Support
- (IBAction) showMainWindow: (id) sender;
- (IBAction) closeMainWindow: (id) sender;
@end