Skip to content

Commit

Permalink
Merge branch 'ui_1_dot_0' of /Users/rob/Dropbox/code/iphone/Briefs in…
Browse files Browse the repository at this point in the history
…to ui_1_dot_0

Conflicts:
	Briefs.xcodeproj/project.pbxproj
  • Loading branch information
Rob Rhyne committed May 1, 2010
2 parents fafbeb0 + e95af09 commit ea8cc1b
Show file tree
Hide file tree
Showing 131 changed files with 10,264 additions and 848 deletions.
474 changes: 474 additions & 0 deletions BFBriefcastCell.xib

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions Briefs-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<string>app-icon.png</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.digitalarch.briefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand All @@ -26,5 +26,19 @@
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UIPrerenderedIcon</key>
<true/>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.digitalarch.briefs</string>
<key>CFBundleURLSchemes</key>
<array>
<string>brief</string>
<string>briefcast</string>
</array>
</dict>
</array>
</dict>
</plist>
Binary file added Briefs.xcdatamodel/elements
Binary file not shown.
Binary file added Briefs.xcdatamodel/layout
Binary file not shown.
388 changes: 323 additions & 65 deletions Briefs.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion Briefs_Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
// Prefix header for all source files of the 'Briefs' target in the 'Briefs' project
//

#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif


#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
#import <CoreData/CoreData.h>
#import <QuartzCore/QuartzCore.h>
#endif
18 changes: 18 additions & 0 deletions Classes/BFAddBriefcastCellController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// BFAddBriefcastCellController.h
// Briefs
//
// Created by Rob Rhyne on 3/13/10.
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

#import "BFButtonCellController.h"

@interface BFAddBriefcastCellController : BFButtonCellController
{
id delegate;
}

@property (nonatomic, retain) id delegate;

@end
22 changes: 22 additions & 0 deletions Classes/BFAddBriefcastCellController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// BFAddBriefcastCellController.m
// Briefs
//
// Created by Rob Rhyne on 3/13/10.
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

#import "BFAddBriefcastCellController.h"


@implementation BFAddBriefcastCellController
@synthesize delegate;

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([delegate respondsToSelector:@selector(addBriefcast)]) {
[delegate addBriefcast];
}
}

@end
10 changes: 10 additions & 0 deletions Classes/BFAddBriefcastViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import "BFAddBriefcastViewController.h"
#import "BFTextCellController.h"
#import "BFConfig.h"

@implementation BFAddBriefcastViewController

Expand Down Expand Up @@ -70,6 +71,15 @@ - (void)didReceiveMemoryWarning
// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidLoad
{
[super viewDidLoad];

self.navigationController.navigationBar.tintColor = [BFConfig tintColorForNavigationBar];
self.view.backgroundColor = [BFConfig backgroundForTableView];
//self.view.separatorColor = [UIColor colorWithRed:0.7667f green:0.7784f blue:0.7902f alpha:1.0f];
}

- (void)viewDidUnload
{
self.delegate = nil;
Expand Down
18 changes: 18 additions & 0 deletions Classes/BFArrayBriefDataSource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// BFArrayBriefDataSource.h
// Briefs
//
// Created by Rob Rhyne on 3/28/10.
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

#import "BFBriefDataSource.h"

@interface BFArrayBriefDataSource : NSObject <BFBriefDataSource>
{
NSArray *backingArray;
}

- (id)initWithArray:(NSArray *)backing;

@end
49 changes: 49 additions & 0 deletions Classes/BFArrayBriefDataSource.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//
// BFArrayBriefDataSource.m
// Briefs
//
// Created by Rob Rhyne on 3/28/10.
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

#import "BFArrayBriefDataSource.h"


@implementation BFArrayBriefDataSource

///////////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark Initialization

- (id)initWithArray:(NSArray *)backing
{
if (self = [super init]) {
backingArray = [backing retain];
}

return self;
}

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

///////////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark BFBriefDataSource Compliance

- (int)numberOfRecords
{
return [backingArray count];
}

- (BriefRef *)dataForIndex:(NSInteger)index
{
return [backingArray objectAtIndex:index];
}

///////////////////////////////////////////////////////////////////////////////

@end
51 changes: 46 additions & 5 deletions Classes/BFBriefCellController.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,61 @@
// Briefs
//
// Created by Rob Rhyne on 9/19/09.
// Copyright Digital Arch Design, 2009. See LICENSE file for details.
// Copyright Digital Arch Design, 2009-2010. See LICENSE file for details.
//

#import <Foundation/Foundation.h>
#import "BFCellController.h"
#import "FeedParser.h"
#import "BFBriefcastEventDelegate.h"

typedef enum {
/** Brief already exists, but a newer version exists */
BFBriefCellInstallTypeUpdate = -123,

/** Brief is not installed */
BFBriefCellInstallTypeNewInstall = -122,

/** Brief is installed with the newest version */
BFBriefCellInstallTypeAlreadyInstalled = -133

} BFBriefCellInstallType;


@interface BFBriefCellController : NSObject<BFCellController>
{
NSString *brief;
id<BFBriefcastEventDelegate> delegate;
BFBriefCellInstallType installType;
FPItem *brief;

// UI State
BOOL isSelected;
BOOL isInstallButtonExpanded;


// Text
IBOutlet UILabel *indexLabel;
IBOutlet UILabel *titleLabel;
IBOutlet UILabel *descLabel;

// Layout
IBOutlet UIView *leftAccessoryView;
IBOutlet UIView *contentView;
IBOutlet UIView *rightAccessoryView;

// Controls
IBOutlet UIView *indexView;
IBOutlet UIView *remotePlayView;
IBOutlet UIButton *remotePlayButton;
IBOutlet UIButton *installButton;
UIImageView *installButtonBg;
}

@property (nonatomic, retain) NSString *brief;
@property (nonatomic, retain) FPItem *brief;
@property (nonatomic, assign) id<BFBriefcastEventDelegate> delegate;

- (id)initWithEnclosure:(FPItem *)item;

- (id)initWithNameOfBrief:(NSString *)name;
- (IBAction)shouldBeginRemotePlay;
- (IBAction)shouldStartDownloadingBrief;

@end
Loading

0 comments on commit ea8cc1b

Please sign in to comment.