diff --git a/iphone/Barcodes/Barcodes-Info.plist b/iphone/Barcodes/Barcodes-Info.plist new file mode 100644 index 000000000..1210ba481 --- /dev/null +++ b/iphone/Barcodes/Barcodes-Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.rpechayr.barcodes + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + NSMainNibFile + MainWindow + + diff --git a/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj new file mode 100755 index 000000000..905ad23ee --- /dev/null +++ b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj @@ -0,0 +1,502 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 1D3623260D0F684500981E51 /* BarcodesAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* BarcodesAppDelegate.m */; }; + 1D60589B0D05DD56006BFB54 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.mm */; }; + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 1FB4301D128FFDCF002D63E8 /* libZXingWidget.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB4301C128FFDCD002D63E8 /* libZXingWidget.a */; }; + 1FB43030128FFF56002D63E8 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4302E128FFF56002D63E8 /* icon.png */; }; + 1FB43031128FFF56002D63E8 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4302F128FFF56002D63E8 /* icon@2x.png */; }; + 1FB430371290002C002D63E8 /* ZXMainViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FB430351290002C002D63E8 /* ZXMainViewController.mm */; }; + 1FB430381290002C002D63E8 /* ZXMainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1FB430361290002C002D63E8 /* ZXMainViewController.xib */; }; + 1FB4303B129000B4002D63E8 /* ZxingLarge.png in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4303A129000B4002D63E8 /* ZxingLarge.png */; }; + 1FB43083129006DC002D63E8 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB43082129006DC002D63E8 /* AudioToolbox.framework */; }; + 1FB43087129006E6002D63E8 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB43086129006E6002D63E8 /* libiconv.dylib */; }; + 1FB430AE12900742002D63E8 /* beep-beep.aiff in Resources */ = {isa = PBXBuildFile; fileRef = 1FB430AD12900742002D63E8 /* beep-beep.aiff */; }; + 1FB430F612900879002D63E8 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB430F512900879002D63E8 /* AVFoundation.framework */; }; + 1FB430FC129008A2002D63E8 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB430FB129008A2002D63E8 /* CoreVideo.framework */; }; + 1FB43100129008B9002D63E8 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB430FF129008B9002D63E8 /* CoreMedia.framework */; }; + 1FB431AB12901D7D002D63E8 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB431AA12901D7D002D63E8 /* AddressBook.framework */; }; + 1FB431B112901D8C002D63E8 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FB431B012901D8C002D63E8 /* AddressBookUI.framework */; }; + 1FB432831290295C002D63E8 /* About.html in Resources */ = {isa = PBXBuildFile; fileRef = 1FB432751290295C002D63E8 /* About.html */; }; + 1FB432841290295C002D63E8 /* DecoderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1FB432771290295C002D63E8 /* DecoderView.xib */; }; + 1FB432851290295C002D63E8 /* Hints.html in Resources */ = {isa = PBXBuildFile; fileRef = 1FB432791290295C002D63E8 /* Hints.html */; }; + 1FB432861290295C002D63E8 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4327B1290295C002D63E8 /* InfoPlist.strings */; }; + 1FB432871290295C002D63E8 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4327D1290295C002D63E8 /* Localizable.strings */; }; + 1FB432881290295C002D63E8 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1FB4327F1290295C002D63E8 /* MainWindow.xib */; }; + 1FB432891290295C002D63E8 /* Message.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1FB432811290295C002D63E8 /* Message.xib */; }; + 1FB4352E12904F56002D63E8 /* MessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4352D12904F56002D63E8 /* MessageViewController.m */; }; + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; + 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 1FB4301B128FFDCD002D63E8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 1FB43017128FFDCD002D63E8 /* ZXingWidget.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = D2AAC07E0554694100DB518D; + remoteInfo = ZXingWidget; + }; + 1FB43025128FFEF9002D63E8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 1FB43017128FFDCD002D63E8 /* ZXingWidget.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = D2AAC07D0554694100DB518D; + remoteInfo = ZXingWidget; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D3623240D0F684500981E51 /* BarcodesAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BarcodesAppDelegate.h; sourceTree = ""; }; + 1D3623250D0F684500981E51 /* BarcodesAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BarcodesAppDelegate.m; sourceTree = ""; }; + 1D6058910D05DD3D006BFB54 /* Barcodes.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Barcodes.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 1FB43017128FFDCD002D63E8 /* ZXingWidget.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ZXingWidget.xcodeproj; path = ../ZXingWidget/ZXingWidget.xcodeproj; sourceTree = SOURCE_ROOT; }; + 1FB4302E128FFF56002D63E8 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = images/icon.png; sourceTree = ""; }; + 1FB4302F128FFF56002D63E8 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "images/icon@2x.png"; sourceTree = ""; }; + 1FB430341290002C002D63E8 /* ZXMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZXMainViewController.h; sourceTree = ""; }; + 1FB430351290002C002D63E8 /* ZXMainViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ZXMainViewController.mm; sourceTree = ""; }; + 1FB430361290002C002D63E8 /* ZXMainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ZXMainViewController.xib; sourceTree = ""; }; + 1FB4303A129000B4002D63E8 /* ZxingLarge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ZxingLarge.png; path = images/ZxingLarge.png; sourceTree = ""; }; + 1FB43082129006DC002D63E8 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 1FB43086129006E6002D63E8 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = usr/lib/libiconv.dylib; sourceTree = SDKROOT; }; + 1FB430AD12900742002D63E8 /* beep-beep.aiff */ = {isa = PBXFileReference; lastKnownFileType = audio.aiff; path = "beep-beep.aiff"; sourceTree = ""; }; + 1FB430F512900879002D63E8 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 1FB430FB129008A2002D63E8 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; + 1FB430FF129008B9002D63E8 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; + 1FB431AA12901D7D002D63E8 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; }; + 1FB431B012901D8C002D63E8 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; }; + 1FB432761290295C002D63E8 /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/About.html; sourceTree = ""; }; + 1FB432781290295C002D63E8 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/DecoderView.xib; sourceTree = ""; }; + 1FB4327A1290295C002D63E8 /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/Hints.html; sourceTree = ""; }; + 1FB4327C1290295C002D63E8 /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + 1FB4327E1290295C002D63E8 /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; + 1FB432801290295C002D63E8 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/MainWindow.xib; sourceTree = ""; }; + 1FB432821290295C002D63E8 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/Message.xib; sourceTree = ""; }; + 1FB4328A12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = en; path = en.lproj/About.html; sourceTree = ""; }; + 1FB4328B12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DecoderView.xib; sourceTree = ""; }; + 1FB4328C12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = en; path = en.lproj/Hints.html; sourceTree = ""; }; + 1FB4328D12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 1FB4328E12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + 1FB4328F12902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = ""; }; + 1FB4329012902968002D63E8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Message.xib; sourceTree = ""; }; + 1FB4329112902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = sv; path = sv.lproj/About.html; sourceTree = ""; }; + 1FB4329212902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/DecoderView.xib; sourceTree = ""; }; + 1FB4329312902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = sv; path = sv.lproj/Hints.html; sourceTree = ""; }; + 1FB4329412902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = ""; }; + 1FB4329512902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = ""; }; + 1FB4329612902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/MainWindow.xib; sourceTree = ""; }; + 1FB4329712902973002D63E8 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/Message.xib; sourceTree = ""; }; + 1FB4352C12904F56002D63E8 /* MessageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageViewController.h; sourceTree = ""; }; + 1FB4352D12904F56002D63E8 /* MessageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MessageViewController.m; sourceTree = ""; }; + 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = ""; }; + 29B97316FDCFA39411CA2CEA /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = ""; }; + 32CA4F630368D1EE00C91783 /* Barcodes_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Barcodes_Prefix.pch; sourceTree = ""; }; + 8D1107310486CEB800E47090 /* Barcodes-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Barcodes-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, + 1FB4301D128FFDCF002D63E8 /* libZXingWidget.a in Frameworks */, + 1FB43083129006DC002D63E8 /* AudioToolbox.framework in Frameworks */, + 1FB43087129006E6002D63E8 /* libiconv.dylib in Frameworks */, + 1FB430F612900879002D63E8 /* AVFoundation.framework in Frameworks */, + 1FB430FC129008A2002D63E8 /* CoreVideo.framework in Frameworks */, + 1FB43100129008B9002D63E8 /* CoreMedia.framework in Frameworks */, + 1FB431AB12901D7D002D63E8 /* AddressBook.framework in Frameworks */, + 1FB431B112901D8C002D63E8 /* AddressBookUI.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 080E96DDFE201D6D7F000001 /* Classes */ = { + isa = PBXGroup; + children = ( + 1FB4352C12904F56002D63E8 /* MessageViewController.h */, + 1FB4352D12904F56002D63E8 /* MessageViewController.m */, + 1D3623240D0F684500981E51 /* BarcodesAppDelegate.h */, + 1D3623250D0F684500981E51 /* BarcodesAppDelegate.m */, + 1FB430341290002C002D63E8 /* ZXMainViewController.h */, + 1FB430351290002C002D63E8 /* ZXMainViewController.mm */, + 1FB430361290002C002D63E8 /* ZXMainViewController.xib */, + ); + path = Classes; + sourceTree = ""; + }; + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* Barcodes.app */, + ); + name = Products; + sourceTree = ""; + }; + 1FB43016128FFDBB002D63E8 /* dependencies */ = { + isa = PBXGroup; + children = ( + 1FB43017128FFDCD002D63E8 /* ZXingWidget.xcodeproj */, + ); + name = dependencies; + sourceTree = ""; + }; + 1FB43018128FFDCD002D63E8 /* Products */ = { + isa = PBXGroup; + children = ( + 1FB4301C128FFDCD002D63E8 /* libZXingWidget.a */, + ); + name = Products; + sourceTree = ""; + }; + 1FB4302D128FFF46002D63E8 /* images */ = { + isa = PBXGroup; + children = ( + 1FB4303A129000B4002D63E8 /* ZxingLarge.png */, + 1FB4302E128FFF56002D63E8 /* icon.png */, + 1FB4302F128FFF56002D63E8 /* icon@2x.png */, + ); + name = images; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 080E96DDFE201D6D7F000001 /* Classes */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 1FB43016128FFDBB002D63E8 /* dependencies */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 32CA4F630368D1EE00C91783 /* Barcodes_Prefix.pch */, + 29B97316FDCFA39411CA2CEA /* main.mm */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 1FB432751290295C002D63E8 /* About.html */, + 1FB432771290295C002D63E8 /* DecoderView.xib */, + 1FB432791290295C002D63E8 /* Hints.html */, + 1FB4327B1290295C002D63E8 /* InfoPlist.strings */, + 1FB4327D1290295C002D63E8 /* Localizable.strings */, + 1FB4327F1290295C002D63E8 /* MainWindow.xib */, + 1FB432811290295C002D63E8 /* Message.xib */, + 1FB430AD12900742002D63E8 /* beep-beep.aiff */, + 1FB4302D128FFF46002D63E8 /* images */, + 28AD733E0D9D9553002E5188 /* MainWindow.xib */, + 8D1107310486CEB800E47090 /* Barcodes-Info.plist */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 288765FC0DF74451002DB57D /* CoreGraphics.framework */, + 1FB43082129006DC002D63E8 /* AudioToolbox.framework */, + 1FB43086129006E6002D63E8 /* libiconv.dylib */, + 1FB430F512900879002D63E8 /* AVFoundation.framework */, + 1FB430FB129008A2002D63E8 /* CoreVideo.framework */, + 1FB430FF129008B9002D63E8 /* CoreMedia.framework */, + 1FB431AA12901D7D002D63E8 /* AddressBook.framework */, + 1FB431B012901D8C002D63E8 /* AddressBookUI.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* Barcodes */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 1FB43026128FFEF9002D63E8 /* PBXTargetDependency */, + ); + name = Barcodes; + productName = Barcodes; + productReference = 1D6058910D05DD3D006BFB54 /* Barcodes.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Barcodes" */; + compatibilityVersion = "Xcode 3.1"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + de, + en, + sv, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 1FB43018128FFDCD002D63E8 /* Products */; + ProjectRef = 1FB43017128FFDCD002D63E8 /* ZXingWidget.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* Barcodes */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 1FB4301C128FFDCD002D63E8 /* libZXingWidget.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libZXingWidget.a; + remoteRef = 1FB4301B128FFDCD002D63E8 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */, + 1FB43030128FFF56002D63E8 /* icon.png in Resources */, + 1FB43031128FFF56002D63E8 /* icon@2x.png in Resources */, + 1FB430381290002C002D63E8 /* ZXMainViewController.xib in Resources */, + 1FB4303B129000B4002D63E8 /* ZxingLarge.png in Resources */, + 1FB430AE12900742002D63E8 /* beep-beep.aiff in Resources */, + 1FB432831290295C002D63E8 /* About.html in Resources */, + 1FB432841290295C002D63E8 /* DecoderView.xib in Resources */, + 1FB432851290295C002D63E8 /* Hints.html in Resources */, + 1FB432861290295C002D63E8 /* InfoPlist.strings in Resources */, + 1FB432871290295C002D63E8 /* Localizable.strings in Resources */, + 1FB432881290295C002D63E8 /* MainWindow.xib in Resources */, + 1FB432891290295C002D63E8 /* Message.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589B0D05DD56006BFB54 /* main.mm in Sources */, + 1D3623260D0F684500981E51 /* BarcodesAppDelegate.m in Sources */, + 1FB430371290002C002D63E8 /* ZXMainViewController.mm in Sources */, + 1FB4352E12904F56002D63E8 /* MessageViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 1FB43026128FFEF9002D63E8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = ZXingWidget; + targetProxy = 1FB43025128FFEF9002D63E8 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 1FB432751290295C002D63E8 /* About.html */ = { + isa = PBXVariantGroup; + children = ( + 1FB432761290295C002D63E8 /* de */, + 1FB4328A12902968002D63E8 /* en */, + 1FB4329112902973002D63E8 /* sv */, + ); + name = About.html; + sourceTree = ""; + }; + 1FB432771290295C002D63E8 /* DecoderView.xib */ = { + isa = PBXVariantGroup; + children = ( + 1FB432781290295C002D63E8 /* de */, + 1FB4328B12902968002D63E8 /* en */, + 1FB4329212902973002D63E8 /* sv */, + ); + name = DecoderView.xib; + sourceTree = ""; + }; + 1FB432791290295C002D63E8 /* Hints.html */ = { + isa = PBXVariantGroup; + children = ( + 1FB4327A1290295C002D63E8 /* de */, + 1FB4328C12902968002D63E8 /* en */, + 1FB4329312902973002D63E8 /* sv */, + ); + name = Hints.html; + sourceTree = ""; + }; + 1FB4327B1290295C002D63E8 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 1FB4327C1290295C002D63E8 /* de */, + 1FB4328D12902968002D63E8 /* en */, + 1FB4329412902973002D63E8 /* sv */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 1FB4327D1290295C002D63E8 /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 1FB4327E1290295C002D63E8 /* de */, + 1FB4328E12902968002D63E8 /* en */, + 1FB4329512902973002D63E8 /* sv */, + ); + name = Localizable.strings; + sourceTree = ""; + }; + 1FB4327F1290295C002D63E8 /* MainWindow.xib */ = { + isa = PBXVariantGroup; + children = ( + 1FB432801290295C002D63E8 /* de */, + 1FB4328F12902968002D63E8 /* en */, + 1FB4329612902973002D63E8 /* sv */, + ); + name = MainWindow.xib; + sourceTree = ""; + }; + 1FB432811290295C002D63E8 /* Message.xib */ = { + isa = PBXVariantGroup; + children = ( + 1FB432821290295C002D63E8 /* de */, + 1FB4329012902968002D63E8 /* en */, + 1FB4329712902973002D63E8 /* sv */, + ); + name = Message.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = Barcodes_Prefix.pch; + INFOPLIST_FILE = "Barcodes-Info.plist"; + PRODUCT_NAME = Barcodes; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = Barcodes_Prefix.pch; + INFOPLIST_FILE = "Barcodes-Info.plist"; + PRODUCT_NAME = Barcodes; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Romain Pechayre (2CQ4EGKG4S)"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + "../ZXingWidget/Classes/**", + ../../cpp/core/src, + ); + PREBINDING = NO; + "PROVISIONING_PROFILE[sdk=iphoneos*]" = "6B49E4AA-03F0-4CBB-80B6-5987C7E23569"; + SDKROOT = iphoneos; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + PREBINDING = NO; + SDKROOT = iphoneos; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Barcodes" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff --git a/iphone/Barcodes/Barcodes_Prefix.pch b/iphone/Barcodes/Barcodes_Prefix.pch new file mode 100644 index 000000000..bb34b4f86 --- /dev/null +++ b/iphone/Barcodes/Barcodes_Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'Barcodes' target in the 'Barcodes' project +// + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/iphone/Barcodes/Classes/BarcodesAppDelegate.h b/iphone/Barcodes/Classes/BarcodesAppDelegate.h new file mode 100644 index 000000000..a98002085 --- /dev/null +++ b/iphone/Barcodes/Classes/BarcodesAppDelegate.h @@ -0,0 +1,21 @@ +// +// BarcodesAppDelegate.h +// Barcodes +// +// Created by Romain Pechayre on 11/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import +@class ZXMainViewController; + +@interface BarcodesAppDelegate : NSObject { + UIWindow *window; + ZXMainViewController *rootController; + +} + +@property (nonatomic, retain) IBOutlet UIWindow *window; +@property (nonatomic, retain) IBOutlet ZXMainViewController *rootController; +@end + diff --git a/iphone/Barcodes/Classes/BarcodesAppDelegate.m b/iphone/Barcodes/Classes/BarcodesAppDelegate.m new file mode 100644 index 000000000..7cf922424 --- /dev/null +++ b/iphone/Barcodes/Classes/BarcodesAppDelegate.m @@ -0,0 +1,84 @@ +// +// BarcodesAppDelegate.m +// Barcodes +// +// Created by Romain Pechayre on 11/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import "BarcodesAppDelegate.h" +#import "ZXMainViewController.h" + +@implementation BarcodesAppDelegate + +@synthesize window; +@synthesize rootController; + +#pragma mark - +#pragma mark Application lifecycle + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + + // Override point for customization after application launch. + [self.window addSubview:rootController.view]; + [self.window makeKeyAndVisible]; + return YES; +} + + +- (void)applicationWillResignActive:(UIApplication *)application { + /* + Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + */ +} + + +- (void)applicationDidEnterBackground:(UIApplication *)application { + /* + Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + If your application supports background execution, called instead of applicationWillTerminate: when the user quits. + */ +} + + +- (void)applicationWillEnterForeground:(UIApplication *)application { + /* + Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. + */ +} + + +- (void)applicationDidBecomeActive:(UIApplication *)application { + /* + Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + */ +} + + +- (void)applicationWillTerminate:(UIApplication *)application { + /* + Called when the application is about to terminate. + See also applicationDidEnterBackground:. + */ +} + + +#pragma mark - +#pragma mark Memory management + +- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { + /* + Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. + */ +} + + +- (void)dealloc { + [rootController release]; + [window release]; + [super dealloc]; +} + + +@end diff --git a/iphone/Barcodes/Classes/MessageViewController.h b/iphone/Barcodes/Classes/MessageViewController.h new file mode 100644 index 000000000..348d0a44d --- /dev/null +++ b/iphone/Barcodes/Classes/MessageViewController.h @@ -0,0 +1,41 @@ +// +// MessageViewController.h +// ZXing +// +// Created by Christian Brunschen on 30/07/2008. +/* + * Copyright 2008 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import + +@interface MessageViewController : UIViewController { + id callbackTarget; + SEL callbackSelectorSuccess; + SEL callbackSelectorFailure; + NSURL *contentURL; +} + +@property (nonatomic, retain) id callbackTarget; +@property (nonatomic, assign) SEL callbackSelectorSuccess; +@property (nonatomic, assign) SEL callbackSelectorFailure; + +@property (nonatomic, readonly) UIWebView *webView; + +@property (nonatomic, retain) NSURL *contentURL; + +- (id)initWithMessageFilename:(NSString *)filename target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs; + +@end diff --git a/iphone/Barcodes/Classes/MessageViewController.m b/iphone/Barcodes/Classes/MessageViewController.m new file mode 100644 index 000000000..886b60c0f --- /dev/null +++ b/iphone/Barcodes/Classes/MessageViewController.m @@ -0,0 +1,108 @@ +// +// MessageViewController.m +// ZXing +// +// Created by Christian Brunschen on 30/07/2008. +/* + * Copyright 2008 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import "MessageViewController.h" + + +@implementation MessageViewController + +@synthesize callbackTarget; +@synthesize callbackSelectorSuccess; +@synthesize callbackSelectorFailure; +@synthesize contentURL; + +- (UIWebView *)webView { + return (UIWebView *)self.view; +} + +- (id)initWithMessageFilename:(NSString *)filename + target:(id)cbt + onSuccess:(SEL)ss + onFailure:(SEL)fs { + if ((self = [super initWithNibName:@"Message" bundle:nil])) { + self.callbackTarget = cbt; + self.callbackSelectorSuccess = ss; + self.callbackSelectorFailure = fs; + self.contentURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:filename + ofType:@"html"]]; + } + return self; +} + +- (void)loadView { + [super loadView]; + self.webView.delegate = self; + [self.webView loadRequest:[NSURLRequest requestWithURL:self.contentURL]]; +} + +- (void)viewDidLoad { + [super viewDidLoad]; +} + + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + // Return YES for supported orientations + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview + // Release anything that's not essential, such as cached data +} + + +- (void)dealloc { + [super dealloc]; +} + +// open a URL, asynchronously +- (void) openURL:(NSURL *)url { + [url autorelease]; + [[UIApplication sharedApplication] openURL:url]; +} + + +// UIWebViewDelegate methods + +- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { + if ([[request URL] isFileURL]) { + // only load 'file' URL requests ourselves + return true; + } else { + // any other url:s are handed off to the system + NSURL *url = [[request URL] retain]; + [self performSelectorOnMainThread:@selector(openURL:) withObject:url waitUntilDone:false]; + return false; + } +} + +- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { + NSLog(@"failed to load content, performing failure callback"); + [self.callbackTarget performSelector:self.callbackSelectorFailure withObject:self afterDelay:0.0]; +} + +- (void)webViewDidFinishLoad:(UIWebView *)webView { + NSLog(@"finished loading content, performing success callback"); + [self.callbackTarget performSelector:self.callbackSelectorSuccess withObject:self afterDelay:0.0]; +} + + +@end diff --git a/iphone/Barcodes/Classes/ZXMainViewController.h b/iphone/Barcodes/Classes/ZXMainViewController.h new file mode 100644 index 000000000..ba62e893c --- /dev/null +++ b/iphone/Barcodes/Classes/ZXMainViewController.h @@ -0,0 +1,30 @@ +// +// ZXMainViewController.h +// Barcodes +// +// Created by Romain Pechayre on 11/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import +#import "ZXingWidgetController.h" +@class UniversalResultParser; +@class ParsedResult; + +@interface ZXMainViewController : UIViewController { + UniversalResultParser *resultParser; + NSArray *actions; + ParsedResult *result; +} + +@property(nonatomic,retain) UniversalResultParser *resultParser; +@property (nonatomic,assign) NSArray *actions; +@property (nonatomic,assign) ParsedResult *result; + +- (IBAction)scan:(id)sender; +- (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)result; +- (void)zxingControllerDidCancel:(ZXingWidgetController*)controller; +- (void)performResultAction; + + +@end diff --git a/iphone/Barcodes/Classes/ZXMainViewController.mm b/iphone/Barcodes/Classes/ZXMainViewController.mm new file mode 100644 index 000000000..fed6ba9af --- /dev/null +++ b/iphone/Barcodes/Classes/ZXMainViewController.mm @@ -0,0 +1,151 @@ +// +// ZXMainViewController.m +// Barcodes +// +// Created by Romain Pechayre on 11/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import "ZXMainViewController.h" +#import +#import +#import +#import + +@implementation ZXMainViewController +@synthesize resultParser; +@synthesize actions; +@synthesize result; + +// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. +/* +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + + } + return self; +} +*/ + + +// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. +- (void)viewDidLoad { + [super viewDidLoad]; + UniversalResultParser *parser = [[UniversalResultParser alloc] initWithDefaultParsers]; + self.resultParser = parser; + [parser release]; +} + + +/* +// Override to allow orientations other than the default portrait orientation. +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + // Return YES for supported orientations. + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} +*/ + +- (IBAction)scan:(id)sender { + + ZXingWidgetController *widController = [[ZXingWidgetController alloc] initWithDelegate:self showCancel:YES OneDMode:NO]; + QRCodeReader* qrcodeReader = [[QRCodeReader alloc] init]; + NSSet *readers = [[NSSet alloc ] initWithObjects:qrcodeReader,nil]; + [qrcodeReader release]; + widController.readers = readers; + [readers release]; + NSBundle *mainBundle = [NSBundle mainBundle]; + widController.soundToPlay = + [NSURL fileURLWithPath:[mainBundle pathForResource:@"beep-beep" ofType:@"aiff"] isDirectory:NO]; + [self presentModalViewController:widController animated:YES]; + [widController release]; +} + +- (IBAction) info:(id)sender { + +} + +- (void)didReceiveMemoryWarning { + // Releases the view if it doesn't have a superview. + [super didReceiveMemoryWarning]; + + // Release any cached data, images, etc. that aren't in use. +} + +- (void)viewDidUnload { + [super viewDidUnload]; + // Release any retained subviews of the main view. + // e.g. self.myOutlet = nil; +} + + +- (void)dealloc { + [resultParser release]; + actions = nil; + result = nil; + [super dealloc]; +} + +#pragma mark - +#pragma mark ZXingDelegateMethods + +- (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)resultString { + [self dismissModalViewControllerAnimated:YES]; + ParsedResult *theResult = [self.resultParser resultForString:resultString]; + self.result = [theResult retain]; + self.actions = [self.result.actions retain]; +#ifdef DEBUG + NSLog(@"result has %d actions", actions ? 0 : actions.count); +#endif + [self performResultAction]; +} + +- (void)confirmAndPerformAction:(ResultAction *)action { + [action performActionWithController:self shouldConfirm:YES]; +} + +- (void)performResultAction { + if (self.result == nil) { + NSLog(@"no result to perform an action on!"); + return; + } + + if (self.actions == nil || self.actions.count == 0) { + NSLog(@"result has no actions to perform!"); + return; + } + + if (self.actions.count == 1) { + ResultAction *action = [self.actions lastObject]; +#ifdef DEBUG + NSLog(@"Result has the single action, (%@) '%@', performing it", + NSStringFromClass([action class]), [action title]); +#endif + [self performSelector:@selector(confirmAndPerformAction:) + withObject:action + afterDelay:0.0]; + } else { +#ifdef DEBUG + NSLog(@"Result has multiple actions, popping up an action sheet"); +#endif + UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithFrame:self.view.bounds]; + + for (ResultAction *action in self.actions) { + [actionSheet addButtonWithTitle:[action title]]; + } + + int cancelIndex = [actionSheet addButtonWithTitle:NSLocalizedString(@"DecoderViewController cancel button title", @"Cancel")]; + actionSheet.cancelButtonIndex = cancelIndex; + + actionSheet.delegate = self; + + [actionSheet showInView:self.view]; + } +} + +- (void)zxingControllerDidCancel:(ZXingWidgetController*)controller { + [self dismissModalViewControllerAnimated:YES]; +} + + +@end diff --git a/iphone/Barcodes/Classes/ZXMainViewController.xib b/iphone/Barcodes/Classes/ZXMainViewController.xib new file mode 100644 index 000000000..f43204383 --- /dev/null +++ b/iphone/Barcodes/Classes/ZXMainViewController.xib @@ -0,0 +1,522 @@ + + + + 1056 + 10H542 + 823 + 1038.35 + 461.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 132 + + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + + YES + + + 274 + {{96, 81}, {128, 128}} + + NO + IBCocoaTouchFramework + + NSImage + ZxingLarge.png + + + + + 292 + {{68, 30}, {183, 21}} + + NO + YES + 7 + NO + IBCocoaTouchFramework + ZXing iPhone Scanner + + Helvetica-Bold + 17 + 16 + + + 1 + MCAwIDAAA + + + 3 + MQA + + 1 + 10 + + + + 292 + {{96, 240}, {128, 61}} + + NO + IBCocoaTouchFramework + 0 + 0 + + Helvetica-Bold + 15 + 16 + + 1 + Scan! + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + 3 + MC41AA + + + + + 292 + {{282, 421}, {18, 19}} + + NO + IBCocoaTouchFramework + 0 + 0 + + 4 + YES + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + + + {320, 460} + + + 1 + MC45MTM3MjU0OTAyIDAuOTMzMzMzMzMzMyAwLjk1Mjk0MTE3NjUAA + + + IBCocoaTouchFramework + + + + + YES + + + view + + + + 3 + + + + scan: + + + 7 + + 7 + + + + + YES + + 0 + + + + + + 1 + + + YES + + + + + + + + + -1 + + + File's Owner + + + -2 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 8 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 4.IBPluginDependency + 4.IBViewBoundsToFrameTransform + 5.IBPluginDependency + 5.IBViewBoundsToFrameTransform + 6.IBPluginDependency + 6.IBViewBoundsToFrameTransform + 8.IBPluginDependency + 8.IBViewBoundsToFrameTransform + + + YES + ZXMainViewController + UIResponder + {{184, 249}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + P4AAAL+AAABCoAAAwzYAAA + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + P4AAAL+AAABCzAAAwgAAAA + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + P4AAAL+AAABC+AAAw5CAAA + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + P4AAAL+AAABDQgAAw8CAAA + + + + + YES + + + YES + + + + + YES + + + YES + + + + 8 + + + + YES + + ZXMainViewController + UIViewController + + scan: + id + + + scan: + + scan: + id + + + + IBProjectSource + Classes/ZXMainViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIButton + UIControl + + IBFrameworkSource + UIKit.framework/Headers/UIButton.h + + + + UIControl + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIControl.h + + + + UIImageView + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIImageView.h + + + + UILabel + UIView + + IBFrameworkSource + UIKit.framework/Headers/UILabel.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIPrintFormatter.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UIPopoverController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UISplitViewController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + ../Barcodes.xcodeproj + 3 + + ZxingLarge.png + {128, 128} + + 132 + + diff --git a/iphone/Barcodes/MainWindow.xib b/iphone/Barcodes/MainWindow.xib new file mode 100644 index 000000000..a695aa9e2 --- /dev/null +++ b/iphone/Barcodes/MainWindow.xib @@ -0,0 +1,456 @@ + + + + 1056 + 10H542 + 823 + 1038.35 + 461.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 132 + + + YES + + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + IBCocoaTouchFramework + + + + 1316 + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + IBCocoaTouchFramework + YES + + + ZXMainViewController + + + 1 + + IBCocoaTouchFramework + NO + + + + + YES + + + delegate + + + + 4 + + + + window + + + + 5 + + + + rootController + + + + 11 + + + + + YES + + 0 + + + + + + 2 + + + YES + + + + + -1 + + + File's Owner + + + 3 + + + + + -2 + + + + + 10 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 10.CustomClassName + 10.IBEditorWindowLastContentRect + 10.IBPluginDependency + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + + + YES + UIApplication + UIResponder + ZXMainViewController + {{0, 254}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + YES + + + YES + + + {{198, 276}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + BarcodesAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 11 + + + + YES + + BarcodesAppDelegate + NSObject + + YES + + YES + rootController + window + + + YES + ZXMainViewController + UIWindow + + + + YES + + YES + rootController + window + + + YES + + rootController + ZXMainViewController + + + window + UIWindow + + + + + IBProjectSource + Classes/BarcodesAppDelegate.h + + + + BarcodesAppDelegate + NSObject + + IBUserSource + + + + + ZXMainViewController + UIViewController + + IBProjectSource + Classes/ZXMainViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIApplication + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIApplication.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIPrintFormatter.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UIPopoverController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UISplitViewController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + UIWindow + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIWindow.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + Barcodes.xcodeproj + 3 + 132 + + diff --git a/iphone/Barcodes/beep-beep.aiff b/iphone/Barcodes/beep-beep.aiff new file mode 100644 index 000000000..8854a590a Binary files /dev/null and b/iphone/Barcodes/beep-beep.aiff differ diff --git a/iphone/Barcodes/de.lproj/About.html b/iphone/Barcodes/de.lproj/About.html new file mode 100644 index 000000000..c425e06aa --- /dev/null +++ b/iphone/Barcodes/de.lproj/About.html @@ -0,0 +1,23 @@ + + +Info zu Strichcodes + + + + + +

+ZXing Project Logo

+

Strichcodes

+

Version 1.1

+

© 2008-2010 The ZXing +Authors
+

+

+Unterstützte Strichcode-Formate: +

+

+QR Code
+

+ \ No newline at end of file diff --git a/iphone/Barcodes/de.lproj/DecoderView.xib b/iphone/Barcodes/de.lproj/DecoderView.xib new file mode 100644 index 000000000..dc8e161f7 --- /dev/null +++ b/iphone/Barcodes/de.lproj/DecoderView.xib @@ -0,0 +1,450 @@ + + + + 512 + 9E17 + 670 + 949.33 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + 274 + + YES + + + 266 + {{0, 431}, {320, 49}} + + NO + NO + + YES + + 15 + + + + 1 + 5 + + + + 1 + + NSImage + filmroll-2.png + + + + + 5 + + + + 2 + + NSImage + photolib.png + + + + + 1 + 5 + + + + 16 + 10 + + + + 1 + 5 + + + + 17 + 9 + + + + + + + 274 + {320, 431} + + + 1 + MCAwIDAAA + + NO + 3 + + + {320, 480} + + + 3 + + + + + YES + + + view + + + + 9 + + + + actionBarItem + + + + 51 + + + + performResultAction: + + + + 53 + + + + toolbar + + + + 57 + + + + pickAndDecode: + + + + 60 + + + + pickAndDecode: + + + + 61 + + + + pickAndDecode: + + + + 62 + + + + cameraBarItem + + + + 63 + + + + savedPhotosBarItem + + + + 64 + + + + libraryBarItem + + + + 65 + + + + archiveBarItem + + + + 66 + + + + showArchive: + + + + 67 + + + + imageView + + + + 71 + + + + + YES + + 0 + + YES + + + + + + 1 + + + YES + + + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + -2 + + + + + 34 + + + YES + + + + + + + + + + + + + + 35 + + + + + 36 + + + + + 37 + + + + + 38 + + + + + 54 + + + + + 55 + + + + + 56 + + + + + 58 + + + + + 59 + + + + + 70 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 34.IBPluginDependency + 35.IBPluginDependency + 36.IBPluginDependency + 37.IBPluginDependency + 38.IBPluginDependency + 54.IBPluginDependency + 55.IBPluginDependency + 56.IBPluginDependency + 58.IBPluginDependency + 59.IBPluginDependency + 70.CustomClassName + 70.IBPluginDependency + + + YES + DecoderViewController + UIResponder + {{387, 352}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ScannedImageView + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 71 + + + + YES + + DecoderViewController + UIViewController + + YES + + YES + performResultAction: + pickAndDecode: + showArchive: + + + YES + id + id + id + + + + YES + + YES + actionBarItem + archiveBarItem + cameraBarItem + imageView + libraryBarItem + messageHelpButton + messageTextView + messageView + savedPhotosBarItem + toolbar + + + YES + UIBarItem + UIBarItem + UIBarItem + ScannedImageView + UIBarItem + UIButton + UITextView + UIView + UIBarItem + UIToolbar + + + + IBProjectSource + Classes/DecoderViewController.h + + + + ScannedImageView + UIView + + IBProjectSource + Classes/ScannedImageView.h + + + + + 0 + ../ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/de.lproj/Hints.html b/iphone/Barcodes/de.lproj/Hints.html new file mode 100644 index 000000000..f874eb62b --- /dev/null +++ b/iphone/Barcodes/de.lproj/Hints.html @@ -0,0 +1,14 @@ + + +Barcode Hints + + + + +

iPhone hat eine fix-fokus-Kamera. Dies funktioniert oft gut, ist +aber für Strichcode-Erkennung ungeeignet, weil alles was zu nah an der +Kamera ist unscharf aussieht und schwer zu dekodieren ist. Für die +besten Resultate sollten Sie:

  • Mindestens 60 cm Abstand zwischen Kamera und Strichcode halten
  • Im Schritt Bewegen und Skalieren den Strichcode im Bild zentrieren und fast flächenfüllend vergrößern
Dies +gibt dem Dekoder ein scharfes, großes Bild, das hauptsächlich den +Strichcode enthält, und sich am einfachsten dekodieren läßt. \ No newline at end of file diff --git a/iphone/Barcodes/de.lproj/InfoPlist.strings b/iphone/Barcodes/de.lproj/InfoPlist.strings new file mode 100644 index 000000000..15309108b --- /dev/null +++ b/iphone/Barcodes/de.lproj/InfoPlist.strings @@ -0,0 +1 @@ +CFBundleDisplayName = "Strichcodes"; \ No newline at end of file diff --git a/iphone/Barcodes/de.lproj/Localizable.strings b/iphone/Barcodes/de.lproj/Localizable.strings new file mode 100644 index 000000000..008c2f830 --- /dev/null +++ b/iphone/Barcodes/de.lproj/Localizable.strings @@ -0,0 +1,141 @@ +/* Add Contact? */ +"AddContactAction alert message" = "Kontaktinfo speichern?"; + +/* Cancel */ +"AddContactAction cancel button title" = "Abbrechen"; + +/* Add Contact */ +"AddContactAction confirm button title" = "Kontaktinfo speichern"; + +/* Add Contact */ +"AddContactAction title" = "Kontaktinfo speichern"; + +/* Call %@ */ +"CallAction action title" = "%@ Anrufen"; + +/* Call */ +"CallAction alert button title" = "Anrufen"; + +/* Call %@? */ +"CallAction alert message" = "%@ Anrufen?"; + +/* Call */ +"CallAction alert title" = "Anrufen"; + +/* Compose */ +"SMSAction alert title" = "Schreiben"; + +/* Contact */ +"Contact Result Type Name" = "Kontakt"; + +/* No barcode detected. */ +"Decoder BarcodeDetectionFailure" = "Kein Strichcode gefunden."; + +/* Decoding ... */ +"Decoder MessageWhileDecoding" = "Dekodiert ..."; + +/* ZXing */ +"DecoderViewController AppTitle" = "Strichcodes"; + +/* Cancel */ +"DecoderViewController cancel button title" = "Abbrechen"; + +/* About */ +"DecoderViewController about button title" = "Info"; + +/* Hints */ +"DecoderViewController Hints MessageViewController title" = "Tips"; + +/* About */ +"DecoderViewController About MessageViewController title" = "Info"; + +/* Decoding image (%.0fx%.0f) ... */ +"DecoderViewController MessageWhileDecodingWithDimensions" = "Dekodiert Bild (%.0fx%.0f) ..."; + +/* Please take or choose a picture containing a barcode */ +"DecoderViewController take or choose picture" = "Bitte nehmen oder wählen Sie ein Bild mit Strichcode"; + +/* Email %@ */ +"EmailAction action title" = "Email an %@"; + +/* Compose */ +"EmailAction alert button title" = "Schreiben"; + +/* Compose Email to %@? */ +"EmailAction alert message" = "Email an %@ schreiben?"; + +/* Compose Email */ +"EmailAction alert title" = "Email schreiben"; + +/* %@ */ +"EmailParsedResult Display: Body" = "%@"; + +/* To: %@ */ +"EmailParsedResult Display: Recipient" = "An: %@"; + +/* Subject: %@ */ +"EmailParsedResult Display: Subject" = "Betreff: %@"; + +/* Email */ +"EmailParsedResult type name" = "Email"; + +/* Geo: %@ */ +"GeoParsedResult display" = "Geo: %@"; + +/* Geolocation */ +"GeoParsedResult type name" = "Platz"; + +/* Open URL */ +"OpenURLAction action title" = "Link öffnen"; + +/* Open */ +"OpenURLAction alert button title" = "Öffnen"; + +/* Open URL <%@>? */ +"OpenURLAction alert message" = "Link <%@> öffnen?"; + +/* Open URL */ +"OpenURLAction alert title" = "Link öffnen"; + +/* Cancel */ +"OpenURLAction cancel button title" = "Abbrechen"; + +/* Scan Archive */ +"ScanArchiveTitle" = "Scan Archiv"; + +/* Scan */ +"ScanViewController title" = "Scan"; + +/* Show on Map */ +"ShowMapAction action title" = "Auf der Karte zeigen"; + +/* Show */ +"ShowMapAction alert button title" = "Zeigen"; + +/* Show location %@ on Map ? */ +"ShowMapAction alert message" = "Platz %@ auf der Karte Zeigen?"; + +/* Show on Map */ +"ShowMapAction alert title" = "Auf der Karte zeigen"; + +/* Compose SMS to %@ */ +"SMSAction action title" = "SMS an %@ schreiben"; + +/* Compose */ +"SMSAction alert button title" = "Schreiben"; + +/* Compose SMS to %@? */ +"SMSAction alert message" = "SMS an %@ schreiben?"; + +/* SMS */ +"SMSParsedResult type name" = "SMS"; + +/* Tel */ +"TelParsedResult type name" = "Telefon"; + +/* Text */ +"TextParsedResult type name" = "Text"; + +/* URI */ +"URIParsedResult type name" = "Link"; + diff --git a/iphone/Barcodes/de.lproj/MainWindow.xib b/iphone/Barcodes/de.lproj/MainWindow.xib new file mode 100644 index 000000000..e0a569241 --- /dev/null +++ b/iphone/Barcodes/de.lproj/MainWindow.xib @@ -0,0 +1,171 @@ + + + + 512 + 9C7010 + 658 + 949.26 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + + 1292 + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + + + + YES + + + window + + + + 5 + + + + delegate + + + + 9 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 3 + + + + + -2 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + + + YES + UIApplication + UIResponder + + YES + + YES + + + YES + + + {{229, 113}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ZXingAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 11 + + + + YES + + ZXingAppDelegate + NSObject + + window + UIWindow + + + IBProjectSource + Classes/ZXingAppDelegate.h + + + + + 0 + ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/de.lproj/Message.xib b/iphone/Barcodes/de.lproj/Message.xib new file mode 100644 index 000000000..cd06af12c --- /dev/null +++ b/iphone/Barcodes/de.lproj/Message.xib @@ -0,0 +1,349 @@ + + + + 768 + 10D573 + 762 + 1038.29 + 460.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 87 + + + YES + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + {320, 460} + + 3 + MAA + + YES + YES + IBCocoaTouchFramework + YES + + + + + YES + + + view + + + + 5 + + + + + YES + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 4 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 4.IBPluginDependency + + + YES + MessageViewController + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 5 + + + + YES + + MessageViewController + UIViewController + + callbackTarget + id + + + IBProjectSource + Classes/MessageViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSNetServices.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPort.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSStream.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSXMLParser.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + UIWebView + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIWebView.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + ../ZXing.xcodeproj + 3 + 87 + + diff --git a/iphone/Barcodes/en.lproj/About.html b/iphone/Barcodes/en.lproj/About.html new file mode 100644 index 000000000..816c89d21 --- /dev/null +++ b/iphone/Barcodes/en.lproj/About.html @@ -0,0 +1,23 @@ + + +About Barcodes + + + + + +

+ZXing Project Logo

+

Barcodes

+

Version 1.1

+

© 2008-2010 The ZXing +Authors
+

+

+Supported barcode formats: +

+

+QR Code
+

+ \ No newline at end of file diff --git a/iphone/Barcodes/en.lproj/DecoderView.xib b/iphone/Barcodes/en.lproj/DecoderView.xib new file mode 100644 index 000000000..bf75d6633 --- /dev/null +++ b/iphone/Barcodes/en.lproj/DecoderView.xib @@ -0,0 +1,450 @@ + + + + 512 + 9E17 + 670 + 949.33 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + 274 + + YES + + + 266 + {{0, 431}, {320, 49}} + + NO + NO + + YES + + 15 + + + + 1 + 5 + + + + 1 + + NSImage + filmroll-2.png + + + + + 5 + + + + 2 + + NSImage + photolib.png + + + + + 1 + 5 + + + + 16 + 10 + + + + 1 + 5 + + + + 17 + 9 + + + + + + + 274 + {320, 431} + + + 1 + MCAwIDAAA + + NO + 3 + + + {320, 480} + + + 3 + + + + + YES + + + view + + + + 9 + + + + actionBarItem + + + + 51 + + + + performResultAction: + + + + 53 + + + + toolbar + + + + 57 + + + + pickAndDecode: + + + + 60 + + + + pickAndDecode: + + + + 61 + + + + pickAndDecode: + + + + 62 + + + + cameraBarItem + + + + 63 + + + + savedPhotosBarItem + + + + 64 + + + + libraryBarItem + + + + 65 + + + + archiveBarItem + + + + 66 + + + + showArchive: + + + + 67 + + + + imageView + + + + 71 + + + + + YES + + 0 + + YES + + + + + + 1 + + + YES + + + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + -2 + + + + + 34 + + + YES + + + + + + + + + + + + + + 35 + + + + + 36 + + + + + 37 + + + + + 38 + + + + + 54 + + + + + 55 + + + + + 56 + + + + + 58 + + + + + 59 + + + + + 70 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 34.IBPluginDependency + 35.IBPluginDependency + 36.IBPluginDependency + 37.IBPluginDependency + 38.IBPluginDependency + 54.IBPluginDependency + 55.IBPluginDependency + 56.IBPluginDependency + 58.IBPluginDependency + 59.IBPluginDependency + 70.CustomClassName + 70.IBPluginDependency + + + YES + DecoderViewController + UIResponder + {{387, 352}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ScannedImageView + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 71 + + + + YES + + DecoderViewController + UIViewController + + YES + + YES + performResultAction: + pickAndDecode: + showArchive: + + + YES + id + id + id + + + + YES + + YES + actionBarItem + archiveBarItem + cameraBarItem + imageView + libraryBarItem + messageHelpButton + messageTextView + messageView + savedPhotosBarItem + toolbar + + + YES + UIBarItem + UIBarItem + UIBarItem + ScannedImageView + UIBarItem + UIButton + UITextView + UIView + UIBarItem + UIToolbar + + + + IBProjectSource + Classes/DecoderViewController.h + + + + ScannedImageView + UIView + + IBProjectSource + Classes/ScannedImageView.h + + + + + 0 + ../ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/en.lproj/Hints.html b/iphone/Barcodes/en.lproj/Hints.html new file mode 100644 index 000000000..15603d931 --- /dev/null +++ b/iphone/Barcodes/en.lproj/Hints.html @@ -0,0 +1,17 @@ + + +Barcode Hints + + + + + +

The +iPhone camera has a fixed focus depth, which works well for many +situations but is not ideal for scanning barcodes. Specifically, anything that is too close to the camera will look fuzzy +and will be difficult to decode. For best barcode scanning results:

  • Take the picture from a distance of at least 2 feet / 60 cm
  • Use the Scale and +Move screen to place the barcode centered, almost filling the screen
This will give the decoder a large picture +containing mainly the barcode, which will be the easiest for it to +decode. + \ No newline at end of file diff --git a/iphone/Barcodes/en.lproj/InfoPlist.strings b/iphone/Barcodes/en.lproj/InfoPlist.strings new file mode 100644 index 000000000..d22c0553a --- /dev/null +++ b/iphone/Barcodes/en.lproj/InfoPlist.strings @@ -0,0 +1 @@ +CFBundleDisplayName = "Barcodes"; \ No newline at end of file diff --git a/iphone/Barcodes/en.lproj/Localizable.strings b/iphone/Barcodes/en.lproj/Localizable.strings new file mode 100644 index 000000000..a8113c63d --- /dev/null +++ b/iphone/Barcodes/en.lproj/Localizable.strings @@ -0,0 +1,141 @@ +/* Add Contact? */ +"AddContactAction alert message" = "Add Contact?"; + +/* Cancel */ +"AddContactAction cancel button title" = "Cancel"; + +/* Add Contact */ +"AddContactAction confirm button title" = "Add Contact"; + +/* Add Contact */ +"AddContactAction title" = "Add Contact"; + +/* Call %@ */ +"CallAction action title" = "Call %@"; + +/* Call */ +"CallAction alert button title" = "Call"; + +/* Call %@? */ +"CallAction alert message" = "Call %@?"; + +/* Call */ +"CallAction alert title" = "Call"; + +/* Compose */ +"SMSAction alert title" = "Compose"; + +/* Contact */ +"Contact Result Type Name" = "Contact"; + +/* No barcode detected. */ +"Decoder BarcodeDetectionFailure" = "No barcode detected."; + +/* Decoding ... */ +"Decoder MessageWhileDecoding" = "Decoding ..."; + +/* ZXing */ +"DecoderViewController AppTitle" = "Barcodes"; + +/* Cancel */ +"DecoderViewController cancel button title" = "Cancel"; + +/* About */ +"DecoderViewController about button title" = "About"; + +/* Hints */ +"DecoderViewController Hints MessageViewController title" = "Hints"; + +/* About */ +"DecoderViewController About MessageViewController title" = "About"; + +/* Decoding image (%.0fx%.0f) ... */ +"DecoderViewController MessageWhileDecodingWithDimensions" = "Decoding image (%.0fx%.0f) ..."; + +/* Please take or choose a picture containing a barcode */ +"DecoderViewController take or choose picture" = "Please take or choose a picture containing a barcode"; + +/* Email %@ */ +"EmailAction action title" = "Email %@"; + +/* Compose */ +"EmailAction alert button title" = "Compose"; + +/* Compose Email to %@? */ +"EmailAction alert message" = "Compose Email to %@?"; + +/* Compose Email */ +"EmailAction alert title" = "Compose Email"; + +/* %@ */ +"EmailParsedResult Display: Body" = "%@"; + +/* To: %@ */ +"EmailParsedResult Display: Recipient" = "To: %@"; + +/* Subject: %@ */ +"EmailParsedResult Display: Subject" = "Subject: %@"; + +/* Email */ +"EmailParsedResult type name" = "Email"; + +/* Geo: %@ */ +"GeoParsedResult display" = "Geo: %@"; + +/* Geolocation */ +"GeoParsedResult type name" = "Geolocation"; + +/* Open URL */ +"OpenURLAction action title" = "Open URL"; + +/* Open */ +"OpenURLAction alert button title" = "Open"; + +/* Open URL <%@>? */ +"OpenURLAction alert message" = "Open URL <%@>?"; + +/* Open URL */ +"OpenURLAction alert title" = "Open URL"; + +/* Cancel */ +"OpenURLAction cancel button title" = "Cancel"; + +/* Scan Archive */ +"ScanArchiveTitle" = "Scan Archive"; + +/* Scan */ +"ScanViewController title" = "Scan"; + +/* Show on Map */ +"ShowMapAction action title" = "Show on Map"; + +/* Show */ +"ShowMapAction alert button title" = "Show"; + +/* Show location %@ on Map ? */ +"ShowMapAction alert message" = "Show location %@ on Map?"; + +/* Show on Map */ +"ShowMapAction alert title" = "Show on Map"; + +/* Compose SMS to %@ */ +"SMSAction action title" = "Compose SMS to %@"; + +/* Compose */ +"SMSAction alert button title" = "Compose"; + +/* Compose SMS to %@? */ +"SMSAction alert message" = "Compose SMS to %@?"; + +/* SMS */ +"SMSParsedResult type name" = "SMS"; + +/* Tel */ +"TelParsedResult type name" = "Tel"; + +/* Text */ +"TextParsedResult type name" = "Text"; + +/* URI */ +"URIParsedResult type name" = "URI"; + diff --git a/iphone/Barcodes/en.lproj/MainWindow.xib b/iphone/Barcodes/en.lproj/MainWindow.xib new file mode 100644 index 000000000..e0a569241 --- /dev/null +++ b/iphone/Barcodes/en.lproj/MainWindow.xib @@ -0,0 +1,171 @@ + + + + 512 + 9C7010 + 658 + 949.26 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + + 1292 + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + + + + YES + + + window + + + + 5 + + + + delegate + + + + 9 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 3 + + + + + -2 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + + + YES + UIApplication + UIResponder + + YES + + YES + + + YES + + + {{229, 113}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ZXingAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 11 + + + + YES + + ZXingAppDelegate + NSObject + + window + UIWindow + + + IBProjectSource + Classes/ZXingAppDelegate.h + + + + + 0 + ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/en.lproj/Message.xib b/iphone/Barcodes/en.lproj/Message.xib new file mode 100644 index 000000000..20ad456af --- /dev/null +++ b/iphone/Barcodes/en.lproj/Message.xib @@ -0,0 +1,349 @@ + + + + 768 + 10D573 + 762 + 1038.29 + 460.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 87 + + + YES + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + {320, 460} + + 3 + MAA + + YES + YES + IBCocoaTouchFramework + YES + + + + + YES + + + view + + + + 6 + + + + + YES + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 4 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 4.IBPluginDependency + + + YES + MessageViewController + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 6 + + + + YES + + MessageViewController + UIViewController + + callbackTarget + id + + + IBProjectSource + Classes/MessageViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSNetServices.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPort.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSStream.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSXMLParser.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + UIWebView + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIWebView.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + ../ZXing.xcodeproj + 3 + 87 + + diff --git a/iphone/Barcodes/images/ZxingLarge.png b/iphone/Barcodes/images/ZxingLarge.png new file mode 100644 index 000000000..688a5a3ef Binary files /dev/null and b/iphone/Barcodes/images/ZxingLarge.png differ diff --git a/iphone/Barcodes/images/icon.png b/iphone/Barcodes/images/icon.png new file mode 100644 index 000000000..4ca7bf6ac Binary files /dev/null and b/iphone/Barcodes/images/icon.png differ diff --git a/iphone/Barcodes/images/icon@2x.png b/iphone/Barcodes/images/icon@2x.png new file mode 100644 index 000000000..82fad7b25 Binary files /dev/null and b/iphone/Barcodes/images/icon@2x.png differ diff --git a/iphone/Barcodes/images/zxing-512.tiff b/iphone/Barcodes/images/zxing-512.tiff new file mode 100644 index 000000000..a7a6159de Binary files /dev/null and b/iphone/Barcodes/images/zxing-512.tiff differ diff --git a/iphone/Barcodes/main.mm b/iphone/Barcodes/main.mm new file mode 100644 index 000000000..128f50878 --- /dev/null +++ b/iphone/Barcodes/main.mm @@ -0,0 +1,17 @@ +// +// main.mm +// Barcodes +// +// Created by Romain Pechayre on 11/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import + +int main(int argc, char *argv[]) { + + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, nil); + [pool release]; + return retVal; +} diff --git a/iphone/Barcodes/sv.lproj/About.html b/iphone/Barcodes/sv.lproj/About.html new file mode 100644 index 000000000..c8031099c --- /dev/null +++ b/iphone/Barcodes/sv.lproj/About.html @@ -0,0 +1,23 @@ + + +Om Streckkoder + + + + + +

+ZXing Project Logo

+

Streckkoder

+

Version 1.1

+

© 2008-2010 The ZXing +Authors
+

+

+Stödda streckkods-format: +

+

+QR Code
+

+ \ No newline at end of file diff --git a/iphone/Barcodes/sv.lproj/DecoderView.xib b/iphone/Barcodes/sv.lproj/DecoderView.xib new file mode 100644 index 000000000..6acc4ea56 --- /dev/null +++ b/iphone/Barcodes/sv.lproj/DecoderView.xib @@ -0,0 +1,450 @@ + + + + 512 + 9E17 + 670 + 949.33 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + 274 + + YES + + + 266 + {{0, 431}, {320, 49}} + + NO + NO + + YES + + 15 + + + + 1 + 5 + + + + 1 + + NSImage + filmroll-2.png + + + + + 5 + + + + 2 + + NSImage + photolib.png + + + + + 1 + 5 + + + + 16 + 10 + + + + 1 + 5 + + + + 17 + 9 + + + + + + + 274 + {320, 431} + + + 1 + MCAwIDAAA + + NO + 3 + + + {320, 480} + + + 3 + + + + + YES + + + view + + + + 9 + + + + actionBarItem + + + + 51 + + + + performResultAction: + + + + 53 + + + + toolbar + + + + 57 + + + + pickAndDecode: + + + + 60 + + + + pickAndDecode: + + + + 61 + + + + pickAndDecode: + + + + 62 + + + + cameraBarItem + + + + 63 + + + + savedPhotosBarItem + + + + 64 + + + + libraryBarItem + + + + 65 + + + + archiveBarItem + + + + 66 + + + + showArchive: + + + + 67 + + + + imageView + + + + 71 + + + + + YES + + 0 + + YES + + + + + + 1 + + + YES + + + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + -2 + + + + + 34 + + + YES + + + + + + + + + + + + + + 35 + + + + + 36 + + + + + 37 + + + + + 38 + + + + + 54 + + + + + 55 + + + + + 56 + + + + + 58 + + + + + 59 + + + + + 70 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 34.IBPluginDependency + 35.IBPluginDependency + 36.IBPluginDependency + 37.IBPluginDependency + 38.IBPluginDependency + 54.IBPluginDependency + 55.IBPluginDependency + 56.IBPluginDependency + 58.IBPluginDependency + 59.IBPluginDependency + 70.CustomClassName + 70.IBPluginDependency + + + YES + DecoderViewController + UIResponder + {{387, 352}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ScannedImageView + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 71 + + + + YES + + DecoderViewController + UIViewController + + YES + + YES + performResultAction: + pickAndDecode: + showArchive: + + + YES + id + id + id + + + + YES + + YES + actionBarItem + archiveBarItem + cameraBarItem + imageView + libraryBarItem + messageHelpButton + messageTextView + messageView + savedPhotosBarItem + toolbar + + + YES + UIBarItem + UIBarItem + UIBarItem + ScannedImageView + UIBarItem + UIButton + UITextView + UIView + UIBarItem + UIToolbar + + + + IBProjectSource + Classes/DecoderViewController.h + + + + ScannedImageView + UIView + + IBProjectSource + Classes/ScannedImageView.h + + + + + 0 + ../ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/sv.lproj/Hints.html b/iphone/Barcodes/sv.lproj/Hints.html new file mode 100644 index 000000000..ae70c0919 --- /dev/null +++ b/iphone/Barcodes/sv.lproj/Hints.html @@ -0,0 +1,14 @@ + + +Barcode Hints + + + + +

iPhone-kamera har ett fixt fokus-djup, vilket fungerar väl i många +sammanhang men inte är idealiskt för att känna igen streckkoder. Allt +som är för nära kameran kommer att se suddigt ut och vara svårt att +avkoda. För bästa resultat:

  • Ta fotot av streckkoden från minst ca 60 cm
  • I steget Flytta och skalanpassa, centrera streckkoden i bilden och skala upp den till att nästan fylla skärmen
Detta +ger avkodaren en stor, skarp bild med nästan bara streckkoden själv att +tolka, vilket gör avkodarens arbete så lätt som möjligt. \ No newline at end of file diff --git a/iphone/Barcodes/sv.lproj/InfoPlist.strings b/iphone/Barcodes/sv.lproj/InfoPlist.strings new file mode 100644 index 000000000..a53bf351e --- /dev/null +++ b/iphone/Barcodes/sv.lproj/InfoPlist.strings @@ -0,0 +1 @@ +CFBundleDisplayName = "Streckkoder"; \ No newline at end of file diff --git a/iphone/Barcodes/sv.lproj/Localizable.strings b/iphone/Barcodes/sv.lproj/Localizable.strings new file mode 100644 index 000000000..d9cccd018 --- /dev/null +++ b/iphone/Barcodes/sv.lproj/Localizable.strings @@ -0,0 +1,141 @@ +/* Add Contact? */ +"AddContactAction alert message" = "Lägg till kontakt?"; + +/* Cancel */ +"AddContactAction cancel button title" = "Avbryt"; + +/* Add Contact */ +"AddContactAction confirm button title" = "Lägg till kontakt"; + +/* Add Contact */ +"AddContactAction title" = "Lägg till kontakt"; + +/* Call %@ */ +"CallAction action title" = "Ring %@"; + +/* Call */ +"CallAction alert button title" = "Ring"; + +/* Call %@? */ +"CallAction alert message" = "Ring %@?"; + +/* Call */ +"CallAction alert title" = "Ring"; + +/* Compose */ +"SMSAction alert title" = "Skriv"; + +/* Contact */ +"Contact Result Type Name" = "Kontakt"; + +/* No barcode detected. */ +"Decoder BarcodeDetectionFailure" = "Ingen streckkod hittades."; + +/* Decoding ... */ +"Decoder MessageWhileDecoding" = "Avkodar ..."; + +/* ZXing */ +"DecoderViewController AppTitle" = "Streckkoder"; + +/* Cancel */ +"DecoderViewController cancel button title" = "Avbryt"; + +/* About */ +"DecoderViewController about button title" = "Info"; + +/* Hints */ +"DecoderViewController Hints MessageViewController title" = "Tips"; + +/* About */ +"DecoderViewController About MessageViewController title" = "Info"; + +/* Decoding image (%.0fx%.0f) ... */ +"DecoderViewController MessageWhileDecodingWithDimensions" = "Avkodar bild (%.0fx%.0f) ..."; + +/* Please take or choose a picture containing a barcode */ +"DecoderViewController take or choose picture" = "Tag eller välj en bild som innehåller en streckkod"; + +/* Email %@ */ +"EmailAction action title" = "Mejla %@"; + +/* Compose */ +"EmailAction alert button title" = "Skriv"; + +/* Compose Email to %@? */ +"EmailAction alert message" = "Skriv mejl till %@?"; + +/* Compose Email */ +"EmailAction alert title" = "Skriv mejl"; + +/* %@ */ +"EmailParsedResult Display: Body" = "%@"; + +/* To: %@ */ +"EmailParsedResult Display: Recipient" = "Till: %@"; + +/* Subject: %@ */ +"EmailParsedResult Display: Subject" = "Angående: %@"; + +/* Email */ +"EmailParsedResult type name" = "Mejl"; + +/* Geo: %@ */ +"GeoParsedResult display" = "Plats: %@"; + +/* Geolocation */ +"GeoParsedResult type name" = "Geografisk plats"; + +/* Open URL */ +"OpenURLAction action title" = "Öppna länk"; + +/* Open */ +"OpenURLAction alert button title" = "Öppna"; + +/* Open URL <%@>? */ +"OpenURLAction alert message" = "Öppna länk <%@>?"; + +/* Open URL */ +"OpenURLAction alert title" = "Öppna länk"; + +/* Cancel */ +"OpenURLAction cancel button title" = "Avbryt"; + +/* Scan Archive */ +"ScanArchiveTitle" = "Tidigare Streckkoder"; + +/* Scan */ +"ScanViewController title" = "Streckkod"; + +/* Show on Map */ +"ShowMapAction action title" = "Visa på karta"; + +/* Show */ +"ShowMapAction alert button title" = "Visa"; + +/* Show location %@ on Map ? */ +"ShowMapAction alert message" = "Visa plats %@ på karta?"; + +/* Show on Map */ +"ShowMapAction alert title" = "Visa på karta"; + +/* Compose SMS to %@ */ +"SMSAction action title" = "Skriv SMS till %@"; + +/* Compose */ +"SMSAction alert button title" = "Skriv"; + +/* Compose SMS to %@? */ +"SMSAction alert message" = "Skriv SMS till %@?"; + +/* SMS */ +"SMSParsedResult type name" = "SMS"; + +/* Tel */ +"TelParsedResult type name" = "Telefon"; + +/* Text */ +"TextParsedResult type name" = "Text"; + +/* URI */ +"URIParsedResult type name" = "Länk"; + diff --git a/iphone/Barcodes/sv.lproj/MainWindow.xib b/iphone/Barcodes/sv.lproj/MainWindow.xib new file mode 100644 index 000000000..e0a569241 --- /dev/null +++ b/iphone/Barcodes/sv.lproj/MainWindow.xib @@ -0,0 +1,171 @@ + + + + 512 + 9C7010 + 658 + 949.26 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + + 1292 + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + + + + YES + + + window + + + + 5 + + + + delegate + + + + 9 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 3 + + + + + -2 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + + + YES + UIApplication + UIResponder + + YES + + YES + + + YES + + + {{229, 113}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ZXingAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 11 + + + + YES + + ZXingAppDelegate + NSObject + + window + UIWindow + + + IBProjectSource + Classes/ZXingAppDelegate.h + + + + + 0 + ZXing.xcodeproj + 3 + + diff --git a/iphone/Barcodes/sv.lproj/Message.xib b/iphone/Barcodes/sv.lproj/Message.xib new file mode 100644 index 000000000..d85b217ee --- /dev/null +++ b/iphone/Barcodes/sv.lproj/Message.xib @@ -0,0 +1,349 @@ + + + + 768 + 10D573 + 762 + 1038.29 + 460.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 87 + + + YES + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + {320, 460} + + 3 + MAA + + YES + YES + IBCocoaTouchFramework + YES + + + + + YES + + + view + + + + 5 + + + + + YES + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 4 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 4.IBPluginDependency + + + YES + MessageViewController + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 5 + + + + YES + + MessageViewController + UIViewController + + callbackTarget + id + + + IBProjectSource + Classes/MessageViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSNetServices.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPort.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSStream.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSXMLParser.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + UIWebView + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIWebView.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + ../ZXing.xcodeproj + 3 + 87 + +