]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/controls.h
* Patch from Basil Achermann to handle esc and space keyboard events in VLCControl...
[vlc] / modules / gui / macosx / controls.h
index 19ae587b185e9150a4249b5b35d0faf7ba02b87c..f7a190cb60b931925888fcc7805d7a6674637472 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
- * controls.h: MacOS X interface plugin
+ * controls.h: MacOS X interface module
  *****************************************************************************
- * Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.h,v 1.4 2003/05/08 01:16:57 hartman Exp $
+ * Copyright (C) 2002-2005 the VideoLAN team
+ * $Id$
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -20,7 +20,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  *****************************************************************************/
 @interface VLCControls : NSObject
 {
-    IBOutlet id o_open;
     IBOutlet id o_main;
 
+    IBOutlet id o_btn_fullscreen;
     IBOutlet id o_volumeslider;
+
+    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;
 }
 
 - (IBAction)play:(id)sender;
@@ -41,6 +50,8 @@
 
 - (IBAction)prev:(id)sender;
 - (IBAction)next:(id)sender;
+- (IBAction)random:(id)sender;
+- (IBAction)repeat:(id)sender;
 - (IBAction)loop:(id)sender;
 
 - (IBAction)forward:(id)sender;
 - (IBAction)volumeDown:(id)sender;
 - (IBAction)mute:(id)sender;
 - (IBAction)volumeSliderUpdated:(id)sender;
-- (void)updateVolumeSlider;
 
 - (IBAction)windowAction:(id)sender;
-- (IBAction)deinterlace:(id)sender;
+- (BOOL)keyEvent:(NSEvent *)o_event;
 
+- (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;
 - (IBAction)toggleVar:(id)sender;
+- (int)toggleVarThread:(id)_o_data;
+
+- (IBAction)goToSpecificTime:(id)sender;
+
+@end
+
+/*****************************************************************************
+ * VLCMenuExt interface 
+ *****************************************************************************
+ * 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
+
+/*****************************************************************************
+ * VLCTimeField interface 
+ *****************************************************************************
+ * we need the implementation to catch our click-event in the controller window
+ *****************************************************************************/
+
+@interface VLCTimeField : NSTextField
+{
+}
+@end
 
-@end
\ No newline at end of file