Skip to content

Commit

Permalink
some header stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcool420 committed May 11, 2011
1 parent 1a225c5 commit 6b7bb6b
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion SMFAssetPreviewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "SMFMoviePreviewController.h"
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>

@interface SMFAssetPreviewController : SMFMoviePreviewController {
BRBaseMediaAsset * asset;
Expand Down
2 changes: 1 addition & 1 deletion SMFCenteredMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
#import "SMFMediaMenuController.h"
#import "SMFMenuController.h"
#import "SMFDefines.h"
Expand Down
2 changes: 1 addition & 1 deletion SMFController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Thomas Cool on 11/30/09.
// Copyright 2009 Thomas Cool. All rights reserved.
//
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
@interface BRController (Compat)

-(CGRect)frame;
Expand Down
2 changes: 1 addition & 1 deletion SMFController.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ -(void)layoutHeader
{
[_headerControl removeFromParent];
if(_title == nil)
_title = DEFAULT_CONTROLLER_TITLE;
_title = [@"Title" retain];
[_headerControl setTitle:_title];
CGRect masterFrame = [self getMasterFrame];
CGRect frame=masterFrame;
Expand Down
22 changes: 21 additions & 1 deletion SMFControllerPasscodeController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,33 @@
//

#import "SMFPasscodeController.h"

/**
*Special subclass of SMFPasscodeController made to block a controller
*
*It is made for ease of use. It only has one class or instance method and that is the initialization
*
*If the user returns the wrong passcode, nothing happens, the controller is simply popped
*/
@interface SMFControllerPasscodeController : SMFPasscodeController {
BRController *blockedController;
int _passcode;

}
/**
*Creating the passcode controller
*@param controller the controller to block (should not be pushed to stack but should have been autoreleased)
*@param passcode the passcode to unlock the controller
*@return the controller to be pushed to the BRApplicationStack
*@see initForController:withPasscode:
*/
+ (SMFControllerPasscodeController *)controllerPasscodeControllerForController:(BRController *)controller withPasscode:(int)passcode;
/**
*Creating the passcode controller
*@param controller the controller to block (should not be pushed to stack but should have been autoreleased)
*@param passcode the passcode to unlock the controller
*@return the controller to be pushed to the BRApplicationStack
*@see controllerPasscodeControllerForController:withPasscode:
*/
- (id)initForController:(BRController *)controller withPasscode:(int)passcode;
@property (retain)BRController *blockedController;
@end
3 changes: 2 additions & 1 deletion SMFControllerPasscodeController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
//

#import "SMFControllerPasscodeController.h"

//#import "BRThemeInfo.h"

@implementation SMFControllerPasscodeController
@synthesize blockedController;
+(SMFControllerPasscodeController *)controllerPasscodeControllerForController:(BRController *)controller withPasscode:(int)passcode
{
[BRThemeInfo sharedTheme];
SMFControllerPasscodeController * c = [[[SMFControllerPasscodeController alloc]initForController:controller withPasscode:passcode] autorelease];
return c;
}
Expand Down
2 changes: 1 addition & 1 deletion SMFInvocationCenteredMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Thomas Cool on 2/27/10.
// Copyright 2010 Thomas Cool. All rights reserved.
//
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
#import "SMFCenteredMenuController.h"

@class SMFCenteredMenuController;
Expand Down
2 changes: 1 addition & 1 deletion SMFInvocationCenteredMenuController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "SMFInvocationCenteredMenuController.h"

//#import "BRThemeInfo.h"
@implementation SMFInvocationCenteredMenuController
-(id)initWithTitles:(NSArray *)titles withInvocations:(NSArray *)invocations withTitle:(NSString *)title withDescription:(NSString *)description
{
Expand Down
2 changes: 1 addition & 1 deletion SMFMediaMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Thomas Cool on 10/22/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
#import <Foundation/Foundation.h>
#import "SMFDefines.h"
/**
Expand Down
2 changes: 1 addition & 1 deletion SMFMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Thomas Cool on 10/22/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
#import <Foundation/Foundation.h>
#import "SMFDefines.h"
@interface SMFMenuController : BRMenuController <BRMenuListItemProvider> {
Expand Down
2 changes: 1 addition & 1 deletion SMFPasscodeController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright 2009,2010 Thomas Cool. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>
@class BRHeaderControl, BRTextControl,BRScrollingTextControl, BRImageControl, BRPasscodeEntryControl, BRDisplayManager;
@protocol SMFPasscodeControllerDelegate
- (void) textDidEndEditing: (id) sender;
Expand Down
2 changes: 1 addition & 1 deletion SMFViewMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright 2011 tomcool.org. All rights reserved.
//

#import <Backrow/Backrow.h>
#import <BackRow/BackRow.h>

/*
* DO NOT USE YET
Expand Down

0 comments on commit 6b7bb6b

Please sign in to comment.