Added 'About' screen, localized application name

git-svn-id: https://zxing.googlecode.com/svn/trunk@561 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
christian.brunschen 2008-08-14 11:00:48 +00:00
parent 970382f1e0
commit a63fb3b9a6
20 changed files with 601 additions and 57 deletions

View file

@ -8,7 +8,7 @@ version=1.0
# Uncomment or set appropriately:
#WTK-home=C:\\WTK2.5.2
#WTK-home=/usr/local/WTK2.5.2
WTK-home=/usr/local/WTK2.5.2
# Set this to the location where you have installed RIM's BlackBerry JDE in order to
# create the 'rim' client. There is no Mac or Linux version, but, these platforms can still

View file

@ -269,8 +269,8 @@ namespace qrcode {
// difference in the x / y coordinates of the two centers.
// This is the case where you find top left first. Draw it out.
hasSkipped_ = true;
return (int) abs(abs(firstConfirmedCenter->getX() - center->getX()) -
abs(firstConfirmedCenter->getY() - center->getY()));
return (int) (abs(firstConfirmedCenter->getX() - center->getX()) -
abs(firstConfirmedCenter->getY() - center->getY()));
}
}
}

View file

@ -28,7 +28,7 @@
#import "Database.h"
#import "ArchiveController.h"
#import "HintsViewController.h"
#import "MessageViewController.h"
#import "Scan.h"
#import "TwoDDecoderResult.h"
@ -55,7 +55,7 @@
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
self.title = NSLocalizedString(@"DecoderViewController AppTitle", @"Barcode Scanner ");
self.title = NSLocalizedString(@"DecoderViewController AppTitle", @"Barcode Scanner");
Decoder *d = [[Decoder alloc] init];
self.decoder = d;
@ -66,26 +66,42 @@
return self;
}
- (void) hintsReady:(id)sender {
HintsViewController *hintsController = sender;
[[self navigationController] pushViewController:hintsController animated:true];
[hintsController release];
- (void) messageReady:(id)sender {
MessageViewController *messageController = sender;
[[self navigationController] pushViewController:messageController animated:true];
[messageController release];
}
- (void) hintsFailed:(id)sender {
HintsViewController *hintsController = sender;
NSLog(@"Failed to load hints!");
[hintsController release];
- (void) messageFailed:(id)sender {
MessageViewController *messageController = sender;
NSLog(@"Failed to load message!");
[messageController release];
}
- (void) showHints:(id)sender {
NSLog(@"Showing Hints!");
HintsViewController *hintsController = [[HintsViewController alloc] initWithTarget:self onSuccess:@selector(hintsReady:) onFailure:@selector(hintsFailed:)];
hintsController.title = NSLocalizedString(@"DecoderViewController HintsViewController title", @"Hints");
MessageViewController *hintsController =
[[MessageViewController alloc] initWithMessageFilename:@"Hints"
target:self
onSuccess:@selector(messageReady:)
onFailure:@selector(messageFailed:)];
hintsController.title = NSLocalizedString(@"DecoderViewController Hints MessageViewController title", @"Hints");
hintsController.view;
}
- (void) showAbout:(id)sender {
NSLog(@"Showing About!");
MessageViewController *aboutController =
[[MessageViewController alloc] initWithMessageFilename:@"About"
target:self
onSuccess:@selector(messageReady:)
onFailure:@selector(messageFailed:)];
aboutController.title = NSLocalizedString(@"DecoderViewController About MessageViewController title", @"About");
aboutController.view;
}
#define HELP_BUTTON_WIDTH (44.0)
#define HELP_BUTTON_HEIGHT (55.0)
@ -143,6 +159,15 @@
[self.view addSubview:self.messageView];
// add the 'About' button at the top-right of the navigation bar
UIBarButtonItem *aboutButton =
[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DecoderViewController about button title", @"About")
style:UIBarButtonItemStyleBordered
target:self
action:@selector(showAbout:)];
self.navigationItem.rightBarButtonItem = aboutButton;
[aboutButton release];
[self reset];
}

View file

@ -1,5 +1,5 @@
//
// HintsViewController.h
// MessageViewController.h
// ZXing
//
// Created by Christian Brunschen on 30/07/2008.
@ -21,7 +21,7 @@
#import <UIKit/UIKit.h>
@interface HintsViewController : UIViewController <UIWebViewDelegate> {
@interface MessageViewController : UIViewController <UIWebViewDelegate> {
id callbackTarget;
SEL callbackSelectorSuccess;
SEL callbackSelectorFailure;
@ -40,6 +40,6 @@
@property (nonatomic, retain) NSURL *contentURL;
@property (nonatomic, copy) NSString *content;
- (id)initWithTarget:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs;
- (id)initWithMessageFilename:(NSString *)filename target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs;
@end

View file

@ -1,5 +1,5 @@
//
// HintsViewController.m
// MessageViewController.m
// ZXing
//
// Created by Christian Brunschen on 30/07/2008.
@ -19,10 +19,10 @@
* limitations under the License.
*/
#import "HintsViewController.h"
#import "MessageViewController.h"
@implementation HintsViewController
@implementation MessageViewController
@synthesize callbackTarget;
@synthesize callbackSelectorSuccess;
@ -35,14 +35,18 @@
return (UIWebView *)self.view;
}
- (id)initWithTarget:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs {
if (self = [super initWithNibName:@"Hints" bundle:nil]) {
- (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.contentPath = [[NSBundle mainBundle] pathForResource:@"Hints" ofType:@"html"];
self.contentPath = [[NSBundle mainBundle] pathForResource:filename
ofType:@"html"];
self.contentURL = [NSURL fileURLWithPath:self.contentPath];
self.content = [NSString stringWithContentsOfFile:self.contentPath];
self.content = [NSString stringWithContentsOfFile:self.contentPath
encoding:NSUTF8StringEncoding
error:NULL];
}
return self;
}
@ -73,9 +77,27 @@
[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];

View file

@ -86,6 +86,8 @@
852A998F0E0BC433003E6D6D /* DecoderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 852A998E0E0BC433003E6D6D /* DecoderView.xib */; };
852A99910E0BC43C003E6D6D /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 852A99900E0BC43C003E6D6D /* MainWindow.xib */; };
852A99970E0BC49E003E6D6D /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 852A99960E0BC49E003E6D6D /* Localizable.strings */; };
853678530E538F9E0054126A /* MessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 853678520E538F9E0054126A /* MessageViewController.m */; };
853678830E5394D70054126A /* About.html in Resources */ = {isa = PBXBuildFile; fileRef = 853678820E5394D70054126A /* About.html */; };
854BE3010E06A56C00CB4A20 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 854BE3000E06A56C00CB4A20 /* AddressBookUI.framework */; };
855A66800DF5E757007B394F /* ArchiveController.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66510DF5E757007B394F /* ArchiveController.m */; };
855A66810DF5E757007B394F /* Database.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66540DF5E757007B394F /* Database.m */; };
@ -192,8 +194,7 @@
85C0BC100E12548D005EED58 /* SMSTOResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC0F0E12548D005EED58 /* SMSTOResultParser.m */; };
85C0BC140E1254C0005EED58 /* SMSParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC130E1254C0005EED58 /* SMSParsedResult.m */; };
85C0BC1C0E125842005EED58 /* SMSResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC1B0E125842005EED58 /* SMSResultParser.m */; };
85C37A3B0E406BD70052209B /* HintsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C37A3A0E406BD70052209B /* HintsViewController.m */; };
85C37A410E4076BB0052209B /* Hints.xib in Resources */ = {isa = PBXBuildFile; fileRef = 85C37A3F0E4076BB0052209B /* Hints.xib */; };
85C37A410E4076BB0052209B /* Message.xib in Resources */ = {isa = PBXBuildFile; fileRef = 85C37A3F0E4076BB0052209B /* Message.xib */; };
85C3CC350E119E1700A01C6A /* business-card.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2D0E119E1600A01C6A /* business-card.png */; };
85C3CC360E119E1700A01C6A /* email.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2E0E119E1700A01C6A /* email.png */; };
85C3CC370E119E1700A01C6A /* link1.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2F0E119E1700A01C6A /* link1.png */; };
@ -205,6 +206,7 @@
85C4969C0E4A3E87003DB029 /* filmroll-2.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C4969B0E4A3E87003DB029 /* filmroll-2.png */; };
85D937270E11064700B785E0 /* ScanViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 85D937260E11064700B785E0 /* ScanViewController.m */; };
85E883980E1A34D2004C4547 /* ScannedImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 85E883970E1A34D2004C4547 /* ScannedImageView.m */; };
85F895030E543EE100C0A666 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 85F895020E543EE100C0A666 /* InfoPlist.strings */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -296,6 +298,13 @@
852A99D00E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/DecoderView.xib; sourceTree = "<group>"; };
852A99D10E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = "<group>"; };
852A99D20E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/MainWindow.xib; sourceTree = "<group>"; };
853678510E538F9E0054126A /* MessageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageViewController.h; sourceTree = "<group>"; };
853678520E538F9E0054126A /* MessageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MessageViewController.m; sourceTree = "<group>"; };
853678840E5394E40054126A /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = en; path = en.lproj/About.html; sourceTree = "<group>"; };
853678850E5394E70054126A /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/About.html; sourceTree = "<group>"; };
853678860E5394EA0054126A /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = sv; path = sv.lproj/About.html; sourceTree = "<group>"; };
8539502B0E5442AA00D081D6 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = "<group>"; };
8539502C0E5442B500D081D6 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = "<group>"; };
854BE3000E06A56C00CB4A20 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
855A65D70DF5E739007B394F /* BarcodeFormat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BarcodeFormat.cpp; sourceTree = "<group>"; };
855A65D80DF5E739007B394F /* BarcodeFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BarcodeFormat.h; sourceTree = "<group>"; };
@ -622,9 +631,7 @@
85C0BC130E1254C0005EED58 /* SMSParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSParsedResult.m; sourceTree = "<group>"; };
85C0BC1A0E125842005EED58 /* SMSResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMSResultParser.h; sourceTree = "<group>"; };
85C0BC1B0E125842005EED58 /* SMSResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSResultParser.m; sourceTree = "<group>"; };
85C37A390E406BD70052209B /* HintsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HintsViewController.h; sourceTree = "<group>"; };
85C37A3A0E406BD70052209B /* HintsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HintsViewController.m; sourceTree = "<group>"; };
85C37A400E4076BB0052209B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Hints.xib; sourceTree = "<group>"; };
85C37A400E4076BB0052209B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Message.xib; sourceTree = "<group>"; };
85C3CC2D0E119E1600A01C6A /* business-card.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "business-card.png"; sourceTree = "<group>"; };
85C3CC2E0E119E1700A01C6A /* email.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = email.png; sourceTree = "<group>"; };
85C3CC2F0E119E1700A01C6A /* link1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = link1.png; sourceTree = "<group>"; };
@ -638,10 +645,11 @@
85D937260E11064700B785E0 /* ScanViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScanViewController.m; sourceTree = "<group>"; };
85E883960E1A34D2004C4547 /* ScannedImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScannedImageView.h; sourceTree = "<group>"; };
85E883970E1A34D2004C4547 /* ScannedImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScannedImageView.m; sourceTree = "<group>"; };
85F7D20E0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/Hints.xib; sourceTree = "<group>"; };
85F7D20F0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.html; name = de; path = de.lproj/Hints.html; sourceTree = "<group>"; };
85F7D2100E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/Hints.xib; sourceTree = "<group>"; };
85F7D2110E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.html; name = sv; path = sv.lproj/Hints.html; sourceTree = "<group>"; };
85F7D20E0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/Message.xib; sourceTree = "<group>"; };
85F7D20F0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/Hints.html; sourceTree = "<group>"; };
85F7D2100E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/Message.xib; sourceTree = "<group>"; };
85F7D2110E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = sv; path = sv.lproj/Hints.html; sourceTree = "<group>"; };
85F895040E543F0400C0A666 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
@ -716,8 +724,8 @@
855A667F0DF5E757007B394F /* Scan.m */,
85E883960E1A34D2004C4547 /* ScannedImageView.h */,
85E883970E1A34D2004C4547 /* ScannedImageView.m */,
85C37A390E406BD70052209B /* HintsViewController.h */,
85C37A3A0E406BD70052209B /* HintsViewController.m */,
853678510E538F9E0054126A /* MessageViewController.h */,
853678520E538F9E0054126A /* MessageViewController.m */,
);
path = Classes;
sourceTree = "<group>";
@ -759,7 +767,7 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
85C37A3F0E4076BB0052209B /* Hints.xib */,
85C37A3F0E4076BB0052209B /* Message.xib */,
85764F680E3E22FC00A61BF5 /* Hints.html */,
85B1D8840E190E3A00514A6A /* Default.png */,
85C3CC0F0E119E0500A01C6A /* Images */,
@ -769,6 +777,8 @@
852A998E0E0BC433003E6D6D /* DecoderView.xib */,
852A99900E0BC43C003E6D6D /* MainWindow.xib */,
8D1107310486CEB800E47090 /* Info.plist */,
853678820E5394D70054126A /* About.html */,
85F895020E543EE100C0A666 /* InfoPlist.strings */,
);
name = Resources;
sourceTree = "<group>";
@ -1393,9 +1403,9 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
1D6058900D05DD3D006BFB54 /* Scanner */ = {
1D6058900D05DD3D006BFB54 /* Barcodes */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Scanner" */;
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */;
buildPhases = (
1D60588D0D05DD3D006BFB54 /* Resources */,
1D60588E0D05DD3D006BFB54 /* Sources */,
@ -1407,7 +1417,7 @@
dependencies = (
8514EB180DF8A50900EE78D3 /* PBXTargetDependency */,
);
name = Scanner;
name = Barcodes;
productName = ZXing;
productReference = 1D6058910D05DD3D006BFB54 /* Barcodes.app */;
productType = "com.apple.product-type.application";
@ -1486,7 +1496,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
1D6058900D05DD3D006BFB54 /* Scanner */,
1D6058900D05DD3D006BFB54 /* Barcodes */,
8514EAE70DF88E5200EE78D3 /* zxingcore */,
856C25780E1BC767006ABF00 /* Build All */,
856C257D0E1BC779006ABF00 /* Test All */,
@ -1516,8 +1526,10 @@
85C3CC3C0E119E1700A01C6A /* text.png in Resources */,
85B1D8850E190E3A00514A6A /* Default.png in Resources */,
85764F6A0E3E22FC00A61BF5 /* Hints.html in Resources */,
85C37A410E4076BB0052209B /* Hints.xib in Resources */,
85C37A410E4076BB0052209B /* Message.xib in Resources */,
85C4969C0E4A3E87003DB029 /* filmroll-2.png in Resources */,
853678830E5394D70054126A /* About.html in Resources */,
85F895030E543EE100C0A666 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -1585,7 +1597,7 @@
85B1D7EF0E18EB6800514A6A /* ScanCell.m in Sources */,
85E883980E1A34D2004C4547 /* ScannedImageView.m in Sources */,
85764F2E0E3DE75700A61BF5 /* PlainEmailResultParser.m in Sources */,
85C37A3B0E406BD70052209B /* HintsViewController.m in Sources */,
853678530E538F9E0054126A /* MessageViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -1724,7 +1736,7 @@
};
856C257C0E1BC76C006ABF00 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1D6058900D05DD3D006BFB54 /* Scanner */;
target = 1D6058900D05DD3D006BFB54 /* Barcodes */;
targetProxy = 856C257B0E1BC76C006ABF00 /* PBXContainerItemProxy */;
};
856EABB10E1CE97800B2E1C7 /* PBXTargetDependency */ = {
@ -1775,6 +1787,16 @@
name = Localizable.strings;
sourceTree = "<group>";
};
853678820E5394D70054126A /* About.html */ = {
isa = PBXVariantGroup;
children = (
853678840E5394E40054126A /* en */,
853678850E5394E70054126A /* de */,
853678860E5394EA0054126A /* sv */,
);
name = About.html;
sourceTree = "<group>";
};
85764F680E3E22FC00A61BF5 /* Hints.html */ = {
isa = PBXVariantGroup;
children = (
@ -1785,14 +1807,24 @@
name = Hints.html;
sourceTree = "<group>";
};
85C37A3F0E4076BB0052209B /* Hints.xib */ = {
85C37A3F0E4076BB0052209B /* Message.xib */ = {
isa = PBXVariantGroup;
children = (
85C37A400E4076BB0052209B /* en */,
85F7D20E0E41D4A700FDC34E /* de */,
85F7D2100E41D4B300FDC34E /* sv */,
);
name = Hints.xib;
name = Message.xib;
sourceTree = "<group>";
};
85F895020E543EE100C0A666 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
85F895040E543F0400C0A666 /* en */,
8539502B0E5442AA00D081D6 /* de */,
8539502C0E5442B500D081D6 /* sv */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
@ -1821,7 +1853,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = ZXing_Prefix.pch;
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = ZXing;
PRODUCT_NAME = Barcodes;
};
name = Release;
};
@ -1846,7 +1878,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
PREBINDING = NO;
PRODUCT_NAME = libzxing;
PRODUCT_NAME = zxingcore;
ZERO_LINK = NO;
};
name = Release;
@ -1986,7 +2018,7 @@
GCC_PREFIX_HEADER = ZXing_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = ZXing;
PRODUCT_NAME = Barcodes;
};
name = Test;
};
@ -2088,7 +2120,7 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Scanner" */ = {
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1D6058940D05DD3E006BFB54 /* Debug */,

View file

@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Info zu Strichcodes</title>
<style type="text/css">
</style>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
</head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
<p style="font-weight: bold;">Strichcodes</p>
<p>&copy; 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
</body></html>

Binary file not shown.

View file

@ -0,0 +1 @@
CFBundleDisplayName = "Strichcodes";

View file

@ -29,25 +29,31 @@
"Contact Result Type Name" = "Kontakt";
/* No barcode detected. */
"Decoder BarcodeDetectionFailure" = "Kein Strichkod gefunden.";
"Decoder BarcodeDetectionFailure" = "Kein Strichcode gefunden.";
/* Decoding ... */
"Decoder MessageWhileDecoding" = "Dekodiert ...";
/* ZXing */
"DecoderViewController AppTitle" = "Barcodes";
"DecoderViewController AppTitle" = "Strichcodes";
/* Cancel */
"DecoderViewController cancel button title" = "Abbrechen";
/* About */
"DecoderViewController about button title" = "Info";
/* Hints */
"DecoderViewController HintsViewController title" = "Tips";
"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 Strichkod";
"DecoderViewController take or choose picture" = "Bitte nehmen oder wählen Sie ein Bild mit Strichcode";
/* Email %@ */
"EmailAction action title" = "Email an %@";

132
iphone/de.lproj/Message.xib Normal file
View file

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02">
<data>
<int key="IBDocument.SystemTarget">512</int>
<string key="IBDocument.SystemVersion">9E17</string>
<string key="IBDocument.InterfaceBuilderVersion">670</string>
<string key="IBDocument.AppKitVersion">949.33</string>
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
</object>
<object class="IBProxyObject" id="711762367">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
</object>
<object class="IBUIWebView" id="221386056">
<nil key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{320, 460}</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<bool key="IBUIScalesPageToFit">YES</bool>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="221386056"/>
</object>
<int key="connectionID">5</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<object class="NSArray" key="object" id="360949347">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="360949347"/>
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="711762367"/>
<reference key="parent" ref="360949347"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="221386056"/>
<reference key="parent" ref="360949347"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>4.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>HintsViewController</string>
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="activeLocalization"/>
<object class="NSMutableDictionary" key="localizations">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">5</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">HintsViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">Classes/HintsViewController.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
<nil key="IBDocument.LastKnownRelativeProjectPath"/>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
</data>
</archive>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>About Barcodes</title>
<style type="text/css">
</style>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
</head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
<p style="font-weight: bold;">Barcodes</p>
<p>&copy; 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
</body></html>

View file

@ -0,0 +1 @@
CFBundleDisplayName = "Barcodes";

View file

@ -40,8 +40,14 @@
/* Cancel */
"DecoderViewController cancel button title" = "Cancel";
/* About */
"DecoderViewController about button title" = "About";
/* Hints */
"DecoderViewController HintsViewController title" = "Hints";
"DecoderViewController Hints MessageViewController title" = "Hints";
/* About */
"DecoderViewController About MessageViewController title" = "About";
/* Decoding image (%.0fx%.0f) ... */
"DecoderViewController MessageWhileDecodingWithDimensions" = "Decoding image (%.0fx%.0f) ...";

132
iphone/en.lproj/Message.xib Normal file
View file

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02">
<data>
<int key="IBDocument.SystemTarget">512</int>
<string key="IBDocument.SystemVersion">9E17</string>
<string key="IBDocument.InterfaceBuilderVersion">670</string>
<string key="IBDocument.AppKitVersion">949.33</string>
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
</object>
<object class="IBProxyObject" id="711762367">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
</object>
<object class="IBUIWebView" id="221386056">
<nil key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{320, 460}</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<bool key="IBUIScalesPageToFit">YES</bool>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="221386056"/>
</object>
<int key="connectionID">5</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<object class="NSArray" key="object" id="360949347">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="360949347"/>
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="711762367"/>
<reference key="parent" ref="360949347"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="221386056"/>
<reference key="parent" ref="360949347"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>4.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>HintsViewController</string>
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="activeLocalization"/>
<object class="NSMutableDictionary" key="localizations">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">5</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">HintsViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">Classes/HintsViewController.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
<nil key="IBDocument.LastKnownRelativeProjectPath"/>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
</data>
</archive>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Om Streckkoder</title>
<style type="text/css">
</style>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
</head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
<p style="font-weight: bold;">Streckkoder</p>
<p>&copy; 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
</body></html>

Binary file not shown.

View file

@ -0,0 +1 @@
CFBundleDisplayName = "Streckkoder";

View file

@ -35,13 +35,19 @@
"Decoder MessageWhileDecoding" = "Avkodar ...";
/* ZXing */
"DecoderViewController AppTitle" = "Barcodes";
"DecoderViewController AppTitle" = "Streckkoder";
/* Cancel */
"DecoderViewController cancel button title" = "Avbryt";
/* About */
"DecoderViewController about button title" = "Info";
/* Hints */
"DecoderViewController HintsViewController title" = "Tips";
"DecoderViewController Hints MessageViewController title" = "Tips";
/* About */
"DecoderViewController About MessageViewController title" = "Info";
/* Decoding image (%.0fx%.0f) ... */
"DecoderViewController MessageWhileDecodingWithDimensions" = "Avkodar bild (%.0fx%.0f) ...";

132
iphone/sv.lproj/Message.xib Normal file
View file

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02">
<data>
<int key="IBDocument.SystemTarget">512</int>
<string key="IBDocument.SystemVersion">9E17</string>
<string key="IBDocument.InterfaceBuilderVersion">670</string>
<string key="IBDocument.AppKitVersion">949.33</string>
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
</object>
<object class="IBProxyObject" id="711762367">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
</object>
<object class="IBUIWebView" id="221386056">
<nil key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{320, 460}</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<bool key="IBUIScalesPageToFit">YES</bool>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="221386056"/>
</object>
<int key="connectionID">5</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<object class="NSArray" key="object" id="360949347">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="360949347"/>
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="711762367"/>
<reference key="parent" ref="360949347"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="221386056"/>
<reference key="parent" ref="360949347"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>4.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>HintsViewController</string>
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="activeLocalization"/>
<object class="NSMutableDictionary" key="localizations">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">5</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">HintsViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">Classes/HintsViewController.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
<nil key="IBDocument.LastKnownRelativeProjectPath"/>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
</data>
</archive>