source: trunk/macosx/PrefsController.h @ 310

Last change on this file since 310 was 310, checked in by joshe, 16 years ago

Add support to libtransmission and the MacOS X GUI for saving private copies of

torrent files.

  • Property svn:keywords set to Date Rev Author Id
File size: 3.1 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 310 2006-06-09 19:53:35Z joshe $
3 *
4 * Copyright (c) 2005-2006 Transmission authors and contributors
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *****************************************************************************/
24
25#import <Cocoa/Cocoa.h>
26#import <transmission.h>
27#import <Sparkle/Sparkle.h>
28
29@interface PrefsController : NSWindowController
30{
31    tr_handle_t * fHandle;
32   
33    NSToolbar               * fToolbar;
34    IBOutlet NSView         * fGeneralView, * fTransfersView, * fNetworkView;
35   
36    IBOutlet NSPopUpButton  * fFolderPopUp;
37    IBOutlet NSButton       * fQuitCheck, * fRemoveCheck,
38                            * fBadgeDownloadRateCheck, * fBadgeUploadRateCheck,
39                            * fAutoStartCheck, * fCopyTorrentCheck, * fDeleteOriginalTorrentCheck;
40    IBOutlet NSPopUpButton  * fUpdatePopUp;
41
42    IBOutlet NSTextField    * fPortField, * fUploadField, * fDownloadField;
43    IBOutlet NSButton       * fUploadCheck, * fDownloadCheck;
44   
45    IBOutlet NSButton       * fRatioCheck;
46    IBOutlet NSTextField    * fRatioField;
47   
48    IBOutlet SUUpdater      * fUpdater;
49
50    NSString                * fDownloadFolder;
51    NSUserDefaults          * fDefaults;
52}
53
54- (void) setPrefsWindow: (tr_handle_t *) handle;
55
56- (void) setShowMessage:        (id) sender;
57- (void) setBadge:              (id) sender;
58- (void) setUpdate:             (id) sender;
59- (void) checkUpdate;
60- (void) setAutoStart:          (id) sender;
61- (void) setMoveTorrent:        (id) sender;
62- (void) setDownloadLocation:   (id) sender;
63- (void) folderSheetShow:       (id) sender;
64
65- (void) setPort:               (id) sender;
66
67- (void) setLimit:              (id) sender;
68- (void) setLimitCheck:         (id) sender;
69- (void) setLimitEnabled:       (BOOL) enable type: (NSString *) type;
70- (void) setQuickLimit:         (int) limit type: (NSString *) type;
71
72- (void) setRatio:              (id) sender;
73- (void) setRatioCheck:                 (id) sender;
74- (void) setRatioEnabled:       (BOOL) enable;
75- (void) setQuickRatio:         (float) ratioLimit;
76
77@end
Note: See TracBrowser for help on using the repository browser.