]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlistinfo.h
macosx: Fix the info panel. Remove the use of maybe-freed-ptr. Make it display curren...
[vlc] / modules / gui / macosx / playlistinfo.h
1 /*****************************************************************************
2  * playlistinfo.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Benjamin Pracht <bigben at videolan dot org>
8  *          Felix Paul 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 @class VLCInfoTreeItem;
30
31 @interface VLCInfo : NSObject
32 {
33     IBOutlet id o_info_window;
34     IBOutlet id o_uri_lbl;
35     IBOutlet id o_title_lbl;
36     IBOutlet id o_author_lbl;
37     IBOutlet id o_uri_txt;
38     IBOutlet id o_title_txt;
39     IBOutlet id o_author_txt;
40     IBOutlet id o_outline_view;
41
42     IBOutlet id o_tab_view;
43
44     IBOutlet id o_collection_lbl;
45     IBOutlet id o_collection_txt;
46     IBOutlet id o_copyright_lbl;
47     IBOutlet id o_copyright_txt;
48     IBOutlet id o_date_lbl;
49     IBOutlet id o_date_txt;
50     IBOutlet id o_description_lbl;
51     IBOutlet id o_description_txt;
52     IBOutlet id o_genre_lbl;
53     IBOutlet id o_genre_txt;
54     IBOutlet id o_language_lbl;
55     IBOutlet id o_language_txt;
56     IBOutlet id o_nowPlaying_lbl;
57     IBOutlet id o_nowPlaying_txt;
58     IBOutlet id o_publisher_lbl;
59     IBOutlet id o_publisher_txt;
60     IBOutlet id o_seqNum_lbl;
61     IBOutlet id o_seqNum_txt;
62     IBOutlet id o_image_well;
63     IBOutlet id o_saveMetaData_btn;
64
65     IBOutlet id o_audio_box;
66     IBOutlet id o_audio_decoded_lbl;
67     IBOutlet id o_audio_decoded_txt;
68     IBOutlet id o_demux_bitrate_lbl;
69     IBOutlet id o_demux_bitrate_txt;
70     IBOutlet id o_demux_bytes_lbl;
71     IBOutlet id o_demux_bytes_txt;
72     IBOutlet id o_displayed_lbl;
73     IBOutlet id o_displayed_txt;
74     IBOutlet id o_input_bitrate_lbl;
75     IBOutlet id o_input_bitrate_txt;
76     IBOutlet id o_input_box;
77     IBOutlet id o_lost_abuffers_lbl;
78     IBOutlet id o_lost_abuffers_txt;
79     IBOutlet id o_lost_frames_lbl;
80     IBOutlet id o_lost_frames_txt;
81     IBOutlet id o_played_abuffers_lbl;
82     IBOutlet id o_played_abuffers_txt;
83     IBOutlet id o_read_bytes_lbl;
84     IBOutlet id o_read_bytes_txt;
85     IBOutlet id o_sent_bitrate_lbl;
86     IBOutlet id o_sent_bitrate_txt;
87     IBOutlet id o_sent_bytes_lbl;
88     IBOutlet id o_sent_bytes_txt;
89     IBOutlet id o_sent_packets_lbl;
90     IBOutlet id o_sent_packets_txt;
91     IBOutlet id o_sout_box;
92     IBOutlet id o_video_box;
93     IBOutlet id o_video_decoded_lbl;
94     IBOutlet id o_video_decoded_txt;
95         IBOutlet id o_fps_lbl;
96         IBOutlet id o_fps_txt;
97
98     VLCInfoTreeItem * rootItem;
99
100     input_item_t * p_item;
101     NSTimer * o_statUpdateTimer;
102 }
103
104 - (void)initPanel;
105 - (IBAction)metaFieldChanged:(id)sender;
106 - (IBAction)saveMetaData:(id)sender;
107 - (void)initMediaPanelStats;
108 - (void)updatePanelWithItem:(input_item_t *)_p_item;
109 - (input_item_t *)item;
110 - (void)setMeta: (char *)meta forLabel: (id)theItem;
111 - (void)updateStatistics: (NSTimer*)theTimer;
112
113 + (VLCInfo *)sharedInstance;
114 @end
115
116 @interface VLCInfoTreeItem : NSObject
117 {
118     NSString *o_name;
119     NSString *o_value;
120     int i_object_id;
121     input_item_t * p_item;
122     VLCInfoTreeItem *o_parent;
123     NSMutableArray *o_children;
124 }
125
126 - (int)numberOfChildren;
127 - (VLCInfoTreeItem *)childAtIndex:(int)i_index;
128 - (NSString *)name;
129 - (NSString *)value;
130 - (void)refresh;
131
132 @end
133