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 *);
47 DECLARE_EVENT_TABLE();
49 intf_thread_t *p_intf;
54 wxTextCtrl *name_text;
55 wxStaticText *uri_label;
56 wxStaticText *name_label;
58 wxTreeCtrl *info_tree;
59 wxTreeItemId info_root;
64 class InputStatsInfoPanel: public wxPanel
68 InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
69 virtual ~InputStatsInfoPanel();
71 void Update( input_item_t *);
78 DECLARE_EVENT_TABLE();
80 intf_thread_t *p_intf;
84 wxBoxSizer *panel_sizer;
85 wxFlexGridSizer *sizer;
87 wxFlexGridSizer *input_sizer;
88 wxStaticBoxSizer *input_bsizer;
90 wxStaticText *read_bytes_text;
91 wxStaticText *input_bitrate_text;
92 wxStaticText *demux_bytes_text;
93 wxStaticText *demux_bitrate_text;
95 wxFlexGridSizer *video_sizer;
96 wxStaticBoxSizer *video_bsizer;
98 wxStaticText *video_decoded_text;
99 wxStaticText *displayed_text;
100 wxStaticText *lost_frames_text;