Skip to content

Commit

Permalink
復活
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenta Iwami committed Dec 2, 2015
1 parent 1c1edd1 commit 3f0429f
Show file tree
Hide file tree
Showing 101 changed files with 614 additions and 561 deletions.
52 changes: 36 additions & 16 deletions DB.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file modified DB/5200574633_baefe45590_b.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions DB/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var view_pic: UIImage!

var pic_segmented = 0

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
Expand Down
Empty file modified DB/Assets.xcassets/AppIcon.appiconset/appicon-Small@2x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/Assets.xcassets/AppIcon.appiconset/appicon-Small@3x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
677 changes: 380 additions & 297 deletions DB/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

46 changes: 2 additions & 44 deletions DB/CreatePicController.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,22 @@ class CreatePicController: UIViewController {
@IBOutlet weak var pic5: UIImageView!
@IBOutlet weak var pic6: UIImageView!
@IBOutlet weak var pic7: UIImageView!
@IBOutlet weak var pic8: UIImageView!

@IBOutlet weak var textback1: UIImageView!
@IBOutlet weak var textback2: UIImageView!
@IBOutlet weak var textback3: UIImageView!
@IBOutlet weak var textback4: UIImageView!
@IBOutlet weak var textback5: UIImageView!
@IBOutlet weak var textback6: UIImageView!
@IBOutlet weak var textback7: UIImageView!

@IBOutlet weak var title1: UILabel!
@IBOutlet weak var title2: UILabel!
@IBOutlet weak var title3: UILabel!
@IBOutlet weak var title4: UILabel!
@IBOutlet weak var title5: UILabel!
@IBOutlet weak var title6: UILabel!
@IBOutlet weak var title7: UILabel!

@IBOutlet weak var text1: UILabel!
@IBOutlet weak var text4: UILabel!
@IBOutlet weak var text5: UILabel!
@IBOutlet weak var text7: UILabel!

let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate

override func viewDidLoad() {
super.viewDidLoad()

backimage.image = UIImage(named: "haikei.png")

textback1.image = UIImage(named: "b300.png")
textback2.image = UIImage(named: "b300.png")
textback3.image = UIImage(named: "b300.png")
textback4.image = UIImage(named: "b300.png")
textback5.image = UIImage(named: "b300.png")
textback6.image = UIImage(named: "b300.png")
textback7.image = UIImage(named: "b300.png")

title1.text=DB().getCard(appDelegate.cardID[1]).cardText?.title
title2.text=DB().getCard(appDelegate.cardID[2]).cardText?.title
title3.text=DB().getCard(appDelegate.cardID[3]).cardText?.title
title4.text=DB().getCard(appDelegate.cardID[4]).cardText?.title
title5.text=DB().getCard(appDelegate.cardID[5]).cardText?.title
title6.text=DB().getCard(appDelegate.cardID[6]).cardText?.title
title7.text=DB().getCard(appDelegate.cardID[7]).cardText?.title

text1.text=DB().getCard(appDelegate.cardID[1]).cardText?.text
text4.text=DB().getCard(appDelegate.cardID[4]).cardText?.text
text5.text=DB().getCard(appDelegate.cardID[5]).cardText?.text
text7.text=DB().getCard(appDelegate.cardID[7]).cardText?.text


pic1.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[1]).photo?.photoData)!)
pic2.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[2]).photo?.photoData)!)
pic3.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[3]).photo?.photoData)!)
pic4.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[4]).photo?.photoData)!)
pic5.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[5]).photo?.photoData)!)
pic6.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[6]).photo?.photoData)!)
pic7.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[7]).photo?.photoData)!)
pic8.image=PhotoController().NSSImage((DB().getCard(appDelegate.cardID[8]).photo?.photoData)!)

appDelegate.view_pic = getUIImageFromUIView(background_view)

Expand Down
1 change: 0 additions & 1 deletion DB/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
35 changes: 0 additions & 35 deletions DB/PrintPreview1Controller.swift

This file was deleted.

88 changes: 0 additions & 88 deletions DB/PrintPreview2Controller.swift

This file was deleted.

Empty file modified DB/PrintPreviewController.swift
100644 → 100755
Empty file.
9 changes: 3 additions & 6 deletions DB/SelectPhoto1Controller.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class SelectPhoto1Controller: UIViewController {
@IBOutlet weak var photo2: UIImageView!
@IBOutlet weak var photo3: UIImageView!
@IBOutlet weak var navigation: UINavigationBar!
@IBOutlet weak var barItem1: UIBarButtonItem!

let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate

Expand All @@ -25,8 +26,8 @@ class SelectPhoto1Controller: UIViewController {
navigation.tintColor = UIColor.whiteColor()


NSTimer.scheduledTimerWithTimeInterval(0.5,target:self,selector:Selector("pic_show"),
userInfo: nil, repeats: true);
NSTimer.scheduledTimerWithTimeInterval(0.01,target:self,selector:Selector("pic_show"),
userInfo: nil, repeats: false);

// Do any additional setup after loading the view.
}
Expand All @@ -35,10 +36,6 @@ class SelectPhoto1Controller: UIViewController {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func next(sender: AnyObject) {
let targetViewController = self.storyboard!.instantiateViewControllerWithIdentifier( "target2" )
self.presentViewController( targetViewController, animated: true, completion: nil)
}
@IBAction func photo1_select(sender: AnyObject) {
appDelegate.picID=1
}
Expand Down
21 changes: 13 additions & 8 deletions DB/SelectPhoto2Controller.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class SelectPhoto2Controller: UIViewController {
@IBOutlet weak var photo5: UIImageView!
@IBOutlet weak var photo6: UIImageView!
@IBOutlet weak var photo7: UIImageView!
@IBOutlet weak var photo8: UIImageView!
@IBOutlet weak var navigation: UINavigationBar!

let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
Expand All @@ -24,8 +25,8 @@ class SelectPhoto2Controller: UIViewController {
let navBarImage = UIImage(named: "bar6.png") as UIImage?
self.navigation.setBackgroundImage(navBarImage, forBarMetrics:. Default)

NSTimer.scheduledTimerWithTimeInterval(0.5,target:self,selector:Selector("pic_show"),
userInfo: nil, repeats: true);
NSTimer.scheduledTimerWithTimeInterval(0.01,target:self,selector:Selector("pic_show"),
userInfo: nil, repeats: false);

// Do any additional setup after loading the view.
}
Expand All @@ -46,12 +47,10 @@ class SelectPhoto2Controller: UIViewController {
@IBAction func pic7_select(sender: AnyObject) {
appDelegate.picID=7
}


@IBAction func back(sender: AnyObject) {
// let targetViewController = self.storyboard!.instantiateViewControllerWithIdentifier( "target1" )
// self.presentViewController( targetViewController, animated: true, completion: nil)
@IBAction func pic8_select(sender: AnyObject) {
appDelegate.picID=8
}

func pic_show(){

if(appDelegate.cardID[4] == 0){
Expand All @@ -75,10 +74,16 @@ class SelectPhoto2Controller: UIViewController {
}else{
photo7.image = PhotoController().NSSImage((DB().getCard(appDelegate.cardID[7]).photo?.photoData)!)
}
if(appDelegate.cardID[8] == 0){
photo8.image = UIImage(named: "noimage.jpg")
}else{
photo8.image = PhotoController().NSSImage((DB().getCard(appDelegate.cardID[8]).photo?.photoData)!)
}

}

@IBAction func finish(sender: AnyObject) {
if((appDelegate.cardID[1]==0)||(appDelegate.cardID[2]==0)||(appDelegate.cardID[3]==0)||(appDelegate.cardID[4]==0)||(appDelegate.cardID[5]==0)||(appDelegate.cardID[6]==0)||(appDelegate.cardID[7]==0)
if((appDelegate.cardID[1]==0)||(appDelegate.cardID[2]==0)||(appDelegate.cardID[3]==0)||(appDelegate.cardID[4]==0)||(appDelegate.cardID[5]==0)||(appDelegate.cardID[6]==0)||(appDelegate.cardID[7]==0)||(appDelegate.cardID[8]==0)
){
let myAlert: UIAlertController = UIAlertController(title: "エラー", message: "画像を全て選んでください", preferredStyle: .Alert)
// OKのアクションを作成する.
Expand Down
37 changes: 0 additions & 37 deletions DB/album.swift

This file was deleted.

52 changes: 52 additions & 0 deletions DB/album_userphoto.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// album.swift
// DB
//
// Created by 岩見建汰 on 2015/11/19.
// Copyright © 2015年 project03A. All rights reserved.
//

import UIKit

class album_userphoto: UIViewController {


@IBOutlet weak var navigationbar: UINavigationBar!

let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
var backbutton = UIButton()


@IBOutlet weak var segmented: UISegmentedControl!

override func viewDidLoad() {
super.viewDidLoad()

let navBarImage = UIImage(named: "bar6.png") as UIImage?
self.navigationbar.setBackgroundImage(navBarImage, forBarMetrics:. Default)
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "haikei.png")!)
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}


@IBAction func segmentedchanged(sender: AnyObject) {
switch sender.selectedSegmentIndex{
case 0: //撮影写真
appDelegate.pic_segmented = 0

case 1: //サンプル写真
appDelegate.pic_segmented = 1
let targetViewController = self.storyboard!.instantiateViewControllerWithIdentifier("album_defaultphoto")
self.presentViewController( targetViewController, animated: false, completion: nil)
self.segmented.selectedSegmentIndex = 0 //選択を戻す
default:
break
}
}
@IBAction func backbutton(sender: AnyObject) {
self.dismissViewControllerAnimated(true, completion: nil) }
}
Empty file modified DB/b300.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/back.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/back1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DB/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/bar6.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/camera1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/camera3-3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions DB/cardList2.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ class cardList2: UIViewController, UITableViewDelegate, UITableViewDataSource{
cell.setCell(cards[indexPath.row])
return cell
}
@IBAction func photo_select(sender: AnyObject) {
self.dismissViewControllerAnimated(true, completion: nil)
}

}

Empty file modified DB/flag_on.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/haikei.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DB/hurikaeri.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DB/kanko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/leaf.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/map.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/map2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/next.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified DB/noimage.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3f0429f

Please sign in to comment.