Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

playlist.h

00001 /*****************************************************************************
00002  * playlist.h: MacOS X interface module
00003  *****************************************************************************
00004  * Copyright (C) 2002-2005 the VideoLAN team
00005  * $Id: playlist.h 12325 2005-08-21 23:33:58Z hartman $
00006  *
00007  * Authors: Jon Lech Johansen <[email protected]>
00008  *          Derk-Jan Hartman <hartman at videolan dot org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  * 
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 /*****************************************************************************
00026  * VLCPlaylistView interface
00027  *****************************************************************************/
00028 @interface VLCPlaylistView : NSOutlineView
00029 {
00030 }
00031 
00032 @end
00033 
00034 /*****************************************************************************
00035  * VLCPlaylistCommon interface
00036  *****************************************************************************/
00037 @interface VLCPlaylistCommon : NSObject
00038 {
00039     IBOutlet id o_tc_name;
00040     IBOutlet id o_tc_author;
00041     IBOutlet id o_tc_duration;
00042     IBOutlet id o_outline_view;
00043 
00044     NSMutableDictionary *o_outline_dict;
00045     int i_current_view;
00046 }
00047 
00048 - (void)initStrings;
00049 - (playlist_item_t *)selectedPlaylistItem;
00050 - (NSOutlineView *)outlineView;
00051 
00052 @end
00053 
00054 /*****************************************************************************
00055  * VLCPlaylistWizard interface
00056  *****************************************************************************/
00057 @interface VLCPlaylistWizard : VLCPlaylistCommon
00058 {
00059 }
00060 
00061 - (IBAction)reloadOutlineView;
00062 
00063 @end
00064 
00065 /*****************************************************************************
00066  * VLCPlaylist interface
00067  *****************************************************************************/
00068 @interface VLCPlaylist : VLCPlaylistCommon
00069 {
00070     IBOutlet id o_controller;
00071     IBOutlet id o_playlist_wizard;
00072 
00073     IBOutlet id o_btn_playlist;
00074     IBOutlet id o_playlist_view;
00075     IBOutlet id o_status_field;
00076     IBOutlet id o_search_field;
00077     IBOutlet id o_random_ckb;
00078     IBOutlet id o_loop_popup;
00079     IBOutlet id o_mi_save_playlist;
00080     IBOutlet id o_ctx_menu;
00081 
00082     IBOutlet id o_mi_play;
00083     IBOutlet id o_mi_delete;
00084     IBOutlet id o_mi_info;
00085     IBOutlet id o_mi_preparse;
00086     IBOutlet id o_mi_selectall;
00087     IBOutlet id o_mi_sort_name;
00088     IBOutlet id o_mi_sort_author;
00089     IBOutlet id o_mi_recursive_expand;
00090 
00091     /* "services discovery" menu in the playlist menu */
00092     IBOutlet id o_mi_services;
00093     IBOutlet id o_mu_services;
00094 
00095     /* "services discovery" menu in the main menu */
00096     IBOutlet id o_mm_mi_services;
00097     IBOutlet id o_mm_mu_services;
00098 
00099     NSImage *o_descendingSortingImage;
00100     NSImage *o_ascendingSortingImage;
00101 
00102     NSMutableArray *o_nodes_array;
00103     NSMutableArray *o_items_array;
00104 
00105     BOOL b_selected_item_met;
00106     BOOL b_isSortDescending;
00107     id o_tc_sortColumn;
00108 }
00109 
00110 - (void)searchfieldChanged:(NSNotification *)o_notification;
00111 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
00112 
00113 - (IBAction)handlePopUp:(id)sender;
00114 - (IBAction)searchItem:(id)sender;
00115 
00116 - (void)playlistUpdated;
00117 - (void)playModeUpdated;
00118 - (void)sortNode:(int)i_mode;
00119 - (void)updateRowSelection;
00120 
00121 - (IBAction)servicesChange:(id)sender;
00122 - (IBAction)playItem:(id)sender;
00123 - (IBAction)preparseItem:(id)sender;
00124 - (IBAction)savePlaylist:(id)sender;
00125 - (IBAction)deleteItem:(id)sender;
00126 - (IBAction)selectAll:(id)sender;
00127 - (IBAction)sortNodeByName:(id)sender;
00128 - (IBAction)sortNodeByAuthor:(id)sender;
00129 - (IBAction)recursiveExpandNode:(id)sender;
00130 
00131 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
00132 - (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position inView:(int)i_view enqueue:(BOOL)b_enqueue;
00133 
00134 
00135 @end
00136 

Generated on Tue Dec 20 10:14:35 2005 for vlc-0.8.4a by  doxygen 1.4.2