Changeset 5323 for Tuna/trunk

Show
Ignore:
Timestamp:
02/28/08 10:45:37 (9 months ago)
Author:
morris
Message:

Add a font panel

Files:

Legend:

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

    r5208 r5323  
    1919                                <string>id</string> 
    2020                                <key>restoreAll</key> 
     21                                <string>id</string> 
     22                                <key>showFonts</key> 
    2123                                <string>id</string> 
    2224                        </dict> 
  • Tuna/trunk/English.lproj/MainMenu.nib/info.nib

    r5208 r5323  
    1010        <integer>5</integer> 
    1111        <key>IBOpenObjects</key> 
    12         <array/> 
     12        <array> 
     13                <integer>24</integer> 
     14        </array> 
    1315        <key>IBSystem Version</key> 
    14         <string>9B18</string> 
     16        <string>9C31</string> 
    1517        <key>targetFramework</key> 
    1618        <string>IBCocoaFramework</string> 
  • Tuna/trunk/English.lproj/ReleaseNotes.rtf

    r5208 r5323  
    1 {\rtf1\ansi\ansicpg1252\cocoartf949 
     1{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf270 
    22{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} 
    33{\colortbl;\red255\green255\blue255;\red50\green100\blue255;\red227\green211\blue34;} 
     
    3030\b0 \cf0 \ 
    3131- Add a find panel\ 
     32- Add a font panel\ 
    3233- Stability fixes\ 
    3334 
  • Tuna/trunk/TNSessionController.m

    r5273 r5323  
    467467 
    468468 
     469- (void)showFonts:(id)sender { 
     470        [[NSFontManager sharedFontManager] setSelectedFont:[_treeOutlineView font] isMultiple:NO]; 
     471        [[NSFontManager sharedFontManager] orderFrontFontPanel:self]; 
     472} 
     473 
     474 
     475 
     476- (void)changeFont:(id)sender { 
     477        NSFont          *font; 
     478         
     479        font = [sender convertFont:[_treeOutlineView font]]; 
     480         
     481        [_treeOutlineView setFont:font]; 
     482        [_treeOutlineView setRowHeight:([font capHeight] * 2.0) - ([font capHeight] / 4.0)]; 
     483} 
     484 
     485 
     486 
    469487#pragma mark - 
    470488