-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSMFMenuItem.h
48 lines (44 loc) · 1.11 KB
/
SMFMenuItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// SMFMenuItem.h
// SMFramework
//
// Created by Thomas Cool on 10/26/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Backrow/AppleTV.h"
@class BRMenuItem;
@interface SMFMenuItem : BRMenuItem {
BOOL centered;
}
/*
* The Following methods create menu items
* with different images on the right
* return is already autoreleased.
*/
+(SMFMenuItem *)folderMenuItem;
+(SMFMenuItem *)menuItem;
+(SMFMenuItem *)shuffleMenuItem;
+(SMFMenuItem *)refreshMenuItem;
+(SMFMenuItem *)syncMenuItem;
+(SMFMenuItem *)lockMenuItem;
+(SMFMenuItem *)progressMenuItem;
+(SMFMenuItem *)downloadMenuItem;
+(SMFMenuItem *)computerMenuItem;
/*
* Convenience method so a NSString can be used instead of an
* NSAttributedString
*/
-(void)setTitle:(NSString *)title;
/*
* Convenience method so a NSString can be used instead of an
* NSAttributedString
*/
-(void)setRightText:(NSString *)txt;
/*
* adds a selected checkmark with the proper size so it does not
* shift the text and looks like apple's
*/
-(void)setSelectedImage:(BOOL)b;
@property (assign) BOOL centered;
@end