VLCBookmarksWindowController.h 2.33 KB
Newer Older
1
/*****************************************************************************
2
 * VLCBookmarksWindowController.h: MacOS X Bookmarks window
3
 *****************************************************************************
4
 * Copyright (C) 2005, 2007, 2015 VLC authors and VideoLAN
5 6
 * $Id$
 *
7
 * Authors: Felix Kühne <fkuehne at videolan dot org>
8 9 10 11 12 13 14 15 16 17 18 19 20
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
Antoine Cellerier's avatar
Antoine Cellerier committed
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 23 24
 *****************************************************************************/

#import <Cocoa/Cocoa.h>
25
#import "VLCMain.h"
26
#import <vlc_common.h>
27

28
@interface VLCBookmarksWindowController : NSWindowController
29

30 31 32 33 34 35 36 37
/* main window */
@property (readwrite, weak) IBOutlet NSButton *addButton;
@property (readwrite, weak) IBOutlet NSButton *clearButton;
@property (readwrite, weak) IBOutlet NSButton *editButton;
@property (readwrite, weak) IBOutlet NSButton *removeButton;
@property (readwrite, weak) IBOutlet NSTableView *dataTable;

/* edit window */
38
@property (readwrite) IBOutlet NSWindow *editBookmarksWindow;
39 40 41 42 43 44 45
@property (readwrite, weak) IBOutlet NSButton *editOKButton;
@property (readwrite, weak) IBOutlet NSButton *editCancelButton;
@property (readwrite, weak) IBOutlet NSTextField *editNameLabel;
@property (readwrite, weak) IBOutlet NSTextField *editTimeLabel;
@property (readwrite, weak) IBOutlet NSTextField *editNameTextField;
@property (readwrite, weak) IBOutlet NSTextField *editTimeTextField;

46
- (void)updateCocoaWindowLevel:(NSInteger)i_level;
47
- (IBAction)toggleWindow:(id)sender;
48

49 50 51 52 53 54 55 56 57 58
- (IBAction)add:(id)sender;
- (IBAction)clear:(id)sender;
- (IBAction)edit:(id)sender;
- (IBAction)remove:(id)sender;
- (IBAction)goToBookmark:(id)sender;

- (IBAction)edit_cancel:(id)sender;
- (IBAction)edit_ok:(id)sender;

@end