mirror of
https://github.com/vector-im/element-ios.git
synced 2024-10-01 00:32:41 +00:00
44 lines
1.7 KiB
Objective-C
44 lines
1.7 KiB
Objective-C
/*
|
|
Copyright 2014 OpenMarket Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "CustomImageView.h"
|
|
#import "RoomMessage.h"
|
|
|
|
// Room Message Table View Cell
|
|
@interface RoomMessageTableCell : UITableViewCell
|
|
@property (strong, nonatomic) IBOutlet CustomImageView *pictureView;
|
|
@property (weak, nonatomic) IBOutlet UITextView *messageTextView;
|
|
@property (strong, nonatomic) IBOutlet CustomImageView *attachmentView;
|
|
@property (strong, nonatomic) IBOutlet UIImageView *playIconView;
|
|
@property (weak, nonatomic) IBOutlet UIView *dateTimeLabelContainer;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *msgTextViewTopConstraint;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachViewWidthConstraint;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachViewTopConstraint;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *dateTimeLabelContainerTopConstraint;
|
|
|
|
// reference to the linked message
|
|
@property (strong, nonatomic) RoomMessage *message;
|
|
@end
|
|
|
|
@interface IncomingMessageTableCell : RoomMessageTableCell
|
|
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
|
|
@end
|
|
|
|
@interface OutgoingMessageTableCell : RoomMessageTableCell
|
|
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;
|
|
@end
|
|
|