File:  [mozdev] / chimera / ProgressDlgController.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun Feb 3 14:27:15 2002 UTC (18 years, 5 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
I have the new UI hooked up... unfortunately there's a wierd crasher.  If you customize the Save File toolbar, then click either of the toggle toolbarItems, you get a segfault.  I think it has something to do with the way I'm allocationg things.  Now that I've seen these icons next to each other, I've decided I like the style, but I have some tweaks to make.

//  ProgressDlgController.h
//  Chimera
//  Created by David Hyatt on Sat Feb 02 2002.
//  Copyright (c) 2001 __MyCompanyName__. All rights reserved.

#import <AppKit/AppKit.h>

class nsIWebBrowserPersist;
class nsISupports;
class nsIInputStream;

@interface ProgressDlgController : NSWindowController {
    IBOutlet id mFromField;
    IBOutlet id mToField;
    IBOutlet id mStatusLabel;
    IBOutlet id mTimeLeftLabel;
    IBOutlet id mElapsedTimeLabel;
    IBOutlet id mProgressBar;
    IBOutlet id mKeepOpenCheckbox;
    IBOutlet id mCancelButton;
    IBOutlet id mPauseResumeButton;
    IBOutlet id mLaunchButton;
    IBOutlet id mRevealFolderButton;

    BOOL mDownloadIsPaused;
    BOOL mSaveFileDialogShouldStayOpen;

    NSToolbarItem *pauseResumeToggleToolbarItem;
    NSToolbarItem *leaveOpenToggleToolbarItem;

-(void) setWebPersist: (nsIWebBrowserPersist*)aPersist 
               source: (nsISupports*)aSource
               destination: (NSString*)aDestination
               contentType: (const char*)aContentType
               postData: (nsIInputStream*)aInputStream
               bypassCache: (BOOL)aBypassCache;

FreeBSD-CVSweb <>