source: trunk/macosx/PrefsController.h @ 247

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

Adds Action button that allows quick setting of upload and download limits,
Makes the bottom bar look like Mail's,
Moves stats to a top, hideable bar.

File size: 3.0 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;
34    IBOutlet NSView         * fNetworkView;
35    IBOutlet NSView         * fBlankView;
36   
37    IBOutlet NSPopUpButton  * fFolderPopUp;
38    IBOutlet NSButton       * fQuitCheck;
39    IBOutlet NSButton       * fRemoveCheck;
40    IBOutlet NSButton       * fBadgeDownloadRateCheck;
41    IBOutlet NSButton       * fBadgeUploadRateCheck;                           
42    IBOutlet NSPopUpButton  * fUpdatePopUp;
43
44    IBOutlet NSTextField    * fPortField;
45    IBOutlet NSButton       * fUploadCheck;
46    IBOutlet NSTextField    * fUploadField;
47    IBOutlet NSButton       * fDownloadCheck;
48    IBOutlet NSTextField    * fDownloadField;
49   
50    IBOutlet NSMenu         * fUploadMenu, * fDownloadMenu;
51    IBOutlet NSMenuItem     * fUploadLimitItem, * fUploadNoLimitItem,
52                            * fDownloadLimitItem, * fDownloadNoLimitItem;
53   
54    IBOutlet NSWindow       * fWindow;
55
56    NSString                * fDownloadFolder;
57    NSUserDefaults          * fDefaults;
58}
59
60- (void) setPrefsWindow: (tr_handle_t *) handle;
61
62- (void) setQuitMessage:        (id) sender;
63- (void) setRemoveMessage:      (id) sender;
64- (void) setBadge:              (id) sender;
65- (void) setUpdate:             (id) sender;
66- (void) setDownloadLocation:   (id) sender;
67- (void) folderSheetShow:       (id) sender;
68
69- (void) setPort:               (id) sender;
70- (void) setLimitCheck:         (id) sender;
71- (void) setLimit:              (id) sender;
72- (void) setLimitMenu:          (id) sender;
73- (void) setQuickSpeed:         (id) sender;
74
75@end
Note: See TracBrowser for help on using the repository browser.