Update the icon in the personal preferences if it's changed elsewhere (the contact...
[adiumx.git] / Source / ESFileTransferProgressView.h
blob61647af30dde2acd70d47088790729d5f349dbc6
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 @class ESFileTransferProgressRow, ESFileTransfer, AIRolloverButton;
19 @protocol AIRolloverButtonDelegate;
21 @interface ESFileTransferProgressView : NSView <AIRolloverButtonDelegate> {
22 IBOutlet ESFileTransferProgressRow *owner;
24 IBOutlet NSBox *box_primaryControls;
25 IBOutlet NSTextField *textField_fileName;
27 IBOutlet NSButton *button_icon;
28 IBOutlet NSProgressIndicator *progressIndicator;
30 NSString *transferBytesStatus;
31 NSString *transferRemainingStatus;
32 NSString *transferSpeedStatus;
34 IBOutlet AIRolloverButton *button_stopResume;
35 BOOL buttonStopResumeIsHovered;
37 IBOutlet AIRolloverButton *button_reveal;
38 BOOL buttonRevealIsHovered;
40 //Details in primary view
41 BOOL showingDetails;
42 IBOutlet NSButton *twiddle_details;
43 IBOutlet NSTextField *textField_detailsLabel;
44 IBOutlet NSBox *box_transferStatusFrame; //Placeholder for drawing the transfer status
45 NSString *transferStatus;
47 //Details view (revealed by twiddle_details)
48 IBOutlet NSView *view_details;
49 IBOutlet NSTextField *textField_rate;
50 IBOutlet NSTextField *textField_source;
51 IBOutlet NSButton *imageView_source;
52 IBOutlet NSTextField *textField_destination;
53 IBOutlet NSButton *imageView_destination;
55 BOOL isSelected;
56 BOOL progressVisible;
59 - (void)setSourceName:(NSString *)inSourceName;
60 - (void)setSourceIcon:(NSImage *)inSourceIcon;
62 - (void)setDestinationName:(NSString *)inDestinationName;
63 - (void)setDestinationIcon:(NSImage *)inDestinationIcon;
65 - (void)setFileName:(NSString *)inFileName;
66 - (void)setIconImage:(NSImage *)inIconImage;
68 - (void)setProgressDoubleValue:(double)inPercent;
69 - (void)setProgressIndeterminate:(BOOL)flag;
70 - (void)setProgressAnimation:(BOOL)flag;
71 - (void)setProgressVisible:(BOOL)flag;
73 - (void)setTransferBytesStatus:(NSString *)inTransferBytesStatus
74 remainingStatus:(NSString *)inTransferRemainingStatus
75 speedStatus:(NSString *)inTransferSpeedStatus;
77 - (IBAction)toggleDetails:(id)sender;
79 - (void)setAllowsCancel:(BOOL)flag;
81 @end