1 /*****************************************************************************
2 * infopanels.hpp: Information panels (statistics, general info, ...)
3 *****************************************************************************
4 * Copyright (C) 1999-2005 the VideoLAN team
5 * $Id: iteminfo.hpp 13905 2006-01-12 23:10:04Z dionoea $
7 * Authors: Clément Stenac <zorglub@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 _WXVLC_INFOPANELS_H_
25 #define _WXVLC_INFOPANELS_H_
27 #include "wxwidgets.hpp"
29 #include <wx/treectrl.h>
33 class ItemInfoPanel: public wxPanel
37 ItemInfoPanel( intf_thread_t *p_intf, wxWindow *p_parent, bool );
38 virtual ~ItemInfoPanel();
40 void Update( input_item_t *);
51 DECLARE_EVENT_TABLE();
53 intf_thread_t *p_intf;
58 wxTextCtrl *name_text;
59 wxStaticText *uri_label;
60 wxStaticText *name_label;
62 wxTreeCtrl *info_tree;
63 wxTreeItemId info_root;
68 class InputStatsInfoPanel: public wxPanel
72 InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
73 virtual ~InputStatsInfoPanel();
75 void Update( input_item_t *);
82 DECLARE_EVENT_TABLE();
84 intf_thread_t *p_intf;
88 wxBoxSizer *panel_sizer;
89 wxFlexGridSizer *sizer;
91 wxFlexGridSizer *input_sizer;
92 wxStaticBoxSizer *input_bsizer;
93 wxStaticText *read_bytes_text;
94 wxStaticText *input_bitrate_text;
95 wxStaticText *demux_bytes_text;
96 wxStaticText *demux_bitrate_text;
98 wxFlexGridSizer *video_sizer;
99 wxStaticBoxSizer *video_bsizer;
100 wxStaticText *video_decoded_text;
101 wxStaticText *displayed_text;
102 wxStaticText *lost_frames_text;
104 wxFlexGridSizer *sout_sizer;
105 wxStaticBoxSizer *sout_bsizer;
106 wxStaticText *sout_sent_packets_text;
107 wxStaticText *sout_sent_bytes_text;
108 wxStaticText *sout_send_bitrate_text;
110 wxFlexGridSizer *audio_sizer;
111 wxStaticBoxSizer *audio_bsizer;
112 wxStaticText *audio_decoded_text;
113 wxStaticText *played_abuffers_text;
114 wxStaticText *lost_abuffers_text;