Ignore:
Timestamp:
Jun 17, 2007, 5:04:13 PM (15 years ago)
Author:
livings124
Message:

when dragging a non-torrent file onto the window, display an overlay to create a torrent file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/DragOverlayWindow.m

    r2136 r2137  
    143143}
    144144
     145- (void) setFile: (NSString *) file
     146{
     147       
     148    [[self contentView] setOverlay: [NSImage imageNamed: @"Create.png"]
     149        mainLine: NSLocalizedString(@"Create a Torrent File", "Drag overlay -> file") subLine: file];
     150   
     151    //stop other animation and set to same progress
     152    if ([fFadeOutAnimation isAnimating])
     153    {
     154        [fFadeOutAnimation stopAnimation];
     155        [fFadeInAnimation setCurrentProgress: 1.0 - [fFadeOutAnimation currentProgress]];
     156    }
     157    [self setFrame: [[self parentWindow] frame] display: YES];
     158    [fFadeInAnimation startAnimation];
     159}
     160
     161
    145162- (void) setURL: (NSString *) url
    146163{
Note: See TracChangeset for help on using the changeset viewer.