-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathWCBoardPostCellView.h
52 lines (37 loc) · 1.57 KB
/
WCBoardPostCellView.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
//
// WCBoardPostCellView.h
// Wired Client
//
// Created by Rafael Warnault on 04/05/2020.
//
#import <Cocoa/Cocoa.h>
NS_ASSUME_NONNULL_BEGIN
@class WCBoardPostCellView;
@protocol WCBoardPostCellViewDelegate <NSObject>
@optional
- (void)postCell:(WCBoardPostCellView *)cell replyButtonClicked:(NSButton *)sender;
- (void)postCell:(WCBoardPostCellView *)cell quoteButtonClicked:(NSButton *)sender;
- (void)postCell:(WCBoardPostCellView *)cell editButtonClicked:(NSButton *)sender;
- (void)postCell:(WCBoardPostCellView *)cell deleteButtonClicked:(NSButton *)sender;
@end
@interface WCBoardPostCellView : NSTableCellView {
NSTrackingArea *_trackingArea;
NSEvent *event;
}
@property (nonatomic, weak) id <WCBoardPostCellViewDelegate> delegate;
@property (nonatomic, retain) IBOutlet NSButton *replyButton;
@property (nonatomic, retain) IBOutlet NSButton *quoteButton;
@property (nonatomic, retain) IBOutlet NSButton *editButton;
@property (nonatomic, retain) IBOutlet NSButton *deleteButton;
@property (nonatomic, retain) IBOutlet NSTextField *nickTextField;
@property (nonatomic, retain) IBOutlet NSTextField *timeTextField;
@property (nonatomic, retain) IBOutlet NSTextField *messageTextField;
@property (nonatomic, retain) IBOutlet NSImageView *iconImageView;
@property (nonatomic, retain) IBOutlet NSImageView *unreadImageView;
@property (nonatomic, weak) IBOutlet NSLayoutConstraint *heightConstraint;
- (IBAction)replyPost:(id)sender;
- (IBAction)quotePost:(id)sender;
- (IBAction)editPost:(id)sender;
- (IBAction)deletePost:(id)sender;
@end
NS_ASSUME_NONNULL_END