Skip to content

Commit

Permalink
Partial implementation of the back of the brief preview. Includes aut…
Browse files Browse the repository at this point in the history
…hor, description, pertinent dates and the ability to delete the brief. Still need to complete code for reloading the previews and refreshing the brief file itself.
  • Loading branch information
capttaco committed Mar 28, 2010
1 parent 26a611a commit 4420b82
Show file tree
Hide file tree
Showing 16 changed files with 953 additions and 137 deletions.
30 changes: 30 additions & 0 deletions Briefs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
D43CE527115703BC00DA07D5 /* main-bg-focused.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE526115703BC00DA07D5 /* main-bg-focused.png */; };
D43CE5331157055100DA07D5 /* BFPagedContainerView.m in Sources */ = {isa = PBXBuildFile; fileRef = D43CE5321157055100DA07D5 /* BFPagedContainerView.m */; };
D43CE71F1158811700DA07D5 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D43CE71E1158811700DA07D5 /* QuartzCore.framework */; };
D43CE7DB115DA55600DA07D5 /* return.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE7D8115DA55600DA07D5 /* return.png */; };
D43CE7DC115DA55600DA07D5 /* trashcan.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE7D9115DA55600DA07D5 /* trashcan.png */; };
D43CE7DD115DA55600DA07D5 /* refresh.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE7DA115DA55600DA07D5 /* refresh.png */; };
D43CE885115F021000DA07D5 /* briefcast-header.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE884115F021000DA07D5 /* briefcast-header.png */; };
D43CE887115F022D00DA07D5 /* refresh-large.png in Resources */ = {isa = PBXBuildFile; fileRef = D43CE886115F022D00DA07D5 /* refresh-large.png */; };
D463E8FF107310170075CCCE /* BFBriefcastViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D463E8FE107310170075CCCE /* BFBriefcastViewController.m */; };
D464117110606DDE001522F6 /* BFTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D464117010606DDE001522F6 /* BFTableViewController.m */; };
D46411931065CF8C001522F6 /* BFBriefCellController.m in Sources */ = {isa = PBXBuildFile; fileRef = D46411921065CF8C001522F6 /* BFBriefCellController.m */; };
Expand Down Expand Up @@ -203,6 +208,12 @@
D43CE5311157055100DA07D5 /* BFPagedContainerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BFPagedContainerView.h; sourceTree = "<group>"; };
D43CE5321157055100DA07D5 /* BFPagedContainerView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BFPagedContainerView.m; sourceTree = "<group>"; };
D43CE71E1158811700DA07D5 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
D43CE7D8115DA55600DA07D5 /* return.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = return.png; path = images/toolbar/return.png; sourceTree = "<group>"; };
D43CE7D9115DA55600DA07D5 /* trashcan.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = trashcan.png; path = images/toolbar/trashcan.png; sourceTree = "<group>"; };
D43CE7DA115DA55600DA07D5 /* refresh.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = refresh.png; path = images/toolbar/refresh.png; sourceTree = "<group>"; };
D43CE7FB115DB67600DA07D5 /* BFBriefViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BFBriefViewDelegate.h; sourceTree = "<group>"; };
D43CE884115F021000DA07D5 /* briefcast-header.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "briefcast-header.png"; path = "images/bg/briefcast-header.png"; sourceTree = "<group>"; };
D43CE886115F022D00DA07D5 /* refresh-large.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "refresh-large.png"; path = "images/toolbar/refresh-large.png"; sourceTree = "<group>"; };
D463E8FD107310170075CCCE /* BFBriefcastViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BFBriefcastViewController.h; sourceTree = "<group>"; };
D463E8FE107310170075CCCE /* BFBriefcastViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BFBriefcastViewController.m; sourceTree = "<group>"; wrapsLines = 0; };
D464116F10606DDE001522F6 /* BFTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BFTableViewController.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -538,6 +549,7 @@
D43CE16C114F0DC800DA07D5 /* backgrounds */ = {
isa = PBXGroup;
children = (
D43CE884115F021000DA07D5 /* briefcast-header.png */,
D43CE526115703BC00DA07D5 /* main-bg-focused.png */,
D43CE47B115548DD00DA07D5 /* preview-bg.png */,
D43CE3AC115488C400DA07D5 /* preview-play-bg.png */,
Expand All @@ -560,6 +572,7 @@
children = (
D46B799310A6239900CCD698 /* BFRemoteBriefEventDelegate.h */,
D43CE39C11546F7400DA07D5 /* BFBriefDataSource.h */,
D43CE7FB115DB67600DA07D5 /* BFBriefViewDelegate.h */,
);
name = protocols;
sourceTree = "<group>";
Expand All @@ -577,6 +590,17 @@
name = views;
sourceTree = "<group>";
};
D43CE7D7115DA54100DA07D5 /* toolbar */ = {
isa = PBXGroup;
children = (
D43CE886115F022D00DA07D5 /* refresh-large.png */,
D43CE7D8115DA55600DA07D5 /* return.png */,
D43CE7D9115DA55600DA07D5 /* trashcan.png */,
D43CE7DA115DA55600DA07D5 /* refresh.png */,
);
name = toolbar;
sourceTree = "<group>";
};
D463E8BE106D6C580075CCCE /* My Briefs */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -643,6 +667,7 @@
D472009510A110FE00601755 /* images */ = {
isa = PBXGroup;
children = (
D43CE7D7115DA54100DA07D5 /* toolbar */,
D43CE3AE11548B6D00DA07D5 /* ks1.png */,
D43CE16C114F0DC800DA07D5 /* backgrounds */,
D4A39830113C6E7F004971E9 /* icons */,
Expand Down Expand Up @@ -905,6 +930,11 @@
D43CE3AF11548B6D00DA07D5 /* ks1.png in Resources */,
D43CE47C115548DD00DA07D5 /* preview-bg.png in Resources */,
D43CE527115703BC00DA07D5 /* main-bg-focused.png in Resources */,
D43CE7DB115DA55600DA07D5 /* return.png in Resources */,
D43CE7DC115DA55600DA07D5 /* trashcan.png in Resources */,
D43CE7DD115DA55600DA07D5 /* refresh.png in Resources */,
D43CE885115F021000DA07D5 /* briefcast-header.png in Resources */,
D43CE887115F022D00DA07D5 /* refresh-large.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
25 changes: 23 additions & 2 deletions Classes/BFBriefInfoView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,34 @@
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

@class BFPreviewBriefViewController;
#import "BFBriefViewDelegate.h"

@interface BFBriefInfoView : UIView
{
IBOutlet BFPreviewBriefViewController *controller;
IBOutlet id<BFBriefViewDelegate> controller;
IBOutlet UILabel *titleLabel;
IBOutlet UILabel *authorLabel;
IBOutlet UILabel *fromLabel;
IBOutlet UILabel *numberOfScenesLabel;
IBOutlet UILabel *infoLabel;
IBOutlet UILabel *dateLabel;
IBOutlet UILabel *timeLabel;
}

@property (retain) IBOutlet UILabel *titleLabel;
@property (retain) IBOutlet UILabel *authorLabel;
@property (retain) IBOutlet UILabel *fromLabel;
@property (retain) IBOutlet UILabel *numberOfScenesLabel;
@property (retain) IBOutlet UILabel *infoLabel;
@property (retain) IBOutlet UILabel *dateLabel;
@property (retain) IBOutlet UILabel *timeLabel;



// Button Actions
- (IBAction)returnToPreview;
- (IBAction)deleteTheBrief;
- (IBAction)refreshTheBrief;


@end
11 changes: 11 additions & 0 deletions Classes/BFBriefInfoView.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@


@implementation BFBriefInfoView
@synthesize titleLabel, authorLabel, fromLabel, numberOfScenesLabel, infoLabel, dateLabel, timeLabel;

- (IBAction)returnToPreview
{
[controller shouldReturnToPreview];
}

- (IBAction)deleteTheBrief
{
[controller shouldDeleteBrief];
}
- (IBAction)refreshTheBrief
{
[controller shouldReloadBrief];
}



@end
17 changes: 17 additions & 0 deletions Classes/BFBriefViewDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// BFBriefViewDelegate.h
// Briefs
//
// Created by Rob Rhyne on 3/26/10.
// Copyright 2010 Digital Arch Design. All rights reserved.
//

@protocol BFBriefViewDelegate

- (void)shouldShowBriefDetails;
- (void)shouldReturnToPreview;
- (void)shouldDeleteBrief;
- (void)shouldReloadBrief;
- (void)briefShouldStartPlaying;

@end
10 changes: 4 additions & 6 deletions Classes/BFPreviewBriefView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//


#import "BFSceneView.h"

@class BFPreviewBriefViewController;
#import "BFBriefViewDelegate.h"

@interface BFPreviewBriefView : UIView
{
IBOutlet BFPreviewBriefViewController *delegate;
IBOutlet UILabel *titleLabel;
IBOutlet UIImageView *sceneView;
IBOutlet id<BFBriefViewDelegate> delegate;
IBOutlet UILabel *titleLabel;
IBOutlet UIImageView *sceneView;
}

@property (nonatomic, retain) IBOutlet UILabel *titleLabel;
Expand Down
12 changes: 0 additions & 12 deletions Classes/BFPreviewBriefView.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
@implementation BFPreviewBriefView
@synthesize titleLabel, sceneView;

- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// Initialization code
}
return self;
}

- (void)dealloc
{
[super dealloc];
}

- (void)_runShouldShowBriefDetails
{
[delegate shouldShowBriefDetails];
Expand Down
3 changes: 2 additions & 1 deletion Classes/BFPreviewBriefViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "BFBriefInfoView.h"
#import "BFBriefDataSource.h"
#import "BriefRef.h"
#import "BFBriefViewDelegate.h"

// Adapted from code seen on http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html
//
Expand All @@ -22,7 +23,7 @@
// this copyright and permission notice. Attribution in compiled projects is
// appreciated but not required.

@interface BFPreviewBriefViewController : UIViewController
@interface BFPreviewBriefViewController : UIViewController <BFBriefViewDelegate, UIActionSheetDelegate>
{
IBOutlet BFPreviewBriefView *previewView;
IBOutlet BFBriefInfoView *infoView;
Expand Down
Loading

0 comments on commit 4420b82

Please sign in to comment.