-
Notifications
You must be signed in to change notification settings - Fork 6
/
MVTabsView.h
52 lines (45 loc) · 1.39 KB
/
MVTabsView.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
49
50
51
52
#import <TwUI/TUIKit.h>
#import "MVTopBarView.h"
@class MVTabsView;
@protocol MVTabsViewDelegate
@optional
- (void)tabsViewDidChangeSelection:(MVTabsView*)tabsView;
- (void)tabsViewDidChangeTabs:(MVTabsView*)tabsView;
- (void)tabsViewDidChangeOrder:(MVTabsView*)tabsView;
@end
@interface MVTabsView : TUIView
@property (weak, readwrite) NSObject <MVTabsViewDelegate> *delegate;
#pragma mark -
#pragma mark Tabs Management
- (void)addTab:(NSString*)name
closable:(BOOL)closable
sortable:(BOOL)sortable
online:(BOOL)online
identifier:(NSObject*)identifier
animated:(BOOL)animated;
- (void)addTab:(NSString*)name
closable:(BOOL)closable
sortable:(BOOL)sortable
online:(BOOL)online
identifier:(NSObject*)identifier
atIndex:(NSUInteger)index
animated:(BOOL)animated;
- (void)renameTab:(NSString*)name
withIdentifier:(NSObject*)identifier
animated:(BOOL)animated;
- (void)removeTab:(NSObject*)identifier
animated:(BOOL)animated;
- (NSArray*)tabsIdentifiers;
- (int)countTabs;
- (void)setGlowing:(BOOL)glowing
identifier:(NSObject*)identifier;
- (void)setOnline:(BOOL)online
identifier:(NSObject*)identifier;
- (BOOL)hasTabForIdentifier:(NSObject*)identifier;
#pragma mark -
#pragma mark Selection
- (NSObject*)selectedTab;
- (void)setSelectedTab:(NSObject*)identifier;
- (void)selectPreviousTab;
- (void)selectNextTab;
@end