Commit f5b39d26 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix the state of the playlist and fullscreen button.

parent f0e843fd
......@@ -42,7 +42,12 @@
};
CLASS = VLCControls;
LANGUAGE = ObjC;
OUTLETS = {"o_main" = id; "o_open" = id; "o_volumeslider" = id; };
OUTLETS = {
"o_btn_fullscreen" = id;
"o_main" = id;
"o_open" = id;
"o_volumeslider" = id;
};
SUPERCLASS = NSObject;
},
{
......@@ -73,7 +78,6 @@
"o_btn_fullscreen" = id;
"o_btn_next" = id;
"o_btn_play" = id;
"o_btn_playlist" = id;
"o_btn_prev" = id;
"o_btn_rewind" = id;
"o_btn_stop" = id;
......@@ -331,6 +335,7 @@
CLASS = VLCPlaylist;
LANGUAGE = ObjC;
OUTLETS = {
"o_btn_playlist" = id;
"o_ctx_menu" = id;
"o_loop_ckb" = id;
"o_mi_delete" = id;
......
......@@ -19,9 +19,9 @@
<array/>
<key>IBOpenObjects</key>
<array>
<integer>1647</integer>
<integer>21</integer>
<integer>1617</integer>
<integer>1647</integer>
</array>
<key>IBSystem Version</key>
<string>7C107</string>
......
......@@ -2,7 +2,7 @@
* controls.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: controls.h,v 1.7 2003/09/20 19:37:53 hartman Exp $
* $Id: controls.h,v 1.8 2003/12/11 19:34:47 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
......@@ -31,6 +31,7 @@
IBOutlet id o_open;
IBOutlet id o_main;
IBOutlet id o_btn_fullscreen;
IBOutlet id o_volumeslider;
}
......
......@@ -2,7 +2,7 @@
* controls.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: controls.m,v 1.57 2003/12/08 19:50:22 gbazin Exp $
* $Id: controls.m,v 1.58 2003/12/11 19:34:47 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
......@@ -356,7 +356,10 @@
[o_window performZoom:self];
}
else
{
[o_btn_fullscreen setState: ![o_window isFullscreen]];
[o_window toggleFullscreen];
}
break;
}
}
......
......@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.h,v 1.50 2003/12/11 16:00:09 hartman Exp $
* $Id: intf.h,v 1.51 2003/12/11 19:34:47 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
......@@ -100,7 +100,6 @@ struct intf_sys_t
float f_slider_old; /* old slider val */
IBOutlet id o_volumeslider; /* volume slider */
IBOutlet id o_btn_playlist; /* btn playlist */
IBOutlet id o_btn_prev; /* btn previous */
IBOutlet id o_btn_rewind; /* btn rewind */
IBOutlet id o_btn_play; /* btn play */
......
......@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.104 2003/12/11 16:00:09 hartman Exp $
* $Id: intf.m,v 1.105 2003/12/11 19:34:47 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
......@@ -432,7 +432,6 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
[o_window setTitle: _NS("VLC - Controller")];
/* button controls */
[o_btn_playlist setToolTip: _NS("Playlist")];
[o_btn_prev setToolTip: _NS("Previous")];
[o_btn_rewind setToolTip: _NS("Rewind")];
[o_btn_play setToolTip: _NS("Play")];
......
......@@ -2,7 +2,7 @@
* playlist.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.h,v 1.15 2003/11/17 23:36:12 bigben Exp $
* $Id: playlist.h,v 1.16 2003/12/11 19:34:46 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
......@@ -39,6 +39,7 @@
int i_moveRow;
IBOutlet id o_window;
IBOutlet id o_btn_playlist;
IBOutlet id o_table_view;
IBOutlet id o_status_field;
......@@ -60,6 +61,7 @@
}
- (void)initStrings;
- (NSMenu *)menuForEvent:(NSEvent *)o_event;
- (IBAction)toggleWindow:(id)sender;
......
......@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.m,v 1.47 2003/12/10 12:57:12 bigben Exp $
* $Id: playlist.m,v 1.48 2003/12/11 19:34:46 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
......@@ -133,7 +133,11 @@
[NSArray arrayWithObjects: NSFilenamesPboardType, nil]];
[o_window setExcludedFromWindowsMenu: TRUE];
[self initStrings];
}
- (void)initStrings
{
[o_window setTitle: _NS("Playlist")];
[o_mi_save_playlist setTitle: _NS("Save Playlist...")];
[o_mi_play setTitle: _NS("Play")];
......@@ -145,6 +149,7 @@
[o_loop_ckb setTitle: _NS("Repeat Playlist")];
[o_repeat_ckb setTitle: _NS("Repeat Item")];
[o_search_button setTitle: _NS("Search")];
[o_btn_playlist setToolTip: _NS("Playlist")];
}
- (BOOL)tableView:(NSTableView *)o_tv
......@@ -178,10 +183,12 @@
if( [o_window isVisible] )
{
[o_window orderOut:sender];
[o_btn_playlist setState:NSOffState];
}
else
{
[o_window makeKeyAndOrderFront:sender];
[o_btn_playlist setState:NSOnState];
}
}
......@@ -599,5 +606,11 @@
[self updateRowSelection];
}
/* Delegate method of NSWindow */
- (void)windowWillClose:(NSNotification *)aNotification
{
[o_btn_playlist setState: NSOffState];
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment