Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added centered variable for menu items, warning cleanup

  • Loading branch information...
commit e0e078a1fc6ef2afd947b0ff7db5d3436957db1c 1 parent b42d5df
Kevin Bradley authored
View
2  SMFDropShadowControl.h
@@ -31,7 +31,7 @@
- (void)updateSender;
- (id)getListFromMenuItem:(id)menuItem;
-- (id)synthesizeMockItemFrom:(id)theSender;
+- (id)synthesizeMockItemFrom:(id)theSender withX:(float)xValue;
- (id)synthesizeMockItem;
@end
View
2  SMFListDropShadowControl.h
@@ -63,7 +63,7 @@
- (void)updateSender;
- (id)getListFromMenuItem:(id)menuItem;
-- (id)synthesizeMockItemFrom:(id)theSender;
+- (id)synthesizeMockItemFrom:(id)theSender withX:(float)xValue;
- (id)synthesizeMockItem;
@property (retain) NSObject<SMFListDropShadowDelegate>* cDelegate;
View
4 SMFMenuItem.h
@@ -9,6 +9,8 @@
#import "Backrow/AppleTV.h"
@interface SMFMenuItem : BRMenuItem {
+
+ BOOL centered;
}
/*
@@ -40,4 +42,6 @@
* shift the text and looks like apple's
*/
-(void)setSelectedImage:(BOOL)b;
+
+@property (assign) BOOL centered;
@end
View
15 SMFMenuItem.m
@@ -10,6 +10,9 @@
@implementation SMFMenuItem
+
+@synthesize centered;
+
+(SMFMenuItem *)folderMenuItem
{
SMFMenuItem *i = [[SMFMenuItem alloc] init];
@@ -66,7 +69,17 @@ +(SMFMenuItem *)computerMenuItem
}
-(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
{
View
2  _/DEBIAN/control
@@ -1,6 +1,6 @@
Package: org.tomcool.smframework
Name: SMFramework
-Version: 0.7.7-228
+Version: 0.7.7-232
Architecture: iphoneos-arm
Description: Framework for most packages written by me
Maintainer: Thomas Cool <thomas.cool@me.com>
View
4 _/Library/Frameworks/SMFramework.framework/Headers/SMFMenuItem.h
@@ -9,6 +9,8 @@
#import "Backrow/AppleTV.h"
@interface SMFMenuItem : BRMenuItem {
+
+ BOOL centered;
}
/*
@@ -40,4 +42,6 @@
* shift the text and looks like apple's
*/
-(void)setSelectedImage:(BOOL)b;
+
+@property (assign) BOOL centered;
@end
View
BIN  _/Library/Frameworks/SMFramework.framework/SMFramework
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.