source: trunk/macosx/PrefsController.h @ 920

Last change on this file since 920 was 920, checked in by joshe, 15 years ago

Merge nat-traversal branch to trunk.

  • Property svn:keywords set to Date Rev Author Id
File size: 4.5 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 920 2006-09-25 18:37:45Z 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, * fBandwidthView, * fNetworkView;
35   
36    IBOutlet NSPopUpButton  * fFolderPopUp, * fImportFolderPopUp,
37                            * fDownloadSoundPopUp, * fSeedingSoundPopUp;
38    IBOutlet NSButton       * fQuitCheck, * fRemoveCheck,
39                            * fQuitDownloadingCheck, * fRemoveDownloadingCheck,
40                            * fBadgeDownloadRateCheck, * fBadgeUploadRateCheck,
41                            * fPlayDownloadSoundCheck, * fPlaySeedingSoundCheck,
42                            * fCopyTorrentCheck, * fDeleteOriginalTorrentCheck,
43                            * fAutoImportCheck, * fAutoSizeCheck;
44                           
45    IBOutlet NSPopUpButton  * fUpdatePopUp;
46
47    IBOutlet NSTextField    * fUploadField, * fDownloadField,
48                            * fSpeedLimitUploadField, * fSpeedLimitDownloadField,
49                            * fSpeedLimitAutoOnField, * fSpeedLimitAutoOffField;
50    IBOutlet NSButton       * fUploadCheck, * fDownloadCheck,
51                            * fSpeedLimitAutoCheck;
52
53    IBOutlet NSTextField    * fPortField, * fNatStatusField;
54    IBOutlet NSButton       * fNatCheck;
55    IBOutlet NSImageView    * fNatStatusImage;
56    NSTimer                 * fNatStatusTimer;
57    int                     fNatStatus;
58   
59    IBOutlet NSButton       * fRatioCheck;
60    IBOutlet NSTextField    * fRatioField;
61   
62    IBOutlet NSButton       * fQueueCheck, * fStartAtOpenCheck;
63    IBOutlet NSTextField    * fQueueNumberField;
64   
65    IBOutlet SUUpdater      * fUpdater;
66
67    NSString                * fDownloadFolder, * fImportFolder;
68    NSUserDefaults          * fDefaults;
69}
70
71- (id) initWithWindowNibName: (NSString *) name handle: (tr_handle_t *) handle;
72
73- (void) setShowMessage:    (id) sender;
74- (void) setBadge:          (id) sender;
75- (void) setPlaySound:      (id) sender;
76- (void) setSound:          (id) sender;
77- (void) setUpdate:         (id) sender;
78- (void) checkUpdate;
79
80- (void) setStartAtOpen:    (id) sender;
81
82- (void) setUseQueue:       (id) sender;
83- (void) setQueueNumber:    (id) sender;
84
85- (void) setMoveTorrent:        (id) sender;
86- (void) setDownloadLocation:   (id) sender;
87- (void) folderSheetShow:       (id) sender;
88
89- (void) setPort:   (id) sender;
90- (void) setNat:    (id) sender;
91- (void) updateNatStatus;
92
93- (void) setSpeedLimit: (id) sender;
94
95- (void) setAutoSpeedLimitCheck: (id) sender;
96- (void) setAutoSpeedLimitHour: (id) sender;
97
98- (void) setLimit:          (id) sender;
99- (void) setLimitCheck:     (id) sender;
100- (void) setLimitEnabled:   (BOOL) enable type: (NSString *) type;
101- (void) setQuickLimit:     (int) limit type: (NSString *) type;
102
103- (void) enableSpeedLimit: (BOOL) enable;
104
105- (void) setAutoImport: (id) sender;
106- (void) importFolderSheetShow: (id) sender;
107
108- (void) setAutoSize: (id) sender;
109
110- (void) setRatio:          (id) sender;
111- (void) setRatioCheck:     (id) sender;
112- (void) setRatioEnabled:   (BOOL) enable;
113- (void) setQuickRatio: (float) ratioLimit;
114
115- (void) helpForNetwork: (id) sender;
116
117@end
Note: See TracBrowser for help on using the repository browser.