]> git.sesse.net Git - vlc/blob - modules/gui/macosx/AddonManager.h
macosx: addons manager: restructure UI and fix some problems
[vlc] / modules / gui / macosx / AddonManager.h
1 /*****************************************************************************
2  * AddonManager.h: Addons manager for the Mac
3  ****************************************************************************
4  * Copyright (C) 2014 VideoLAN and authors
5  * Author:       Felix Paul Kühne <fkuehne # videolan.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
20  *****************************************************************************/
21
22 #import <Cocoa/Cocoa.h>
23
24 @interface VLCAddonManager : NSObject <NSTableViewDataSource, NSTableViewDelegate>
25 {
26     IBOutlet NSWindow *_window;
27     IBOutlet NSPopUpButton *_typeSwitcher;
28     IBOutlet NSButton *_localAddonsOnlyCheckbox;
29     IBOutlet NSButton *_downloadCatalogButton;
30
31     IBOutlet NSTableView *_addonsTable;
32     IBOutlet NSProgressIndicator *_spinner;
33     IBOutlet NSTextField *_name;
34     IBOutlet NSTextField *_author;
35     IBOutlet NSTextField *_version;
36     IBOutlet NSTextView *_description;
37     IBOutlet NSButton *_installButton;
38
39 }
40 + (VLCAddonManager *)sharedInstance;
41
42 - (void)showWindow;
43 - (IBAction)switchType:(id)sender;
44 - (IBAction)toggleLocalCheckbox:(id)sender;
45 - (IBAction)downloadCatalog:(id)sender;
46 - (IBAction)installSelection:(id)sender;
47 - (IBAction)uninstallSelection:(id)sender;
48
49 @end