Permalink
Browse files

some header stuff

  • Loading branch information...
1 parent 1a225c5 commit 6b7bb6b318b0e812e1a2114e33d2bd2b255115ca @tomcool420 committed May 11, 2011
@@ -7,7 +7,7 @@
//
#import "SMFMoviePreviewController.h"
-#import <Backrow/Backrow.h>
+#import <BackRow/BackRow.h>
@interface SMFAssetPreviewController : SMFMoviePreviewController {
BRBaseMediaAsset * asset;
@@ -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"
View
@@ -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;
View
@@ -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;
@@ -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
@@ -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;
}
@@ -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;
@@ -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
{
View
@@ -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"
/**
View
@@ -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> {
View
@@ -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;
View
@@ -6,7 +6,7 @@
// Copyright 2011 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import <BackRow/BackRow.h>
/*
* DO NOT USE YET

0 comments on commit 6b7bb6b

Please sign in to comment.