forked from broha22/CSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSIconDelegate.xm
More file actions
executable file
·57 lines (51 loc) · 1.23 KB
/
CSIconDelegate.xm
File metadata and controls
executable file
·57 lines (51 loc) · 1.23 KB
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
53
54
55
56
57
#import "shared.h"
<<<<<<< HEAD
#import "CSView-New.h"
=======
#import "CSView.h"
>>>>>>> cb7d7214b8270405dd160e74854fea27d457ef3e
#import "CSIconDelegate.h"
@implementation CSIconDelegate
- (BOOL)iconPositionIsEditable:(id)arg1 {
return NO;
}
- (void)iconTouchBegan:(SBIconView *)arg1 {
[arg1 setHighlighted:YES];
}
- (void)icon:(SBIconView *)arg1 touchEnded:(BOOL)arg2 {
[arg1 setHighlighted:NO];
}
- (BOOL)iconShouldAllowTap:(SBIconView *)arg1 {
return YES;
}
- (void)iconTapped:(SBIconView *)arg1 {
<<<<<<< HEAD
[[CSView sharedView] activateAppWithContainer:((CSContainer *)arg1.superview)];
[arg1 setHighlighted:NO];
}
- (BOOL)iconViewDisplaysCloseBox:(SBIconView *)arg1 {
return NO;
=======
[[CSView sharedView] activateAppWithIconView:arg1];
[arg1 setHighlighted:NO];
}
- (void)iconHandleLongPress:(SBIconView *)arg1 {
if ([CSView sharedView].snapShots == NO){
[[CSView sharedView] setIconsEditing:YES];
}
else {
}
}
- (BOOL)iconViewDisplaysCloseBox:(SBIconView *)arg1 {
if ([CSView sharedView].snapShots == NO) {
return YES;
}
else {
return NO;
}
}
- (void)iconCloseBoxTapped:(SBIconView *)arg1 {
[[CSView sharedView] removeIcon:arg1];
>>>>>>> cb7d7214b8270405dd160e74854fea27d457ef3e
}
@end