1 /*****************************************************************************
2 * infopanels.hpp : Panels for the information dialogs
3 ****************************************************************************
4 * Copyright (C) 2006 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@videolan.org>
8 * Jean-Baptiste Kempf <jb@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _INFOPANELS_H_
25 #define _INFOPANELS_H_
35 class QTreeWidgetItem;
37 class MetaPanel: public QWidget
41 MetaPanel( QWidget *, intf_thread_t * );
44 intf_thread_t *p_intf;
49 QLabel *copyright_text;
50 QLabel *collection_text;
52 QLabel *description_text;
56 QLabel *language_text;
57 QLabel *nowplaying_text;
58 QLabel *publisher_text;
61 void update( input_item_t * );
66 class InputStatsPanel: public QWidget
70 InputStatsPanel( QWidget *, intf_thread_t * );
71 virtual ~InputStatsPanel();
73 intf_thread_t *p_intf;
75 QTreeWidget *StatsTree;
76 QTreeWidgetItem *input;
77 QTreeWidgetItem *read_media_stat;
78 QTreeWidgetItem *input_bitrate_stat;
79 QTreeWidgetItem *demuxed_stat;
80 QTreeWidgetItem *stream_bitrate_stat;
82 QTreeWidgetItem *video;
83 QTreeWidgetItem *vdecoded_stat;
84 QTreeWidgetItem *vdisplayed_stat;
85 QTreeWidgetItem *vlost_frames_stat;
87 QTreeWidgetItem *streaming;
88 QTreeWidgetItem *send_stat;
89 QTreeWidgetItem *send_bytes_stat;
90 QTreeWidgetItem *send_bitrate_stat;
92 QTreeWidgetItem *audio;
93 QTreeWidgetItem *adecoded_stat;
94 QTreeWidgetItem *aplayed_stat;
95 QTreeWidgetItem *alost_stat;
98 void update( input_item_t * );
102 class InfoPanel: public QWidget
106 InfoPanel( QWidget *, intf_thread_t * );
107 virtual ~InfoPanel();
109 intf_thread_t *p_intf;
110 QTreeWidget *InfoTree;
112 void update( input_item_t * );
116 class InfoTab: public QTabWidget
120 InfoTab( QWidget *, intf_thread_t *, bool );
122 void update( input_item_t *, bool, bool );
126 intf_thread_t *p_intf;
127 InputStatsPanel *ISP;