# HG changeset patch # User koda # Date 1262913171 0 # Node ID 0ba746be5d598e9e279c8fe72f8c4abb9385766c # Parent 04c086d8d9d46e04a0cee40b2c7a8fbb42b05d8e frontend images by Tiy, first setup of frontend diff -r 04c086d8d9d4 -r 0ba746be5d59 cocoaTouch/MainMenuViewController.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cocoaTouch/MainMenuViewController.h Fri Jan 08 01:12:51 2010 +0000 @@ -0,0 +1,25 @@ +// +// MainMenuViewController.h +// hwengine +// +// Created by Vittorio on 08/01/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import + + +@interface MainMenuViewController : UIViewController { + UIButton *passandplayButton; + UIButton *netplayButton; + UIButton *storeButton; + UILabel *versionLabel; +} + +@property (nonatomic, retain) IBOutlet UIButton *passandplayButton; +@property (nonatomic, retain) IBOutlet UIButton *netplayButton; +@property (nonatomic, retain) IBOutlet UIButton *storeButton; +@property (nonatomic, retain) IBOutlet UILabel *versionLabel; + +-(IBAction) startPlaying; +@end diff -r 04c086d8d9d4 -r 0ba746be5d59 cocoaTouch/MainMenuViewController.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cocoaTouch/MainMenuViewController.m Fri Jan 08 01:12:51 2010 +0000 @@ -0,0 +1,69 @@ +// +// MainMenuViewController.m +// hwengine +// +// Created by Vittorio on 08/01/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import "MainMenuViewController.h" +#import "SDL_uikitappdelegate.h" + +@implementation MainMenuViewController + +@synthesize passandplayButton, netplayButton, storeButton, versionLabel; + +/* + // 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 { + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + // Custom initialization + } + return self; +} +*/ + + +// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. +- (void)viewDidLoad { + self.versionLabel = @"Hedgewar version 0.9.13-dev"; + [super viewDidLoad]; +} + + +/* +// Override to allow orientations other than the default portrait orientation. +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + // Return YES for supported orientations + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} +*/ + +- (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 { + // Release any retained subviews of the main view. + // e.g. self.myOutlet = nil; + self.passandplayButton = nil; + self.netplayButton = nil; + self.storeButton = nil; + self.versionLabel = nil; +} + +- (void)dealloc { + [passandplayButton release]; + [netplayButton release]; + [storeButton release]; + [versionLabel release]; + [super dealloc]; +} + +-(IBAction) startPlaying { + [[SDLUIKitDelegate sharedAppDelegate] startSDLgame]; +} +@end diff -r 04c086d8d9d4 -r 0ba746be5d59 cocoaTouch/MainMenuViewController.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cocoaTouch/MainMenuViewController.xib Fri Jan 08 01:12:51 2010 +0000 @@ -0,0 +1,594 @@ + + + + 784 + 10C540 + 740 + 1038.25 + 458.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 62 + + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + 292 + + YES + + + 274 + {320, 431} + + + 3 + MCAwAA + + NO + 4 + NO + + NSImage + Background.png + + + + + 292 + {{44, 131}, {232, 61}} + + + 1 + MCAwIDAgMAA + + NO + NO + 0 + 0 + + Helvetica-Bold + 15 + 16 + + + 3 + MQA + + + 1 + MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA + + + 3 + MC41AA + + + NSImage + Button_play.png + + + + + 292 + {{20, 215}, {232, 61}} + + + 1 + MCAwIDAgMAA + + NO + NO + 0 + 0 + + + + 1 + MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA + + + + NSImage + Button_network.png + + + + + 292 + {{44, 298}, {232, 61}} + + + 1 + MCAwIDAgMAA + + NO + NO + 0 + 0 + + + + NSImage + Button_store.png + + + + + 292 + {{44, 384}, {232, 21}} + + NO + YES + NO + + + Helvetica-Oblique + 17 + 16 + + + 1 + MSAxIDEAA + + + 1 + 10 + 2 + + + {320, 431} + + + + + + + + YES + + + view + + + + 3 + + + + passandplayButton + + + + 9 + + + + netplayButton + + + + 10 + + + + storeButton + + + + 11 + + + + startPlaying + + + 7 + + 12 + + + + + YES + + 0 + + + + + + 1 + + + YES + + + + + + + + + + -1 + + + File's Owner + + + -2 + + + + + 4 + + + + + 5 + + + + + 7 + + + + + 8 + + + + + 13 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 13.IBPluginDependency + 4.IBPluginDependency + 5.IBPluginDependency + 7.IBPluginDependency + 8.IBPluginDependency + + + YES + MainMenuViewController + UIResponder + {{493, 454}, {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 + + + + YES + + + YES + + + + + YES + + + YES + + + + 13 + + + + YES + + MainMenuViewController + UIViewController + + startPlaying + id + + + YES + + YES + netplayButton + passandplayButton + storeButton + versionLabel + + + YES + UIButton + UIButton + UIButton + UILabel + + + + IBProjectSource + ../../../hedge.build/trunk/cocoaTouch/MainMenuViewController.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 + QuartzCore.framework/Headers/CAAnimation.h + + + + NSObject + + IBFrameworkSource + QuartzCore.framework/Headers/CALayer.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/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 + + + + + 0 + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + ../../../Documents/xcode/hwengine/hwengine.xcodeproj + 3 + 3.1 + + diff -r 04c086d8d9d4 -r 0ba746be5d59 cocoaTouch/MainWindow.xib --- a/cocoaTouch/MainWindow.xib Thu Jan 07 22:59:14 2010 +0000 +++ b/cocoaTouch/MainWindow.xib Fri Jan 08 01:12:51 2010 +0000 @@ -12,7 +12,7 @@ YES - + YES @@ -54,36 +54,22 @@ YES - - Item 4 - - 3 - Settings + + Item 1 + + Main NSImage - dependenticon.png + tabButton1.png - - DependentComponentPickerViewController + MainMenuViewController YES - - Item 1 - - Main - - NSImage - clockicon.png - - - - - DatePickerViewController - + Item 2 @@ -91,7 +77,7 @@ Teams NSImage - singleicon.png + tabButton2.png @@ -105,7 +91,7 @@ Schemes NSImage - doubleicon.png + tabButton3.png @@ -113,7 +99,21 @@ DoubleComponentPickerViewController - + + Item 4 + + 3 + Settings + + NSImage + tabButton4.png + + + + + + DependentComponentPickerViewController + @@ -294,7 +294,7 @@ {{144, 608}, {320, 480}} com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - DatePickerViewController + MainMenuViewController com.apple.InterfaceBuilder.IBCocoaTouchPlugin SingleComponentPickerViewController com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -337,28 +337,30 @@ YES - DatePickerViewController + MainMenuViewController UIViewController + startPlaying + id + + YES YES - buttonPressed - startGame + netplayButton + passandplayButton + storeButton YES - id - id + UIButton + UIButton + UIButton - - date_picker - UIDatePicker - IBProjectSource - ../begchap7/Classes/DatePickerViewController.h + ../../../hedge.build/trunk/cocoaTouch/MainMenuViewController.h @@ -535,6 +537,14 @@ + UIButton + UIControl + + IBFrameworkSource + UIKit.framework/Headers/UIButton.h + + + UIControl UIView @@ -543,14 +553,6 @@ - UIDatePicker - UIControl - - IBFrameworkSource - UIKit.framework/Headers/UIDatePicker.h - - - UIResponder NSObject diff -r 04c086d8d9d4 -r 0ba746be5d59 cocoaTouch/SDL_uikitappdelegate.m --- a/cocoaTouch/SDL_uikitappdelegate.m Thu Jan 07 22:59:14 2010 +0000 +++ b/cocoaTouch/SDL_uikitappdelegate.m Fri Jan 08 01:12:51 2010 +0000 @@ -34,14 +34,14 @@ static int forward_argc; static char **forward_argv; -int main(int argc, char **argv) { +int main (int argc, char **argv) { int i; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; /* store arguments */ forward_argc = argc; forward_argv = (char **)malloc(argc * sizeof(char *)); - for (i=0; i