source: trunk/macosx/PrefsController.h @ 256

Last change on this file since 256 was 256, checked in by titer, 16 years ago

Merged Mitchell's changes, this includes:
Adds stop at ratio,
Adds sorting by name, date or state,
Seperates Info window into its own nib,
Adds option to enable or disabled autostarting downloads,
Seperates Network / Transfers in the Preferences

File size: 3.3 KB
Line 
1/******************************************************************************
2 * Copyright (c) 2005 Eric Petit
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 *****************************************************************************/
22
23#import <Cocoa/Cocoa.h>
24#import <transmission.h>
25
26@interface PrefsController : NSObject
27
28{
29    tr_handle_t * fHandle;
30   
31    IBOutlet NSPanel        * fPrefsWindow;
32    NSToolbar               * fToolbar;
33    IBOutlet NSView         * fGeneralView, * fTransfersView,
34                            * fNetworkView, * fBlankView;
35   
36    IBOutlet NSPopUpButton  * fFolderPopUp;
37    IBOutlet NSButton       * fQuitCheck, * fRemoveCheck,
38                            * fBadgeDownloadRateCheck, * fBadgeUploadRateCheck,
39                            * fAutoStartCheck;                           
40    IBOutlet NSPopUpButton  * fUpdatePopUp;
41
42    IBOutlet NSTextField    * fPortField;
43    IBOutlet NSButton       * fUploadCheck;
44    IBOutlet NSTextField    * fUploadField;
45    IBOutlet NSButton       * fDownloadCheck;
46    IBOutlet NSTextField    * fDownloadField;
47    IBOutlet NSButton       * fRatioCheck;
48    IBOutlet NSTextField    * fRatioField;
49   
50    IBOutlet NSMenu         * fUploadMenu, * fDownloadMenu;
51    IBOutlet NSMenuItem     * fUploadLimitItem, * fUploadNoLimitItem,
52                            * fDownloadLimitItem, * fDownloadNoLimitItem,
53                            * fRatioSetItem, * fRatioNotSetItem;
54   
55    IBOutlet NSWindow       * fWindow;
56
57    NSString                * fDownloadFolder;
58    NSUserDefaults          * fDefaults;
59}
60
61- (void) setPrefsWindow: (tr_handle_t *) handle;
62
63- (void) setShowMessage:        (id) sender;
64- (void) setBadge:              (id) sender;
65- (void) setUpdate:             (id) sender;
66- (void) setAutoStart:          (id) sender;
67- (void) setDownloadLocation:   (id) sender;
68- (void) folderSheetShow:       (id) sender;
69
70- (void) setPort:               (id) sender;
71- (void) setLimitCheck:         (id) sender;
72- (void) setLimit:              (id) sender;
73- (void) setLimitMenu:          (id) sender;
74- (void) setQuickSpeed:         (id) sender;
75
76- (void) setRatio:              (id) sender;
77- (void) setRatioCheck:                 (id) sender;
78- (void) setRatioMenu:          (id) sender;
79- (void) setQuickRatio:         (id) sender;
80
81@end
Note: See TracBrowser for help on using the repository browser.