Changeset 3944

Show
Ignore:
Timestamp:
03/22/06 19:42:40 (3 years ago)
Author:
morris
Message:

Add option to select between HREF/SRC/both on HTML pages


Bump version to 1.2.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/English.lproj/InfoPlist.strings

    r2847 r3944  
    11/* Localized versions of Info.plist keys */ 
    22CFBundleName = "Footagehead"; 
    3 CFBundleShortVersionString = "Footagehead 1.2"; 
    4 CFBundleGetInfoString = "Footagehead 1.2, Copyright 2003-2005 Zanka Software."; 
    5 NSHumanReadableCopyright = "Copyright 2003-2005 Zanka Software."; 
     3CFBundleShortVersionString = "Footagehead 1.2.1"; 
     4CFBundleGetInfoString = "Footagehead 1.2.1, Copyright 2003-2006 Zanka Software."; 
     5NSHumanReadableCopyright = "Copyright 2003-2006 Zanka Software."; 
  • Footagehead/trunk/English.lproj/MainMenu.nib/classes.nib

    r3893 r3944  
    4141                "_openSpotlightTextView" = NSTextView;  
    4242                "_openURLPanel" = NSPanel;  
     43                "_openURLPopUpButton" = NSPopUpButton;  
    4344                "_openURLTextView" = NSTextView;  
    4445                "_progressIndicator" = NSProgressIndicator;  
  • Footagehead/trunk/English.lproj/MainMenu.nib/info.nib

    r3897 r3944  
    44<dict> 
    55        <key>IBDocumentLocation</key> 
    6         <string>893 73 395 374 0 0 1920 1178 </string> 
     6        <string>891 10 395 374 0 0 1920 1178 </string> 
    77        <key>IBEditorPositions</key> 
    88        <dict> 
     
    1818        <key>IBOpenObjects</key> 
    1919        <array> 
    20                 <integer>29</integer> 
    21                 <integer>438</integer> 
    22                 <integer>21</integer> 
     20                <integer>302</integer> 
    2321        </array> 
    2422        <key>IBSystem Version</key> 
  • Footagehead/trunk/English.lproj/ReleaseNotes.rtf

    r3897 r3944  
    22{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;\f2\fswiss\fcharset77 Helvetica-Oblique; 
    33\f3\fnil\fcharset77 LucidaGrande;} 
    4 {\colortbl;\red255\green255\blue255;\red0\green127\blue0;\red127\green0\blue127;\red191\green191\blue191; 
    5 
    6 \vieww9560\viewh18380\viewkind0 
    7 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 
    8  
    9 \f0\b\fs36 \cf2 Footagehead 1.2 Release Notes 
     4{\colortbl;\red255\green255\blue255;\red0\green127\blue0;\red127\green0\blue127;} 
     5\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 
     6 
     7\f0\b\fs36 \cf2 Footagehead 1.2.1 Release Notes 
    108\f1\b0\fs24 \cf0 \ 
    119\ 
     
    427425\f0\b \cf3 \ 
    428426\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 
    429 \cf2 1.2 
     427\cf2 1.2.1 
     428\f1\b0 \cf0 \ 
     429- Add option to select between inline or linked images, or both, on HTML pages\ 
     430 
     431\f0\b \cf2 \ 
     4321.2 
    430433\f1\b0 \cf0 \ 
    431434- Make binary universal\ 
  • Footagehead/trunk/FHController.h

    r3893 r3944  
    6161        IBOutlet NSPanel                                *_openURLPanel; 
    6262        IBOutlet NSTextView                             *_openURLTextView; 
     63        IBOutlet NSPopUpButton                  *_openURLPopUpButton; 
    6364 
    6465        IBOutlet NSPanel                                *_openSpotlightPanel; 
  • Footagehead/trunk/FHController.m

    r3893 r3944  
    840840        [_imageView setImageScaling:[FHSettings intForKey:FHImageScalingMethod]]; 
    841841        [_imageView setImageRotation:[FHSettings floatForKey:FHImageRotation]]; 
     842         
     843        // --- set up URL panel 
     844        [_openURLPopUpButton selectItemWithTag:[FHSettings intForKey:FHHTMLImageType]]; 
    842845 
    843846        // --- create locks 
     
    11681171        [_openURLPanel close]; 
    11691172         
    1170         if(returnCode == NSRunStoppedResponse) 
     1173        if(returnCode == NSRunStoppedResponse) { 
     1174                [FHSettings setInt:[_openURLPopUpButton tagOfSelectedItem] forKey:FHHTMLImageType]; 
     1175 
    11711176                [self _loadURL:[WIURL URLWithString:[_openURLTextView string] scheme:@"http"]]; 
     1177        } 
    11721178} 
    11731179 
  • Footagehead/trunk/FHHTMLParser.m

    r3400 r3944  
    2929#import "NSImage-FHAdditions.h" 
    3030#import "FHHTMLParser.h" 
     31#import "FHSettings.h" 
    3132 
    3233@implementation FHHTMLParser : WIObject 
     
    3738        NSMutableSet    *set; 
    3839        NSCharacterSet  *skipSet; 
     40        NSArray                 *tokens; 
    3941        NSSet                   *types; 
    4042        NSString                *token, *link, *path; 
     
    4749        skipSet = [NSCharacterSet characterSetWithCharactersInString:@" =\r\n\t\"\'<>"]; 
    4850         
    49         for(i = 0, token = @"SRC"; i < 2; i++, token = @"HREF") { 
     51        switch([FHSettings intForKey:FHHTMLImageType]) { 
     52                case FHHTMLImageOnlyInline: 
     53                        tokens = [NSArray arrayWithObject:@"SRC"]; 
     54                        break; 
     55 
     56                case FHHTMLImageOnlyLinks: 
     57                        tokens = [NSArray arrayWithObject:@"HREF"]; 
     58                        break; 
     59 
     60                case FHHTMLImageBothInlineAndLinks: 
     61                default: 
     62                        tokens = [NSArray arrayWithObjects:@"HREF", @"SRC", nil]; 
     63                        break; 
     64        } 
     65         
     66        count = [tokens count]; 
     67         
     68        for(i = 0; i < count; i++) { 
     69                token = [tokens objectAtIndex:i]; 
     70 
    5071                scanner = [[NSScanner alloc] initWithString:html]; 
    5172                [scanner setCaseSensitive:NO]; 
  • Footagehead/trunk/FHSettings.h

    r3887 r3944  
    4040#define FHFullscreenAutoSwitch                          @"FHFullscreenAutoSwitch" 
    4141#define FHFullscreenAutoSwitchTime                      @"FHFullscreenAutoSwitchTime" 
     42#define FHHTMLImageType                                         @"FHHTMLImageType" 
     43#define FHHTMLImageBothInlineAndLinks                   0 
     44#define FHHTMLImageOnlyInline                                   1 
     45#define FHHTMLImageOnlyLinks                                    2 
    4246 
    4347@end 
  • Footagehead/trunk/FHSettings.m

    r3887 r3944  
    5151                [NSNumber numberWithInt:5], 
    5252                        FHFullscreenAutoSwitchTime, 
     53                [NSNumber numberWithInt:FHHTMLImageBothInlineAndLinks], 
     54                        FHHTMLImageType, 
    5355                NULL]; 
    5456} 
  • Footagehead/trunk/Japanese.lproj/InfoPlist.strings

    r2906 r3944  
    11/* Localized versions of Info.plist keys */ 
    22CFBundleName = "Footagehead"; 
    3 CFBundleShortVersionString = "Footagehead 1.2"; 
    4 CFBundleGetInfoString = "Footagehead 1.2, Copyright 2003-2005 Zanka Software."; 
    5 NSHumanReadableCopyright = "Copyright 2003-2005 Zanka Software."; 
     3CFBundleShortVersionString = "Footagehead 1.2.1"; 
     4CFBundleGetInfoString = "Footagehead 1.2.1, Copyright 2003-2006 Zanka Software."; 
     5NSHumanReadableCopyright = "Copyright 2003-2006 Zanka Software."; 
  • Footagehead/trunk/Japanese.lproj/MainMenu.nib/classes.nib

    r3893 r3944  
    4141                "_openSpotlightTextView" = NSTextView;  
    4242                "_openURLPanel" = NSPanel;  
     43                "_openURLPopUpButton" = NSPopUpButton;  
    4344                "_openURLTextView" = NSTextView;  
    4445                "_progressIndicator" = NSProgressIndicator;  
  • Footagehead/trunk/Japanese.lproj/MainMenu.nib/info.nib

    r3898 r3944  
    1818                <integer>438</integer> 
    1919                <integer>21</integer> 
     20                <integer>302</integer> 
    2021        </array> 
    2122        <key>IBSystem Version</key>