blob: 230337bdc58b0208c02b61452cb3c7479368c95c [file] [log] [blame]
Alexandre Lision3b0bd332015-03-15 18:43:07 -04001/*
Alexandre Lision9fe374b2016-01-06 10:17:31 -05002 * Copyright (C) 2015-2016 Savoir-faire Linux Inc.
Alexandre Lision3b0bd332015-03-15 18:43:07 -04003 * 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 Lision3b0bd332015-03-15 18:43:07 -040018 */
Olivier Soldanod4311552017-11-20 15:09:53 -050019
Alexandre Lision3b0bd332015-03-15 18:43:07 -040020#import <Cocoa/Cocoa.h>
21
Olivier Soldanod4311552017-11-20 15:09:53 -050022@protocol ContextMenuDelegate;
23@protocol ContextMenuDelegate
Kateryna Kostiuk5e6ce9d2017-07-12 18:07:28 -040024
Olivier Soldanod4311552017-11-20 15:09:53 -050025@required
Alexandre Lision3b0bd332015-03-15 18:43:07 -040026
Kateryna Kostiukd51a3252018-04-04 09:20:37 -040027- (NSMenu*) contextualMenuForRow:(int) index;
Olivier Soldanod4311552017-11-20 15:09:53 -050028
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 Kostiuk882cbac2017-07-05 17:29:00 -040047
Alexandre Lision3b0bd332015-03-15 18:43:07 -040048@end