Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 1 | /* |
Alexandre Lision | 9fe374b | 2016-01-06 10:17:31 -0500 | [diff] [blame] | 2 | * Copyright (C) 2015-2016 Savoir-faire Linux Inc. |
Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 3 | * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 18 | */ |
Olivier Soldano | d431155 | 2017-11-20 15:09:53 -0500 | [diff] [blame] | 19 | |
Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 20 | #import <Cocoa/Cocoa.h> |
| 21 | |
Olivier Soldano | d431155 | 2017-11-20 15:09:53 -0500 | [diff] [blame] | 22 | @protocol ContextMenuDelegate; |
| 23 | @protocol ContextMenuDelegate |
Kateryna Kostiuk | 5e6ce9d | 2017-07-12 18:07:28 -0400 | [diff] [blame] | 24 | |
Olivier Soldano | d431155 | 2017-11-20 15:09:53 -0500 | [diff] [blame] | 25 | @required |
Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 26 | |
Kateryna Kostiuk | d51a325 | 2018-04-04 09:20:37 -0400 | [diff] [blame] | 27 | - (NSMenu*) contextualMenuForRow:(int) index; |
Olivier Soldano | d431155 | 2017-11-20 15:09:53 -0500 | [diff] [blame] | 28 | |
| 29 | @end |
| 30 | |
| 31 | @protocol KeyboardShortcutDelegate; |
| 32 | @protocol KeyboardShortcutDelegate |
| 33 | |
| 34 | @optional |
| 35 | |
| 36 | /** |
| 37 | * This shortcut has to respond to cmd (⌘) + a |
| 38 | */ |
| 39 | - (void) onAddShortcut; |
| 40 | |
| 41 | @end |
| 42 | |
| 43 | @interface RingTableView : NSTableView |
| 44 | |
| 45 | @property (nonatomic,weak) id <ContextMenuDelegate> contextMenuDelegate; |
| 46 | @property (nonatomic,weak) id <KeyboardShortcutDelegate> shortcutsDelegate; |
Kateryna Kostiuk | 882cbac | 2017-07-05 17:29:00 -0400 | [diff] [blame] | 47 | |
Alexandre Lision | 3b0bd33 | 2015-03-15 18:43:07 -0400 | [diff] [blame] | 48 | @end |