1 /*****************************************************************************
2 * infopanels.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>
40 #define setSpinBounds( spinbox ) { \
41 spinbox->setRange( 0, INT_MAX ); \
42 spinbox->setAccelerated( true ) ; \
43 spinbox->setAlignment( Qt::AlignRight ); \
44 spinbox->setSpecialValueText(""); }
47 class QTreeWidgetItem;
53 class MetaPanel: public QWidget
57 MetaPanel( QWidget *, struct intf_thread_t * );
61 void setEditMode( bool );
64 input_item_t *p_input;
65 struct intf_thread_t *p_intf;
68 QLineEdit *title_text;
69 QLineEdit *artist_text;
70 QLineEdit *genre_text;
71 QLineEdit *copyright_text;
72 QLineEdit *collection_text;
73 QLineEdit *seqnum_text;
74 QLineEdit *description_text;
75 // QSpinBox *rating_text;
77 // QLineEdit *setting_text;
78 QLineEdit *language_text;
79 QLineEdit *nowplaying_text;
80 QLineEdit *publisher_text;
81 // QLineEdit *encodedby_text;
82 CoverArtLabel *art_cover;
85 void update( input_item_t * );
92 void uriSet( const QString& );
96 class ExtraMetaPanel: public QWidget
100 ExtraMetaPanel( QWidget *, struct intf_thread_t * );
102 struct intf_thread_t *p_intf;
103 QTreeWidget *extraMetaTree;
105 void update( input_item_t * );
109 class InputStatsPanel: public QWidget
113 InputStatsPanel( QWidget *, struct intf_thread_t * );
115 struct intf_thread_t *p_intf;
117 QTreeWidget *StatsTree;
118 QTreeWidgetItem *input;
119 QTreeWidgetItem *read_media_stat;
120 QTreeWidgetItem *input_bitrate_stat;
121 QTreeWidgetItem *demuxed_stat;
122 QTreeWidgetItem *stream_bitrate_stat;
123 QTreeWidgetItem *corrupted_stat;
124 QTreeWidgetItem *discontinuity_stat;
126 QTreeWidgetItem *video;
127 QTreeWidgetItem *vdecoded_stat;
128 QTreeWidgetItem *vdisplayed_stat;
129 QTreeWidgetItem *vlost_frames_stat;
130 QTreeWidgetItem *vfps_stat;
132 QTreeWidgetItem *streaming;
133 QTreeWidgetItem *send_stat;
134 QTreeWidgetItem *send_bytes_stat;
135 QTreeWidgetItem *send_bitrate_stat;
137 QTreeWidgetItem *audio;
138 QTreeWidgetItem *adecoded_stat;
139 QTreeWidgetItem *aplayed_stat;
140 QTreeWidgetItem *alost_stat;
143 void update( input_item_t * );
147 class InfoPanel: public QWidget
151 InfoPanel( QWidget *, struct intf_thread_t * );
153 struct intf_thread_t *p_intf;
154 QTreeWidget *InfoTree;
156 void update( input_item_t * );