Changeset 3893

Show
Ignore:
Timestamp:
03/13/06 21:48:32 (3 years ago)
Author:
morris
Message:

Remove GUI for setting zoom mode in slideshow panel, it's too crowded


Add shift-command-T command for rotating left, rotate left also on right mouse down

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/English.lproj/MainMenu.nib/classes.nib

    r3887 r3893  
    2020                reload = id;  
    2121                revealInFinder = id;  
     22                rotateLeft = id;  
    2223                rotateRight = id;  
    2324                setAsDesktopPicture = id;  
     
    5051                "_screenPanel" = NSPanel;  
    5152                "_screenPopUpButton" = NSPopUpButton;  
    52                 "_screenZoomMatrix" = NSMatrix;  
    5353                "_scrollView" = NSScrollView;  
    5454                "_splitView" = WISplitView;  
  • Footagehead/trunk/English.lproj/MainMenu.nib/info.nib

    r3887 r3893  
    88        <dict> 
    99                <key>29</key> 
    10                 <string>224 676 317 44 0 0 1280 1002 </string> 
     10                <string>373 800 317 44 0 0 1920 1178 </string> 
    1111                <key>592</key> 
    1212                <string>118 501 223 118 0 0 1280 1002 </string> 
     
    1818        <key>IBOpenObjects</key> 
    1919        <array> 
     20                <integer>21</integer> 
    2021                <integer>438</integer> 
     22                <integer>29</integer> 
    2123        </array> 
    2224        <key>IBSystem Version</key> 
  • Footagehead/trunk/FHController.h

    r3887 r3893  
    5555        IBOutlet NSPanel                                *_screenPanel; 
    5656        IBOutlet NSPopUpButton                  *_screenPopUpButton; 
    57         IBOutlet NSMatrix                               *_screenZoomMatrix; 
    5857        IBOutlet NSPopUpButton                  *_screenBackgroundPopUpButton; 
    5958        IBOutlet NSButton                               *_screenAutoSwitchButton; 
     
    104103- (IBAction)zoom:(id)sender; 
    105104- (IBAction)rotateRight:(id)sender; 
     105- (IBAction)rotateLeft:(id)sender; 
    106106- (IBAction)slideshow:(id)sender; 
    107107- (IBAction)autoSwitch:(id)sender; 
  • Footagehead/trunk/FHController.m

    r3887 r3893  
    832832        [self _reloadScreenBackgrounds]; 
    833833 
    834         [_screenZoomMatrix selectCellWithTag:[FHSettings intForKey:FHFullscreenImageScalingMethod]]; 
    835834        [_screenBackgroundPopUpButton selectItemWithTag:[FHSettings intForKey:FHFullscreenBackground]]; 
    836835 
     
    14191418 
    14201419                [_fullscreenImageView setImageScaling:scaling]; 
     1420 
     1421                [FHSettings setInt:scaling forKey:FHFullscreenImageScalingMethod]; 
    14211422        } else { 
    14221423                scaling = [_imageView imageScaling]; 
     
    14461447        else 
    14471448                rotation -= 90.0f; 
     1449         
     1450        [_imageView setImageRotation:rotation]; 
     1451        [_fullscreenImageView setImageRotation:rotation]; 
     1452         
     1453        [self _updateRightStatus]; 
     1454 
     1455        [FHSettings setFloat:rotation forKey:FHImageRotation]; 
     1456} 
     1457 
     1458 
     1459 
     1460- (IBAction)rotateLeft:(id)sender { 
     1461        float           rotation; 
     1462         
     1463        rotation = [_imageView imageRotation]; 
     1464         
     1465        if(rotation == 270.0f) 
     1466                rotation = 0.0f; 
     1467        else 
     1468                rotation += 90.0f; 
    14481469         
    14491470        [_imageView setImageRotation:rotation]; 
     
    14771498                // --- save in prefs 
    14781499                [FHSettings setInt:[_screenPopUpButton indexOfSelectedItem] forKey:FHFullscreenScreen]; 
    1479                 [FHSettings setInt:[[_screenZoomMatrix selectedCell] tag] forKey:FHFullscreenImageScalingMethod]; 
    14801500                [FHSettings setInt:[_screenBackgroundPopUpButton tagOfSelectedItem] forKey:FHFullscreenBackground]; 
    14811501                [FHSettings setBool:[_screenAutoSwitchButton state] forKey:FHFullscreenAutoSwitch]; 
     
    15051525                [_fullscreenWindow setTitle:[[self window] title]]; 
    15061526                [_fullscreenImageView setBackgroundColor:[_screenBackgroundPopUpButton representedObjectOfSelectedItem]]; 
    1507                 [_fullscreenImageView setImageScaling:[[_screenZoomMatrix selectedCell] tag]]; 
     1527                [_fullscreenImageView setImageScaling:[FHSettings intForKey:FHFullscreenImageScalingMethod]]; 
    15081528                [_fullscreenImageView setImageRotation:[_imageView imageRotation]]; 
    15091529                [_fullscreenPanel setFrame:screenRect display:NO]; 
  • Footagehead/trunk/FHImageView.m

    r3887 r3893  
    263263 
    264264 
     265- (void)rightMouseUp:(NSEvent *)event { 
     266        [[FHController controller] rotateRight:self]; 
     267} 
     268 
     269 
     270 
    265271- (void)mouseDragged:(NSEvent *)event { 
    266272        NSPoint         point, originalPoint; 
  • Footagehead/trunk/Japanese.lproj/MainMenu.nib/classes.nib

    r3887 r3893  
    2020                reload = id;  
    2121                revealInFinder = id;  
     22                rotateLeft = id;  
    2223                rotateRight = id;  
    2324                setAsDesktopPicture = id;  
     
    5051                "_screenPanel" = NSPanel;  
    5152                "_screenPopUpButton" = NSPopUpButton;  
    52                 "_screenZoomMatrix" = NSMatrix;  
    5353                "_scrollView" = NSScrollView;  
    5454                "_splitView" = WISplitView;  
  • Footagehead/trunk/Japanese.lproj/MainMenu.nib/info.nib

    r3887 r3893  
    1717        <array> 
    1818                <integer>438</integer> 
     19                <integer>21</integer> 
    1920        </array> 
    2021        <key>IBSystem Version</key>