forked from mus1cjunk1e/NativaPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller.h
67 lines (62 loc) · 3.07 KB
/
Controller.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
/******************************************************************************
* Nativa - MacOS X UI for rtorrent
* http://www.aramzamzam.net
*
* Copyright Solomenchuk V. 2010.
* Solomenchuk Vladimir <[email protected]>
*
* Licensed under the GPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/gpl-3.0.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#import <Cocoa/Cocoa.h>
@class TorrentDropView, PreferencesController, StatusBarView, TorrentTableView, DragOverlayWindow, Torrent, TorrentViewController;
@interface Controller : NSObject<NSMenuDelegate, NSWindowDelegate> {
IBOutlet NSWindow *_window;
IBOutlet TorrentTableView *_downloadsView;
NSUserDefaults *_defaults;
PreferencesController *_preferencesController;
DragOverlayWindow *_overlayWindow;
IBOutlet NSMenu *_contextRowMenu;
IBOutlet NSMenu *_groupMenu;
IBOutlet NSMenu *_groupMainMenu;
IBOutlet NSMenu *_priorityMainMenu;
IBOutlet NSMenu *_globalUploadSpeedLimitMenu;
IBOutlet NSMenu *_globalDownloadSpeedLimitMenu;
IBOutlet NSMenuItem *_globalUploadSpeedNoLimitMenuItem;
IBOutlet NSMenuItem *_globalUploadSpeedLimitMenuItem;
IBOutlet NSMenuItem *_globalDownloadSpeedNoLimitMenuItem;
IBOutlet NSMenuItem *_globalDownloadSpeedLimitMenuItem;
Torrent *_menuTorrent;
IBOutlet TorrentViewController *_viewController;
CGFloat _savedGlobalDownloadSpeedLimit;
CGFloat _savedGlobalUploadSpeedLimit;
}
-(IBAction)showPreferencePanel:(id)sender;
-(IBAction)removeNoDeleteSelectedTorrents:(id)sender;
-(IBAction)removeDeleteSelectedTorrents:(id)sender;
-(IBAction)stopSelectedTorrents:(id)sender;
-(IBAction)forcePauseSelectedTorrents:(id)sender;
-(IBAction)forceStopSelectedTorrents:(id)sender;
-(IBAction)resumeSelectedTorrents:(id)sender;
-(IBAction)checkSelectedTorrents:(id)sender;
-(void) setSpeedLimitGlobal: (id) sender;
-(void) unsetSpeedLimitGlobal: (id) sender;
- (void) openSheetClosed: (NSOpenPanel *) panel returnCode: (NSInteger) code contextInfo: (NSNumber *) useOptions;
- (void) openShowSheet: (id) sender;
- (IBAction) toggleQuickLook:(id)sender;
- (IBAction) revealSelectedTorrents:(id)sender;
- (void) setGroup: (id) sender;
- (void) showGroupMenuForTorrent:(Torrent *) torrent atLocation:(NSPoint) location;
- (NSMenu *) contextRowMenu;
- (void) setPriorityForSelectedTorrents: (id) sender;
- (IBAction)moveSelectedTorrentsData:(id)sender;
@end