blob: c49f7c17793e572473d2847e85196a65068afe46 [file] [log] [blame]
Alexandre Lision2db8f472015-07-22 15:05:46 -04001/*
Alexandre Lision9fe374b2016-01-06 10:17:31 -05002 * Copyright (C) 2015-2016 Savoir-faire Linux Inc.
Alexandre Lision2db8f472015-07-22 15:05:46 -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 Lision2db8f472015-07-22 15:05:46 -040018 */
19
20#import <Cocoa/Cocoa.h>
21
22@protocol ContextMenuDelegate;
23@protocol ContextMenuDelegate
24
25@required
26
Alexandre Lision12946a72016-03-08 13:39:34 -050027- (NSMenu*) contextualMenuForIndex:(NSTreeNode*) path;
Alexandre Lision2db8f472015-07-22 15:05:46 -040028
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 RingOutlineView : NSOutlineView
44
45@property (nonatomic,weak) id <ContextMenuDelegate> contextMenuDelegate;
46@property (nonatomic,weak) id <KeyboardShortcutDelegate> shortcutsDelegate;
47
48@end