1 /*****************************************************************************
2 * info_panels.hpp : Panels for the information dialogs
3 ****************************************************************************
4 * Copyright (C) 2006-2007 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@videolan.org>
8 * Jean-Baptiste Kempf <jb@videolan.org>
9 * Ilkka Ollakka <ileoo@videolan.org>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 *****************************************************************************/
26 #ifndef _INFOPANELS_H_
27 #define _INFOPANELS_H_
33 #include <vlc_common.h>
37 class QTreeWidgetItem;
46 class MetaPanel: public QWidget
50 MetaPanel( QWidget *, struct intf_thread_t * );
54 void setEditMode( bool );
57 input_item_t *p_input;
58 struct intf_thread_t *p_intf;
61 QLineEdit *title_text;
62 QLineEdit *artist_text;
63 QLineEdit *genre_text;
64 QLineEdit *copyright_text;
65 QLineEdit *collection_text;
66 QLineEdit *seqnum_text;
67 QLineEdit *seqtot_text;
69 QTextEdit *description_text;
70 // QSpinBox *rating_text;
72 // QLineEdit *setting_text;
73 QLineEdit *language_text;
74 QLineEdit *nowplaying_text;
75 QLineEdit *publisher_text;
76 QLineEdit *encodedby_text;
77 CoverArtLabel *art_cover;
82 QPushButton *fingerprintButton;
85 void update( input_item_t * );
88 void fingerprintUpdate( input_item_t * );
94 void uriSet( const QString& );
98 class ExtraMetaPanel: public QWidget
102 ExtraMetaPanel( QWidget * );
104 QTreeWidget *extraMetaTree;
106 void update( input_item_t * );
110 class InputStatsPanel: public QWidget
114 InputStatsPanel( QWidget * );
116 virtual void hideEvent( QHideEvent * );
118 QTreeWidget *StatsTree;
119 QTreeWidgetItem *input;
120 QTreeWidgetItem *read_media_stat;
121 QTreeWidgetItem *input_bitrate_stat;
122 QTreeWidgetItem *input_bitrate_graph;
123 QTreeWidgetItem *demuxed_stat;
124 QTreeWidgetItem *stream_bitrate_stat;
125 QTreeWidgetItem *corrupted_stat;
126 QTreeWidgetItem *discontinuity_stat;
128 QTreeWidgetItem *video;
129 QTreeWidgetItem *vdecoded_stat;
130 QTreeWidgetItem *vdisplayed_stat;
131 QTreeWidgetItem *vlost_frames_stat;
132 QTreeWidgetItem *vfps_stat;
134 QTreeWidgetItem *streaming;
135 QTreeWidgetItem *send_stat;
136 QTreeWidgetItem *send_bytes_stat;
137 QTreeWidgetItem *send_bitrate_stat;
139 QTreeWidgetItem *audio;
140 QTreeWidgetItem *adecoded_stat;
141 QTreeWidgetItem *aplayed_stat;
142 QTreeWidgetItem *alost_stat;
144 VLCStatsView *statsView;
146 void update( input_item_t * );
150 class InfoPanel: public QWidget
154 InfoPanel( QWidget * );
156 QTreeWidget *InfoTree;
158 void update( input_item_t * );