controls.h 4.37 KB
Newer Older
hartman's avatar
hartman committed
1
/*****************************************************************************
2
 * controls.h: MacOS X interface module
hartman's avatar
hartman committed
3
 *****************************************************************************
4
 * Copyright (C) 2002-2006 the VideoLAN team
5
 * $Id$
hartman's avatar
hartman committed
6 7 8 9
 *
 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
 *          Christophe Massiot <massiot@via.ecp.fr>
 *          Derk-Jan Hartman <thedj@users.sourceforge.net>
10
 *          Felix Kühne <fkuehne at videolan org>
hartman's avatar
hartman committed
11 12 13 14 15
 *
 * 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.
16
 *
hartman's avatar
hartman committed
17 18 19 20 21 22 23
 * 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
dionoea's avatar
dionoea committed
24
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
hartman's avatar
hartman committed
25 26
 *****************************************************************************/

27 28
#import "fspanel.h"

hartman's avatar
hartman committed
29
/*****************************************************************************
30
 * VLCControls interface
hartman's avatar
hartman committed
31 32 33 34 35
 *****************************************************************************/
@interface VLCControls : NSObject
{
    IBOutlet id o_main;

36
    IBOutlet id o_btn_fullscreen;
hartman's avatar
hartman committed
37
    IBOutlet id o_volumeslider;
38

39 40 41
    IBOutlet id o_btn_shuffle;
    IBOutlet id o_btn_addNode;
    IBOutlet id o_btn_repeat;
42 43 44 45 46 47 48 49 50

    IBOutlet id o_specificTime_cancel_btn;
    IBOutlet id o_specificTime_enter_fld;
    IBOutlet id o_specificTime_goTo_lbl;
    IBOutlet id o_specificTime_ok_btn;
    IBOutlet id o_specificTime_win;
    IBOutlet id o_specificTime_sec_lbl;
    IBOutlet id o_specificTime_stepper;
    IBOutlet id o_specificTime_mi;
51

52
    VLCFSPanel *o_fs_panel;
hartman's avatar
hartman committed
53 54 55 56 57 58 59 60 61
}

- (IBAction)play:(id)sender;
- (IBAction)stop:(id)sender;
- (IBAction)faster:(id)sender;
- (IBAction)slower:(id)sender;

- (IBAction)prev:(id)sender;
- (IBAction)next:(id)sender;
hartman's avatar
hartman committed
62 63
- (IBAction)random:(id)sender;
- (IBAction)repeat:(id)sender;
hartman's avatar
hartman committed
64
- (IBAction)loop:(id)sender;
65 66 67 68 69 70 71
- (IBAction)repeatButtonAction:(id)sender;

/* the three ugly helpers again */
- (void)repeatOne;
- (void)repeatAll;
- (void)repeatOff;
- (void)shuffle;
hartman's avatar
hartman committed
72 73 74 75 76 77 78 79 80

- (IBAction)forward:(id)sender;
- (IBAction)backward:(id)sender;

- (IBAction)volumeUp:(id)sender;
- (IBAction)volumeDown:(id)sender;
- (IBAction)mute:(id)sender;
- (IBAction)volumeSliderUpdated:(id)sender;

81 82 83
- (IBAction)showPosition: (id)sender;
- (IBAction)toogleFullscreen:(id)sender;
- (BOOL) isFullscreen;
84
- (IBAction)windowAction:(id)sender;
85
- (BOOL)keyEvent:(NSEvent *)o_event;
86
- (void)scrollWheel:(NSEvent *)theEvent;
hartman's avatar
hartman committed
87

hartman's avatar
* ALL:  
hartman committed
88 89 90 91 92 93 94 95 96
- (void)setupVarMenuItem:(NSMenuItem *)o_mi
                    target:(vlc_object_t *)p_object
                    var:(const char *)psz_variable
                    selector:(SEL)pf_callback;
- (void)setupVarMenu:(NSMenu *)o_menu
                    forMenuItem: (NSMenuItem *)o_parent
                    target:(vlc_object_t *)p_object
                    var:(const char *)psz_variable
                    selector:(SEL)pf_callback;
hartman's avatar
hartman committed
97
- (IBAction)toggleVar:(id)sender;
98
- (int)toggleVarThread:(id)_o_data;
hartman's avatar
hartman committed
99

100 101
- (IBAction)goToSpecificTime:(id)sender;

102 103
- (id)getFSPanel;

hartman's avatar
* ALL:  
hartman committed
104 105 106
@end

/*****************************************************************************
107
 * VLCMenuExt interface
hartman's avatar
* ALL:  
hartman committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
 *****************************************************************************
 * This holds our data for autogenerated menus
 *****************************************************************************/
@interface VLCMenuExt : NSObject
{
    char *psz_name;
    int i_object_id;
    vlc_value_t value;
    int i_type;
}

- (id)initWithVar: (const char *)_psz_name Object: (int)i_id
        Value: (vlc_value_t)val ofType: (int)_i_type;
- (char *)name;
- (int)objectID;
- (vlc_value_t)value;
- (int)type;

@end
127 128

/*****************************************************************************
129
 * VLCTimeField interface
130 131 132 133 134 135 136 137 138
 *****************************************************************************
 * we need the implementation to catch our click-event in the controller window
 *****************************************************************************/

@interface VLCTimeField : NSTextField
{
}
@end