forked from yllan/nally
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://nally.googlecode.com/svn/trunk@150 db928f3c-c32d-11dd-ba5c-d3b7c2b3b534
- Loading branch information
jjgod
committed
Dec 5, 2008
1 parent
8abff57
commit 1091072
Showing
18 changed files
with
418 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ImagePreviewer.h | ||
// ImagePreviewer | ||
// | ||
// Created by Jjgod Jiang on 8/18/08. | ||
// Copyright 2008 Jjgod Jiang. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "YLBundle.h" | ||
|
||
@interface ImagePreviewer : YLBundle { | ||
BOOL enabled; | ||
} | ||
|
||
- (IBAction) flipEnabled: (id) sender; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// ImagePreviewer.m | ||
// ImagePreviewer | ||
// | ||
// Created by Jjgod Jiang on 8/18/08. | ||
// Copyright 2008 Jjgod Jiang. All rights reserved. | ||
// | ||
|
||
#import "ImagePreviewer.h" | ||
|
||
@implementation ImagePreviewer | ||
|
||
- (id) init | ||
{ | ||
if (self = [super init]) | ||
{ | ||
// note: we can't use - NSLocalizedString(@"BundleDescription", ""); | ||
// because the main bundle is always the app, so we need to target our | ||
// own bundle this way ... and since these are localized to this bundle/class | ||
description = [self localizedStringForKey: @"BundleDescription"]; | ||
title = [self localizedStringForKey: @"BundleTitle"]; | ||
enabled = YES; | ||
|
||
NSLog(@"Loading Bundle ImagePreviewer."); | ||
|
||
NSMenuItem *item = [[NSMenuItem alloc] initWithTitle: [self localizedStringForKey: @"EnableImagePreview"] | ||
action: @selector(flipEnabled:) | ||
keyEquivalent: @""]; | ||
[item setState: NSOnState]; | ||
[self addMenuItem: item]; | ||
[item release]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (IBAction) flipEnabled: (id) sender | ||
{ | ||
enabled = !enabled; | ||
[(NSMenuItem *) sender setState: enabled ? NSOnState : NSOffState]; | ||
} | ||
|
||
@end |
Binary file not shown.
286 changes: 286 additions & 0 deletions
286
Plugins/ImagePreviewer/ImagePreviewer.xcodeproj/project.pbxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 45; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
077CD77F0E5956E300A7A9B3 /* ImagePreviewer.m in Sources */ = {isa = PBXBuildFile; fileRef = 077CD77E0E5956E300A7A9B3 /* ImagePreviewer.m */; }; | ||
077CD7830E59570200A7A9B3 /* YLBundle.m in Sources */ = {isa = PBXBuildFile; fileRef = 077CD7820E59570200A7A9B3 /* YLBundle.m */; }; | ||
077CD7870E59575E00A7A9B3 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 077CD7860E59575E00A7A9B3 /* Localizable.strings */; }; | ||
8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; | ||
8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
077CD77D0E5956E300A7A9B3 /* ImagePreviewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImagePreviewer.h; sourceTree = "<group>"; }; | ||
077CD77E0E5956E300A7A9B3 /* ImagePreviewer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImagePreviewer.m; sourceTree = "<group>"; }; | ||
077CD7810E59570200A7A9B3 /* YLBundle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YLBundle.h; path = ../../YLBundle.h; sourceTree = SOURCE_ROOT; }; | ||
077CD7820E59570200A7A9B3 /* YLBundle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = YLBundle.m; path = ../../YLBundle.m; sourceTree = SOURCE_ROOT; }; | ||
077CD7840E59573100A7A9B3 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; }; | ||
089C1672FE841209C02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; }; | ||
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | ||
089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; }; | ||
1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; }; | ||
32DBCF630370AF2F00C91783 /* ImagePreviewer_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImagePreviewer_Prefix.pch; sourceTree = "<group>"; }; | ||
8D5B49B6048680CD000E48DA /* ImagePreviewer.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ImagePreviewer.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
8D5B49B7048680CD000E48DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
D2F7E65807B2D6F200F64583 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
8D5B49B3048680CD000E48DA /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
089C166AFE841209C02AAC07 /* ImagePreviewer */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
08FB77AFFE84173DC02AAC07 /* Classes */, | ||
32C88E010371C26100C91783 /* Other Sources */, | ||
089C167CFE841241C02AAC07 /* Resources */, | ||
089C1671FE841209C02AAC07 /* Frameworks and Libraries */, | ||
19C28FB8FE9D52D311CA2CBB /* Products */, | ||
); | ||
name = ImagePreviewer; | ||
sourceTree = "<group>"; | ||
}; | ||
089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */, | ||
1058C7AEFEA557BF11CA2CBB /* Other Frameworks */, | ||
); | ||
name = "Frameworks and Libraries"; | ||
sourceTree = "<group>"; | ||
}; | ||
089C167CFE841241C02AAC07 /* Resources */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
8D5B49B7048680CD000E48DA /* Info.plist */, | ||
089C167DFE841241C02AAC07 /* InfoPlist.strings */, | ||
077CD7860E59575E00A7A9B3 /* Localizable.strings */, | ||
); | ||
name = Resources; | ||
sourceTree = "<group>"; | ||
}; | ||
08FB77AFFE84173DC02AAC07 /* Classes */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
077CD7810E59570200A7A9B3 /* YLBundle.h */, | ||
077CD7820E59570200A7A9B3 /* YLBundle.m */, | ||
077CD77D0E5956E300A7A9B3 /* ImagePreviewer.h */, | ||
077CD77E0E5956E300A7A9B3 /* ImagePreviewer.m */, | ||
); | ||
name = Classes; | ||
sourceTree = "<group>"; | ||
}; | ||
1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */, | ||
); | ||
name = "Linked Frameworks"; | ||
sourceTree = "<group>"; | ||
}; | ||
1058C7AEFEA557BF11CA2CBB /* Other Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
089C167FFE841241C02AAC07 /* AppKit.framework */, | ||
D2F7E65807B2D6F200F64583 /* CoreData.framework */, | ||
089C1672FE841209C02AAC07 /* Foundation.framework */, | ||
); | ||
name = "Other Frameworks"; | ||
sourceTree = "<group>"; | ||
}; | ||
19C28FB8FE9D52D311CA2CBB /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
8D5B49B6048680CD000E48DA /* ImagePreviewer.bundle */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
32C88E010371C26100C91783 /* Other Sources */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
32DBCF630370AF2F00C91783 /* ImagePreviewer_Prefix.pch */, | ||
); | ||
name = "Other Sources"; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
8D5B49AC048680CD000E48DA /* ImagePreviewer */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "ImagePreviewer" */; | ||
buildPhases = ( | ||
8D5B49AF048680CD000E48DA /* Resources */, | ||
8D5B49B1048680CD000E48DA /* Sources */, | ||
8D5B49B3048680CD000E48DA /* Frameworks */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = ImagePreviewer; | ||
productInstallPath = "$(HOME)/Library/Bundles"; | ||
productName = ImagePreviewer; | ||
productReference = 8D5B49B6048680CD000E48DA /* ImagePreviewer.bundle */; | ||
productType = "com.apple.product-type.bundle"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
089C1669FE841209C02AAC07 /* Project object */ = { | ||
isa = PBXProject; | ||
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "ImagePreviewer" */; | ||
compatibilityVersion = "Xcode 3.1"; | ||
hasScannedForEncodings = 1; | ||
mainGroup = 089C166AFE841209C02AAC07 /* ImagePreviewer */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
8D5B49AC048680CD000E48DA /* ImagePreviewer */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
8D5B49AF048680CD000E48DA /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */, | ||
077CD7870E59575E00A7A9B3 /* Localizable.strings in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
8D5B49B1048680CD000E48DA /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
077CD77F0E5956E300A7A9B3 /* ImagePreviewer.m in Sources */, | ||
077CD7830E59570200A7A9B3 /* YLBundle.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
077CD7860E59575E00A7A9B3 /* Localizable.strings */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
077CD7840E59573100A7A9B3 /* English */, | ||
); | ||
name = Localizable.strings; | ||
sourceTree = "<group>"; | ||
}; | ||
089C167DFE841241C02AAC07 /* InfoPlist.strings */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
089C167EFE841241C02AAC07 /* English */, | ||
); | ||
name = InfoPlist.strings; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
1DEB913B08733D840010E9CD /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
COPY_PHASE_STRIP = NO; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_ENABLE_FIX_AND_CONTINUE = YES; | ||
GCC_MODEL_TUNING = G5; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = ImagePreviewer_Prefix.pch; | ||
INFOPLIST_FILE = Info.plist; | ||
INSTALL_PATH = "$(HOME)/Library/Bundles"; | ||
PRODUCT_NAME = ImagePreviewer; | ||
WRAPPER_EXTENSION = bundle; | ||
}; | ||
name = Debug; | ||
}; | ||
1DEB913C08733D840010E9CD /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
GCC_MODEL_TUNING = G5; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = ImagePreviewer_Prefix.pch; | ||
INFOPLIST_FILE = Info.plist; | ||
INSTALL_PATH = "$(HOME)/Library/Bundles"; | ||
PRODUCT_NAME = ImagePreviewer; | ||
WRAPPER_EXTENSION = bundle; | ||
}; | ||
name = Release; | ||
}; | ||
1DEB913F08733D840010E9CD /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
GCC_C_LANGUAGE_STANDARD = c99; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
PREBINDING = NO; | ||
SDKROOT = macosx10.5; | ||
}; | ||
name = Debug; | ||
}; | ||
1DEB914008733D840010E9CD /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
GCC_C_LANGUAGE_STANDARD = c99; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
PREBINDING = NO; | ||
SDKROOT = macosx10.5; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "ImagePreviewer" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
1DEB913B08733D840010E9CD /* Debug */, | ||
1DEB913C08733D840010E9CD /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "ImagePreviewer" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
1DEB913F08733D840010E9CD /* Debug */, | ||
1DEB914008733D840010E9CD /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 089C1669FE841209C02AAC07 /* Project object */; | ||
} |
Oops, something went wrong.