]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlistinfo.h
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / macosx / playlistinfo.h
1 /*****************************************************************************
2  * playlistinfo.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Benjamin Pracht <bigben at videolan dot org>
8  *          Felix Kühne <fkuehne at videolan dot org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 /*****************************************************************************
26  * VLCPlaylistInfo interface
27  *****************************************************************************/
28
29
30 @interface VLCInfo : NSObject
31 {
32     IBOutlet id o_info_window;
33     IBOutlet id o_uri_lbl;
34     IBOutlet id o_title_lbl;
35     IBOutlet id o_author_lbl;
36     IBOutlet id o_uri_txt;
37     IBOutlet id o_title_txt;
38     IBOutlet id o_author_txt;
39     IBOutlet id o_btn_ok;
40     IBOutlet id o_btn_cancel;
41     IBOutlet id o_btn_delete_group;
42     IBOutlet id o_btn_add_group;
43     IBOutlet id o_outline_view;
44  
45     IBOutlet id o_tab_view;
46
47     IBOutlet id o_collection_lbl;
48     IBOutlet id o_collection_txt;
49     IBOutlet id o_copyright_lbl;
50     IBOutlet id o_copyright_txt;
51     IBOutlet id o_date_lbl;
52     IBOutlet id o_date_txt;
53     IBOutlet id o_description_lbl;
54     IBOutlet id o_description_txt;
55     IBOutlet id o_genre_lbl;
56     IBOutlet id o_genre_txt;
57     IBOutlet id o_language_lbl;
58     IBOutlet id o_language_txt;
59     IBOutlet id o_nowPlaying_lbl;
60     IBOutlet id o_nowPlaying_txt;
61     IBOutlet id o_publisher_lbl;
62     IBOutlet id o_publisher_txt;
63     IBOutlet id o_rating_lbl;
64     IBOutlet id o_rating_txt;
65     IBOutlet id o_seqNum_lbl;
66     IBOutlet id o_seqNum_txt;
67
68     IBOutlet id o_audio_box;
69     IBOutlet id o_audio_decoded_lbl;
70     IBOutlet id o_audio_decoded_txt;
71     IBOutlet id o_demux_bitrate_lbl;
72     IBOutlet id o_demux_bitrate_txt;
73     IBOutlet id o_demux_bytes_lbl;
74     IBOutlet id o_demux_bytes_txt;
75     IBOutlet id o_displayed_lbl;
76     IBOutlet id o_displayed_txt;
77     IBOutlet id o_input_bitrate_lbl;
78     IBOutlet id o_input_bitrate_txt;
79     IBOutlet id o_input_box;
80     IBOutlet id o_lost_abuffers_lbl;
81     IBOutlet id o_lost_abuffers_txt;
82     IBOutlet id o_lost_frames_lbl;
83     IBOutlet id o_lost_frames_txt;
84     IBOutlet id o_played_abuffers_lbl;
85     IBOutlet id o_played_abuffers_txt;
86     IBOutlet id o_read_bytes_lbl;
87     IBOutlet id o_read_bytes_txt;
88     IBOutlet id o_sent_bitrate_lbl;
89     IBOutlet id o_sent_bitrate_txt;
90     IBOutlet id o_sent_bytes_lbl;
91     IBOutlet id o_sent_bytes_txt;
92     IBOutlet id o_sent_packets_lbl;
93     IBOutlet id o_sent_packets_txt;
94     IBOutlet id o_sout_box;
95     IBOutlet id o_video_box;
96     IBOutlet id o_video_decoded_lbl;
97     IBOutlet id o_video_decoded_txt;
98
99     playlist_item_t * p_item;
100     NSTimer * o_statUpdateTimer;
101 }
102
103 - (IBAction)togglePlaylistInfoPanel:(id)sender;
104 - (IBAction)toggleInfoPanel:(id)sender;
105 - (void)initPanel:(id)sender;
106 - (void)updatePanel;
107 - (IBAction)infoCancel:(id)sender;
108 - (IBAction)infoOk:(id)sender;
109 - (playlist_item_t *)getItem;
110 - (BOOL)isItemInPlaylist:(playlist_item_t *)p_item;
111
112 - (void)setMeta: (char *)meta forLabel: (id)theItem;
113 - (void)updateStatistics: (NSTimer*)theTimer;
114 @end
115
116 @interface VLCInfoTreeItem : NSObject
117 {
118     NSString *o_name;
119     NSString *o_value;
120     int i_object_id;
121     playlist_item_t * p_item;
122     VLCInfoTreeItem *o_parent;
123     NSMutableArray *o_children;
124 }
125
126 + (VLCInfoTreeItem *)rootItem;
127 - (int)numberOfChildren;
128 - (VLCInfoTreeItem *)childAtIndex:(int)i_index;
129 - (NSString *)getName;
130 - (NSString *)getValue;
131 - (void)refresh;
132
133 @end
134