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>
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.
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.
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 *****************************************************************************/
25 #ifndef _INFOPANELS_H_
26 #define _INFOPANELS_H_
37 #define setSpinBounds( spinbox ) { \
38 spinbox->setRange( 0, INT_MAX ); \
39 spinbox->setAccelerated( true ) ; \
40 spinbox->setAlignment( Qt::AlignRight ); \
41 spinbox->setSpecialValueText(""); }
44 class QTreeWidgetItem;
50 class MetaPanel: public QWidget
54 MetaPanel( QWidget *, intf_thread_t * );
57 void setInput( input_item_t * );
60 input_item_t *p_input;
61 intf_thread_t *p_intf;
63 QLineEdit *title_text;
64 QLineEdit *artist_text;
65 QLineEdit *genre_text;
66 QLineEdit *copyright_text;
67 QLineEdit *collection_text;
68 QSpinBox *seqnum_text;
69 QLineEdit *description_text;
70 QSpinBox *rating_text;
72 QLineEdit *setting_text;
73 QLineEdit *language_text;
74 QLineEdit *nowplaying_text;
75 QLineEdit *publisher_text;
80 void update( input_item_t * );
82 void editMeta( QString );
84 void uriSet( QString );
88 class ExtraMetaPanel: public QWidget
92 ExtraMetaPanel( QWidget *, intf_thread_t * );
93 virtual ~ExtraMetaPanel() {};
95 intf_thread_t *p_intf;
96 QTreeWidget *extraMetaTree;
98 void update( input_item_t * );
102 class InputStatsPanel: public QWidget
106 InputStatsPanel( QWidget *, intf_thread_t * );
107 virtual ~InputStatsPanel();
109 intf_thread_t *p_intf;
111 QTreeWidget *StatsTree;
112 QTreeWidgetItem *input;
113 QTreeWidgetItem *read_media_stat;
114 QTreeWidgetItem *input_bitrate_stat;
115 QTreeWidgetItem *demuxed_stat;
116 QTreeWidgetItem *stream_bitrate_stat;
118 QTreeWidgetItem *video;
119 QTreeWidgetItem *vdecoded_stat;
120 QTreeWidgetItem *vdisplayed_stat;
121 QTreeWidgetItem *vlost_frames_stat;
123 QTreeWidgetItem *streaming;
124 QTreeWidgetItem *send_stat;
125 QTreeWidgetItem *send_bytes_stat;
126 QTreeWidgetItem *send_bitrate_stat;
128 QTreeWidgetItem *audio;
129 QTreeWidgetItem *adecoded_stat;
130 QTreeWidgetItem *aplayed_stat;
131 QTreeWidgetItem *alost_stat;
134 void update( input_item_t * );
138 class InfoPanel: public QWidget
142 InfoPanel( QWidget *, intf_thread_t * );
143 virtual ~InfoPanel();
145 intf_thread_t *p_intf;
146 QTreeWidget *InfoTree;
148 void update( input_item_t * );