Skip to content

Commit

Permalink
added centered variable for menu items, warning cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Bradley committed Sep 17, 2011
1 parent b42d5df commit e0e078a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SMFDropShadowControl.h
Expand Up @@ -31,7 +31,7 @@


- (void)updateSender; - (void)updateSender;
- (id)getListFromMenuItem:(id)menuItem; - (id)getListFromMenuItem:(id)menuItem;
- (id)synthesizeMockItemFrom:(id)theSender; - (id)synthesizeMockItemFrom:(id)theSender withX:(float)xValue;
- (id)synthesizeMockItem; - (id)synthesizeMockItem;


@end @end
2 changes: 1 addition & 1 deletion SMFListDropShadowControl.h
Expand Up @@ -63,7 +63,7 @@


- (void)updateSender; - (void)updateSender;
- (id)getListFromMenuItem:(id)menuItem; - (id)getListFromMenuItem:(id)menuItem;
- (id)synthesizeMockItemFrom:(id)theSender; - (id)synthesizeMockItemFrom:(id)theSender withX:(float)xValue;
- (id)synthesizeMockItem; - (id)synthesizeMockItem;


@property (retain) NSObject<SMFListDropShadowDelegate>* cDelegate; @property (retain) NSObject<SMFListDropShadowDelegate>* cDelegate;
Expand Down
4 changes: 4 additions & 0 deletions SMFMenuItem.h
Expand Up @@ -9,6 +9,8 @@
#import "Backrow/AppleTV.h" #import "Backrow/AppleTV.h"


@interface SMFMenuItem : BRMenuItem { @interface SMFMenuItem : BRMenuItem {

BOOL centered;


} }
/* /*
Expand Down Expand Up @@ -40,4 +42,6 @@
* shift the text and looks like apple's * shift the text and looks like apple's
*/ */
-(void)setSelectedImage:(BOOL)b; -(void)setSelectedImage:(BOOL)b;

@property (assign) BOOL centered;
@end @end
15 changes: 14 additions & 1 deletion SMFMenuItem.m
Expand Up @@ -10,6 +10,9 @@




@implementation SMFMenuItem @implementation SMFMenuItem

@synthesize centered;

+(SMFMenuItem *)folderMenuItem +(SMFMenuItem *)folderMenuItem
{ {
SMFMenuItem *i = [[SMFMenuItem alloc] init]; SMFMenuItem *i = [[SMFMenuItem alloc] init];
Expand Down Expand Up @@ -66,7 +69,17 @@ +(SMFMenuItem *)computerMenuItem
} }
-(void)setTitle:(NSString *)title -(void)setTitle:(NSString *)title
{ {
[self setText:title withAttributes:[[BRThemeInfo sharedTheme]menuItemTextAttributes]]; if (centered == TRUE)
{
[self setText:title withAttributes:[self centeredTextAttributes]];


} else {

[self setText:title withAttributes:[[BRThemeInfo sharedTheme]menuItemTextAttributes]];
}


} }
-(void)setRightText:(NSString *)txt -(void)setRightText:(NSString *)txt
{ {
Expand Down
2 changes: 1 addition & 1 deletion _/DEBIAN/control
@@ -1,6 +1,6 @@
Package: org.tomcool.smframework Package: org.tomcool.smframework
Name: SMFramework Name: SMFramework
Version: 0.7.7-228 Version: 0.7.7-232
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: Framework for most packages written by me Description: Framework for most packages written by me
Maintainer: Thomas Cool <thomas.cool@me.com> Maintainer: Thomas Cool <thomas.cool@me.com>
Expand Down
Expand Up @@ -9,6 +9,8 @@
#import "Backrow/AppleTV.h" #import "Backrow/AppleTV.h"


@interface SMFMenuItem : BRMenuItem { @interface SMFMenuItem : BRMenuItem {

BOOL centered;


} }
/* /*
Expand Down Expand Up @@ -40,4 +42,6 @@
* shift the text and looks like apple's * shift the text and looks like apple's
*/ */
-(void)setSelectedImage:(BOOL)b; -(void)setSelectedImage:(BOOL)b;

@property (assign) BOOL centered;
@end @end
Binary file modified _/Library/Frameworks/SMFramework.framework/SMFramework
Binary file not shown.

0 comments on commit e0e078a

Please sign in to comment.