source: trunk/macosx/PrefsController.h @ 957

Last change on this file since 957 was 957, checked in by livings124, 16 years ago

work around for small bug in apple code

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