source: trunk/macosx/PrefsController.h @ 1030

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

load prefs when first used as opposed to at launch

  • Property svn:keywords set to Date Rev Author Id
File size: 4.7 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 1030 2006-10-25 02:57:00Z 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    SUUpdater               * fUpdater;
47    IBOutlet NSPopUpButton  * fUpdatePopUp;
48
49    IBOutlet NSTextField    * fUploadField, * fDownloadField,
50                            * fSpeedLimitUploadField, * fSpeedLimitDownloadField,
51                            * fSpeedLimitAutoOnField, * fSpeedLimitAutoOffField;
52    IBOutlet NSButton       * fUploadCheck, * fDownloadCheck,
53                            * fSpeedLimitAutoCheck;
54
55    IBOutlet NSTextField            * fPortField, * fNatStatusField, * fPortStatusField;
56    IBOutlet NSButton               * fNatCheck;
57    IBOutlet NSImageView            * fNatStatusImage, * fPortStatusImage;
58    IBOutlet NSProgressIndicator    * fPortStatusProgress;
59    NSTimer                         * fNatStatusTimer;
60    int                             fNatStatus;
61   
62    IBOutlet NSButton       * fRatioCheck;
63    IBOutlet NSTextField    * fRatioField;
64   
65    IBOutlet NSButton       * fQueueCheck, * fStartAtOpenCheck;
66    IBOutlet NSTextField    * fQueueNumberField;
67
68    NSString                * fDownloadFolder, * fImportFolder;
69    NSUserDefaults          * fDefaults;
70}
71
72- (id) initWithWindowNibName: (NSString *) name handle: (tr_handle_t *) handle;
73- (void) setUpdater: (SUUpdater *) updater;
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
81- (void) setStartAtOpen:    (id) sender;
82
83- (void) setUseQueue:       (id) sender;
84- (void) setQueueNumber:    (id) sender;
85
86- (void) setMoveTorrent:        (id) sender;
87- (void) setDownloadLocation:   (id) sender;
88- (void) folderSheetShow:       (id) sender;
89
90- (void) setPort:   (id) sender;
91- (void) updatePortStatus;
92- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
93- (void) setNat:    (id) sender;
94- (void) updateNatStatus;
95
96- (void) setSpeedLimit: (id) sender;
97
98- (void) setAutoSpeedLimitCheck: (id) sender;
99- (void) setAutoSpeedLimitHour: (id) sender;
100
101- (void) setLimit:          (id) sender;
102- (void) setLimitCheck:     (id) sender;
103- (void) setQuickLimitEnabled:   (BOOL) enable type: (NSString *) type;
104- (void) setQuickLimit:     (int) limit type: (NSString *) type;
105
106- (void) enableSpeedLimit: (BOOL) enable;
107
108- (void) setAutoImport: (id) sender;
109- (void) importFolderSheetShow: (id) sender;
110
111- (void) setAutoSize: (id) sender;
112
113- (void) setRatio:          (id) sender;
114- (void) setRatioCheck:     (id) sender;
115- (void) setQuickRatioEnabled:   (BOOL) enable;
116- (void) setQuickRatio: (float) ratioLimit;
117
118- (void) helpForNetwork: (id) sender;
119
120@end
Note: See TracBrowser for help on using the repository browser.