source: trunk/macosx/PrefsController.h @ 1305

Last change on this file since 1305 was 1305, checked in by livings124, 15 years ago

remove bindings from the rest of the text fields, added back glue code

  • Property svn:keywords set to Date Rev Author Id
File size: 3.8 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 1305 2006-12-31 23:24:23Z 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    NSUserDefaults          * fDefaults;
35    BOOL                    hasLoaded;
36   
37    NSToolbar               * fToolbar;
38    IBOutlet NSView         * fGeneralView, * fTransfersView, * fBandwidthView, * fNetworkView;
39   
40    IBOutlet NSPopUpButton  * fFolderPopUp, * fIncompleteFolderPopUp, * fImportFolderPopUp,
41                            * fDownloadSoundPopUp, * fSeedingSoundPopUp;
42    IBOutlet NSTextField    * fRatioStopField, * fQueueField;
43   
44    NSArray                 * fSounds;
45   
46    SUUpdater               * fUpdater;
47    IBOutlet NSPopUpButton  * fUpdatePopUp;
48
49    IBOutlet NSTextField    * fUploadField, * fDownloadField,
50                            * fUploadTorrentField, * fDownloadTorrentField,
51                            * fSpeedLimitUploadField, * fSpeedLimitDownloadField;
52    IBOutlet NSButton       * fUploadCheck, * fDownloadCheck;
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
62- (id) initWithWindowNibName: (NSString *) name handle: (tr_handle_t *) handle;
63- (void) setUpdater: (SUUpdater *) updater;
64
65- (void) setBadge:          (id) sender;
66- (void) setSound:          (id) sender;
67- (void) setUpdate:         (id) sender;
68
69- (void) setQueueNumber:    (id) sender;
70
71- (void) setDownloadLocation:       (id) sender;
72- (void) folderSheetShow:           (id) sender;
73- (void) incompleteFolderSheetShow: (id) sender;
74
75- (void) setPort:   (id) sender;
76- (void) updatePortStatus;
77- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
78- (void) setNat:    (id) sender;
79- (void) updateNatStatus;
80
81- (void) updateRatioStopField;
82- (void) setRatioStop: (id) sender;
83
84- (void) applySpeedSettings: (id) sender;
85
86- (void) updateLimitFields;
87- (void) setGlobalLimit: (id) sender;
88
89- (void) applyTorrentLimitSetting: (id) sender;
90- (void) setTorrentLimit: (id) sender;
91
92- (void) setSpeedLimit: (id) sender;
93- (void) setAutoSpeedLimit: (id) sender;
94
95- (void) setAutoImport: (id) sender;
96- (void) importFolderSheetShow: (id) sender;
97
98- (void) setAutoSize: (id) sender;
99
100- (void) helpForNetwork: (id) sender;
101
102@end
Note: See TracBrowser for help on using the repository browser.