source: trunk/macosx/PrefsController.h @ 752

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

Scheduler is now more automatic.

  • Property svn:keywords set to Date Rev Author Id
File size: 4.2 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 752 2006-08-11 22:58:14Z 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
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;
54   
55    IBOutlet NSButton       * fRatioCheck;
56    IBOutlet NSTextField    * fRatioField;
57   
58    IBOutlet NSMatrix       * fStartMatrix;
59    IBOutlet NSTextField    * fStartNumberField;
60   
61    IBOutlet SUUpdater      * fUpdater;
62
63    NSString                * fDownloadFolder, * fImportFolder;
64    NSUserDefaults          * fDefaults;
65}
66
67- (id) initWithWindowNibName: (NSString *) name handle: (tr_handle_t *) handle;
68
69- (void) setShowMessage:    (id) sender;
70- (void) setBadge:          (id) sender;
71- (void) setPlaySound:      (id) sender;
72- (void) setSound:          (id) sender;
73- (void) setUpdate:         (id) sender;
74- (void) checkUpdate;
75
76- (void) setStartSetting:   (id) sender;
77- (void) setStartNumber:    (id) sender;
78
79- (void) setMoveTorrent:        (id) sender;
80- (void) setDownloadLocation:   (id) sender;
81- (void) folderSheetShow:       (id) sender;
82
83- (void) setPort:       (id) sender;
84- (void) setSpeedLimit: (id) sender;
85
86- (void) setAutoSpeedLimitCheck: (id) sender;
87- (void) setAutoSpeedLimitHour: (id) sender;
88
89- (void) setLimit:          (id) sender;
90- (void) setLimitCheck:     (id) sender;
91- (void) setLimitEnabled:   (BOOL) enable type: (NSString *) type;
92- (void) setQuickLimit:     (int) limit type: (NSString *) type;
93
94- (void) enableSpeedLimit: (BOOL) enable;
95
96- (void) setAutoImport: (id) sender;
97- (void) importFolderSheetShow: (id) sender;
98
99- (void) setAutoSize: (id) sender;
100
101- (void) setRatio:          (id) sender;
102- (void) setRatioCheck:     (id) sender;
103- (void) setRatioEnabled:   (BOOL) enable;
104- (void) setQuickRatio: (float) ratioLimit;
105
106- (void) helpForNetwork: (id) sender;
107
108@end
Note: See TracBrowser for help on using the repository browser.