Prominent notice in DataHandler.m.
[MacTF.git] / UIElements.h
blobc8216de453eab0748b96f4f1f9b9724fff2b872b
1 // MacTF Copyright 2004 Nathan Oates
3 /*
5 * This source code is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Public License as published
7 * by the Free Software Foundation; either version 2 of the License,
8 * or (at your option) any later version.
10 * This source code is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * Please refer to the GNU Public License for more details.
15 * You should have received a copy of the GNU Public License along with
16 * this source code; if not, write to:
17 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #import <Cocoa/Cocoa.h>
21 #import "DataHandler.h"
22 #import "TFUSBController.h"
23 #import "Event.h"
24 #import <iLifeControls/NFIWindow.h>
26 @interface UIElements : NSObject
28 IBOutlet id availSpaceField;
29 IBOutlet id freeSpaceField;
30 IBOutlet DataHandler* dh; //move
31 IBOutlet id tableView;// and this?
32 IBOutlet id statusField;
33 IBOutlet id progressBar;
34 IBOutlet id connectButton;
35 IBOutlet id connectLight;
36 IBOutlet id turboCB;
37 IBOutlet NFIWindow* mainWindow;
38 IBOutlet id prefsWindow;
39 IBOutlet id renameWindow;
40 IBOutlet id newFolderWindow;
41 IBOutlet id debugCB;
42 IBOutlet id altRateSlider;
43 IBOutlet id autoCB;
44 IBOutlet id preview;
45 IBOutlet id previewDrawer;
46 IBOutlet id progressTime;
47 IBOutlet id renameOld;
48 IBOutlet id renameNew;
49 IBOutlet id newFolderNew;
50 IBOutlet id downloadMenu;
51 IBOutlet id uploadMenu;
52 IBOutlet id renameMenu;
53 IBOutlet id deleteMenu;
54 IBOutlet id currentlyField;
55 IBOutlet id recName;
56 IBOutlet id recDuration;
57 IBOutlet id recDescription;
58 IBOutlet id recExtInfo;
59 IBOutlet id recStart;
60 IBOutlet id recChannel;
61 IBOutlet id drawerTabView;
62 IBOutlet id pathBar;
63 IBOutlet id pauseButton;
64 IBOutlet id searchField;
65 NSTableColumn* selectedColumn;
66 BOOL connected;
67 BOOL paused;
68 TFUSBController* tfusbc;
69 USBDeviceContext* context;
70 NSString* currentPath;
71 NSUserDefaults *prefs;
72 BOOL sortAscending;
73 NSString *highlightImageData;
74 NSImage *highlightImage;
76 - (BOOL)validateMenuItem:(NSMenuItem*)anItem ;
77 - (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
78 - (void) setAvailableSpace:(NSData*) input ;
79 - (void) setFreeSpace: (NSData*) input ;
80 - (NSString*) prepForSizeDisplay:(NSData*) input;
81 - (IBAction) connect: (id) sender;
82 //- (IBAction) tempGoToPath: (id) sender;
83 - (int) goToPath:(NSString*) path;
84 - (void)doubleClick:(id)sender;
85 - (void) downloadFileDoubleClickThread:(NSDictionary*)fileInfo;
86 //- (void) updateHDDSize ;
87 - (NSString*) currentPath;
88 //- (IBAction) snapshot:(id) sender;
89 - (IBAction) downloadSelectedFile:(id)sender;
90 - (IBAction) uploadFile: (id) sender;
91 - (void) uploadPath:(NSString*) path toPath:(NSString*) toPath;
92 - (IBAction) toggleTurbo:(id)sender;
93 - (IBAction) toggleTurboCB:(id)sender;
94 - (IBAction) togglePreview:(id)sender;
95 //- (IBAction) epg:(id) sender;
96 - (void) finishTransfer;
97 - (IBAction)deleteFile:(id)sender;
98 - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
99 - (IBAction)openPrefsSheet:(id)sender;
100 - (IBAction) mySheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo ;
101 - (IBAction)closePrefsSheet:(id)sender;
102 - (IBAction)openRenameSheet:(id)sender;
103 - (IBAction)closeRenameSheet:(id)sender;
104 - (IBAction)cancelRename:(id)sender;
105 - (IBAction)openNewFolderSheet:(id)sender;
106 - (IBAction)closeNewFolderSheet:(id)sender;
107 - (IBAction)cancelNewFolder:(id)sender;
108 - (IBAction)pathBarClick:(id)sender;
109 - (IBAction)pauseCurrentTransfer:(id)sender;
110 - (id) getTfusbc;
111 - (USBDeviceContext*) getContext;
112 - (NSNumber*) isConnected;
113 - (id) selectedColumn;
114 - (id) currentlyField;
115 - (id) connectLight;
117 //- (NSArray*) snapshotOfPath:(NSString*)path ;
119 @end