source: trunk/macosx/PrefsController.h @ 6361

Last change on this file since 6361 was 6361, checked in by livings124, 13 years ago

add a button to the prefs window to launch the web interface

  • Property svn:keywords set to Date Rev Author Id
File size: 5.0 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 6361 2008-07-19 13:40:23Z livings124 $
3 *
4 * Copyright (c) 2005-2008 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 * fHandle;
33   
34    NSUserDefaults * fDefaults;
35    BOOL fHasLoaded;
36   
37    IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fPeersView, * fNetworkView, * fRemoteView;
38   
39    NSString * fInitialString;
40   
41    IBOutlet NSPopUpButton * fFolderPopUp, * fIncompleteFolderPopUp, * fImportFolderPopUp;
42    IBOutlet NSTextField * fRatioStopField, * fQueueDownloadField, * fQueueSeedField, * fStalledField;
43   
44    SUUpdater * fUpdater;
45
46    IBOutlet NSTextField * fUploadField, * fDownloadField,
47                        * fSpeedLimitUploadField, * fSpeedLimitDownloadField;
48   
49    IBOutlet NSTextField * fPeersGlobalField, * fPeersTorrentField, * fBlocklistMessageField;
50    IBOutlet NSButton * fBlocklistEnableCheck;
51   
52    PortChecker * fPortChecker;
53    IBOutlet NSTextField * fPortField, * fPortStatusField;
54    IBOutlet NSButton * fNatCheck;
55    IBOutlet NSImageView * fPortStatusImage;
56    IBOutlet NSProgressIndicator * fPortStatusProgress;
57    NSTimer * fPortStatusTimer;
58    int fPeerPort, fNatStatus;
59   
60    IBOutlet NSTextField * fProxyAddressField, * fProxyPortField, * fProxyPasswordField;
61    IBOutlet NSPopUpButton * fProxyTypePopUp;
62   
63    IBOutlet NSTextField * fRPCPortField, * fRPCPasswordField;
64    IBOutlet NSTableView * fRPCAccessTable;
65    IBOutlet NSSegmentedControl * fRPCAddRemoveControl;
66    NSMutableArray * fRPCAccessArray;
67}
68
69- (id) initWithHandle: (tr_handle *) handle;
70- (tr_handle *) handle;
71- (void) setUpdater: (SUUpdater *) updater;
72
73- (void) updatePortField;
74- (void) setPort: (id) sender;
75- (void) setNat: (id) sender;
76- (void) updatePortStatus;
77- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
78
79- (NSArray *) sounds;
80- (void) setSound: (id) sender;
81
82- (void) setPeersGlobal: (id) sender;
83- (void) setPeersTorrent: (id) sender;
84
85- (void) setPEX: (id) sender;
86
87- (void) setEncryptionMode: (id) sender;
88
89- (void) setBlocklistEnabled: (id) sender;
90- (void) updateBlocklist: (id) sender;
91- (void) updateBlocklistFields;
92
93- (void) setBadge: (id) sender;
94- (void) resetWarnings: (id) sender;
95- (void) setCheckForUpdate: (id) sender;
96
97- (void) setQueue: (id) sender;
98- (void) setQueueNumber: (id) sender;
99
100- (void) setStalled: (id) sender;
101- (void) setStalledMinutes: (id) sender;
102
103- (void) setDownloadLocation: (id) sender;
104- (void) folderSheetShow: (id) sender;
105- (void) incompleteFolderSheetShow: (id) sender;
106
107- (void) applyRatioSetting: (id) sender;
108- (void) updateRatioStopField;
109- (void) setRatioStop: (id) sender;
110
111- (void) applySpeedSettings: (id) sender;
112
113- (void) updateLimitFields;
114- (void) setGlobalLimit: (id) sender;
115
116- (void) setSpeedLimit: (id) sender;
117- (void) setAutoSpeedLimit: (id) sender;
118
119- (void) setAutoImport: (id) sender;
120- (void) importFolderSheetShow: (id) sender;
121
122- (void) setAutoSize: (id) sender;
123
124- (void) setProxyEnabled: (id) sender;
125- (void) setProxyAddress: (id) sender;
126- (void) setProxyPort: (id) sender;
127- (void) setProxyType: (id) sender;
128- (void) updateProxyType;
129- (void) setProxyAuthorize: (id) sender;
130- (void) setProxyUsername: (id) sender;
131- (void) setProxyPassword: (id) sender;
132- (void) updateProxyPassword;
133
134- (void) setRPCEnabled: (id) sender;
135- (void) linkWebUI: (id) sender;
136- (void) setRPCAuthorize: (id) sender;
137- (void) setRPCUsername: (id) sender;
138- (void) setRPCPassword: (id) sender;
139- (void) updateRPCPassword;
140- (void) setRPCPort: (id) sender;
141- (void) updateRPCAccessList;
142- (void) addRemoveRPCIP: (id) sender;
143
144- (void) helpForPeers: (id) sender;
145- (void) helpForNetwork: (id) sender;
146- (void) helpForRemote: (id) sender;
147
148- (void) rpcUpdatePrefs;
149
150@end
Note: See TracBrowser for help on using the repository browser.