Changeset 743

Show
Ignore:
Timestamp:
10/27/07 01:51:58 (6 years ago)
Author:
cho45
Message:

lang/ruby/Chemr/AppController.rb,
lang/ruby/Chemr/CHMDocument.rb,
lang/ruby/Chemr/Chemr.xcodeproj/cho45.mode1,
lang/ruby/Chemr/Chemr.xcodeproj/project.pbxproj,
lang/ruby/Chemr/Chemr.xcodeproj/cho45.pbxuser:

.chm バンドルのサポート (独自形式)

Location:
lang/ruby/Chemr
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/Chemr/AppController.rb

    r733 r743  
    131131end 
    132132 
    133  
  • lang/ruby/Chemr/CHMDocument.rb

    r740 r743  
    333333        #- (BOOL)readFromURL:(NSURL *)inAbsoluteURL ofType:(NSString *)inTypeName error:(NSError **)outError 
    334334        def readFromURL_ofType_error(url, type, error) 
    335                 @chm = Chmlib::Chm.new(url.path.to_s) 
     335                path = Pathname.new(url.path.to_s) 
     336                if path.directory? 
     337                        @chm = CHMBundle.new(path) 
     338                else 
     339                        @chm = Chmlib::Chm.new(path.to_s) 
     340                end 
    336341                true 
    337342        end 
     
    379384 
    380385end 
     386 
     387 
  • lang/ruby/Chemr/Chemr.xcodeproj/cho45.mode1

    r696 r743  
    271271                                                        <array> 
    272272                                                                <array> 
    273                                                                         <integer>7</integer> 
     273                                                                        <integer>2</integer> 
    274274                                                                        <integer>0</integer> 
    275275                                                                </array> 
    276276                                                        </array> 
    277277                                                        <key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key> 
    278                                                         <string>{{0, 0}, {373, 314}}</string> 
     278                                                        <string>{{0, 20}, {373, 314}}</string> 
    279279                                                </dict> 
    280280                                                <key>PBXTopSmartGroupGIDs</key> 
     
    376376                        <key>TableOfContents</key> 
    377377                        <array> 
    378                                 <string>74DA09910CCFFB3500DDACCE</string> 
     378                                <string>741A3CF00CD24BDA009F050E</string> 
    379379                                <string>1CE0B1FE06471DED0097A5F4</string> 
    380                                 <string>74DA09920CCFFB3500DDACCE</string> 
     380                                <string>741A3CF10CD24BDA009F050E</string> 
    381381                                <string>1CE0B20306471E060097A5F4</string> 
    382382                                <string>1CE0B20506471E060097A5F4</string> 
     
    512512        <key>WindowOrderList</key> 
    513513        <array> 
    514                 <string>74DA09990CCFFB3500DDACCE</string> 
    515                 <string>/Users/cho45/coderepos/lang/ruby/Chemr/Chemr.xcodeproj</string> 
     514                <string>741A3CF80CD24BDA009F050E</string> 
    516515                <string>1CD10A99069EF8BA00B06720</string> 
    517516                <string>1C0AD2B3069F1EA900FABCE6</string> 
     517                <string>/Users/cho45/coderepos/lang/ruby/Chemr/Chemr.xcodeproj</string> 
    518518        </array> 
    519519        <key>WindowString</key> 
     
    637637                                                                                <key>sizes</key> 
    638638                                                                                <array> 
    639                                                                                         <string>{{0, 0}, {208, 144}}</string> 
    640                                                                                         <string>{{208, 0}, {486, 144}}</string> 
     639                                                                                        <string>{{0, 0}, {194, 142}}</string> 
     640                                                                                        <string>{{194, 0}, {500, 142}}</string> 
    641641                                                                                </array> 
    642642                                                                        </dict> 
     
    653653                                                                                <key>sizes</key> 
    654654                                                                                <array> 
    655                                                                                         <string>{{0, 0}, {694, 144}}</string> 
    656                                                                                         <string>{{0, 144}, {694, 237}}</string> 
     655                                                                                        <string>{{0, 0}, {694, 142}}</string> 
     656                                                                                        <string>{{0, 142}, {694, 239}}</string> 
    657657                                                                                </array> 
    658658                                                                        </dict> 
     
    701701                        <array> 
    702702                                <string>1CD10A99069EF8BA00B06720</string> 
    703                                 <string>74DA09930CCFFB3500DDACCE</string> 
     703                                <string>741A3CF20CD24BDA009F050E</string> 
    704704                                <string>1C162984064C10D400B95A72</string> 
    705                                 <string>74DA09940CCFFB3500DDACCE</string> 
    706                                 <string>74DA09950CCFFB3500DDACCE</string> 
    707                                 <string>74DA09960CCFFB3500DDACCE</string> 
    708                                 <string>74DA09970CCFFB3500DDACCE</string> 
    709                                 <string>74DA09980CCFFB3500DDACCE</string> 
    710                                 <string>74DA09990CCFFB3500DDACCE</string> 
     705                                <string>741A3CF30CD24BDA009F050E</string> 
     706                                <string>741A3CF40CD24BDA009F050E</string> 
     707                                <string>741A3CF50CD24BDA009F050E</string> 
     708                                <string>741A3CF60CD24BDA009F050E</string> 
     709                                <string>741A3CF70CD24BDA009F050E</string> 
     710                                <string>741A3CF80CD24BDA009F050E</string> 
    711711                        </array> 
    712712                        <key>ToolbarConfiguration</key> 
     
    965965                        <array> 
    966966                                <string>1C0AD2B3069F1EA900FABCE6</string> 
    967                                 <string>74DA099A0CCFFB3500DDACCE</string> 
     967                                <string>741A3CF90CD24BDA009F050E</string> 
    968968                                <string>1CD0528B0623707200166675</string> 
    969                                 <string>74DA099B0CCFFB3500DDACCE</string> 
     969                                <string>741A3CFA0CD24BDA009F050E</string> 
    970970                        </array> 
    971971                        <key>ToolbarConfiguration</key> 
  • lang/ruby/Chemr/Chemr.xcodeproj/cho45.pbxuser

    r696 r743  
    9191                                ); 
    9292                        }; 
    93                         PBXPerProjectTemplateStateSaveDate = 214956851; 
    94                         PBXWorkspaceStateSaveDate = 214956851; 
     93                        PBXPerProjectTemplateStateSaveDate = 215108535; 
     94                        PBXWorkspaceStateSaveDate = 215108535; 
    9595                }; 
    9696                sourceControlManager = 7443AFF30CCE31610050984A /* Source Control */; 
  • lang/ruby/Chemr/Chemr.xcodeproj/project.pbxproj

    r677 r743  
    1515                4DDCA70D0ACC9A6100E082CE /* RubyCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E8F5E24E03AEB6EC03A81C6F /* RubyCocoa.framework */; }; 
    1616                66A6C82F42B999DC7901B1D6 /* AppController.rb in Resources */ = {isa = PBXBuildFile; fileRef = 8AB11017C292A6A022C3655E /* AppController.rb */; }; 
     17                741A3CED0CD24BD7009F050E /* CHMBundle.rb in Resources */ = {isa = PBXBuildFile; fileRef = 741A3CEC0CD24BD7009F050E /* CHMBundle.rb */; }; 
    1718                7443AFF70CCE31A30050984A /* CHMDocument.nib in Resources */ = {isa = PBXBuildFile; fileRef = 7443AFF50CCE31A30050984A /* CHMDocument.nib */; }; 
    1819                7443AFFA0CCE31BA0050984A /* CHMDocument.rb in Resources */ = {isa = PBXBuildFile; fileRef = 7443AFF90CCE31BA0050984A /* CHMDocument.rb */; }; 
     
    4748                4DDCA7110ACC9A6100E082CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Info.plist; sourceTree = "<group>"; }; 
    4849                4DDCA7120ACC9A6100E082CE /* Chemr.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Chemr.app; sourceTree = BUILT_PRODUCTS_DIR; }; 
     50                741A3CEC0CD24BD7009F050E /* CHMBundle.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = CHMBundle.rb; sourceTree = "<group>"; }; 
    4951                7443AFF60CCE31A30050984A /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/CHMDocument.nib; sourceTree = "<group>"; }; 
    5052                7443AFF90CCE31BA0050984A /* CHMDocument.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = CHMDocument.rb; sourceTree = "<group>"; }; 
     
    7274                        isa = PBXGroup; 
    7375                        children = ( 
     76                                741A3CEC0CD24BD7009F050E /* CHMBundle.rb */, 
    7477                                8AB11017C292A6A022C3655E /* AppController.rb */, 
     78                                7443AFF90CCE31BA0050984A /* CHMDocument.rb */, 
    7579                        ); 
    7680                        name = Classes; 
     
    9195                                29B97325FDCFA39411CA2CEA /* Foundation.framework */, 
    9296                                29B97324FDCFA39411CA2CEA /* AppKit.framework */, 
    93                                 7443AFF90CCE31BA0050984A /* CHMDocument.rb */, 
    9497                        ); 
    9598                        name = "Other Frameworks"; 
     
    213216                                749109C40CCE9466002D03F9 /* icon.icns in Resources */, 
    214217                                74E391350CCF3662007A565D /* file.icns in Resources */, 
     218                                741A3CED0CD24BD7009F050E /* CHMBundle.rb in Resources */, 
    215219                        ); 
    216220                        runOnlyForDeploymentPostprocessing = 0;