Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 1 | /* |
Anthony Léonard | e7d62ed | 2018-01-25 10:51:47 -0500 | [diff] [blame] | 2 | * Copyright (C) 2016-2018 Savoir-faire Linux Inc. |
Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 3 | * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
Anthony Léonard | e7d62ed | 2018-01-25 10:51:47 -0500 | [diff] [blame] | 4 | * Author: Anthony Léonard <anthony.leonard@savoirfairelinux.com> |
Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | #import <Cocoa/Cocoa.h> |
Kateryna Kostiuk | 58276bc | 2017-06-07 08:50:48 -0400 | [diff] [blame] | 22 | #import "MessageBubbleView.h" |
Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 23 | |
| 24 | @interface IMTableCellView : NSTableCellView |
| 25 | |
| 26 | @property (nonatomic, strong) IBOutlet NSImageView* photoView; |
| 27 | @property (nonatomic, strong) IBOutlet NSTextView* msgView; |
Kateryna Kostiuk | 58276bc | 2017-06-07 08:50:48 -0400 | [diff] [blame] | 28 | @property (nonatomic, strong) IBOutlet MessageBubbleView* msgBackground; |
Anthony Léonard | e7d62ed | 2018-01-25 10:51:47 -0500 | [diff] [blame] | 29 | @property (nonatomic, strong) IBOutlet NSButton* acceptButton; |
| 30 | @property (nonatomic, strong) IBOutlet NSButton* declineButton; |
| 31 | @property (nonatomic, strong) IBOutlet NSProgressIndicator* progressIndicator; |
| 32 | @property (nonatomic, strong) IBOutlet NSTextField* statusLabel; |
Kateryna Kostiuk | ae660fd | 2018-04-24 14:10:41 -0400 | [diff] [blame^] | 33 | @property (nonatomic, strong) IBOutlet NSBox* timeBox; |
| 34 | @property (nonatomic, strong) IBOutlet NSTextField* timeLabel; |
| 35 | @property (nonatomic, strong) IBOutlet NSTextField* transferedFileName; |
| 36 | @property (nonatomic, strong) IBOutlet NSImageView* transferedImage; |
| 37 | @property (nonatomic, strong) IBOutlet NSProgressIndicator* sendingMessageIndicator; |
| 38 | @property (nonatomic, strong) IBOutlet NSTextField* messageFailed; |
| 39 | @property (nonatomic, strong) IBOutlet NSView* messageStatus; |
Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 40 | |
Anthony Léonard | e7d62ed | 2018-01-25 10:51:47 -0500 | [diff] [blame] | 41 | |
| 42 | - (uint64_t) interaction; |
| 43 | - (void) setupForInteraction:(uint64_t)inter; |
Kateryna Kostiuk | ae660fd | 2018-04-24 14:10:41 -0400 | [diff] [blame^] | 44 | - (void) updateMessageConstraint:(CGFloat) width andHeight: (CGFloat) height timeIsVisible: (bool) visible; |
| 45 | - (void) updateImageConstraint: (CGFloat) width andHeight: (CGFloat) height; |
| 46 | - (void) invalidateImageConstraints; |
Alexandre Lision | 0f66bd3 | 2016-01-18 11:30:45 -0500 | [diff] [blame] | 47 | |
| 48 | @end |