]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/infopanels.hpp
Audio - Refs:#473
[vlc] / modules / gui / wxwidgets / dialogs / infopanels.hpp
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 $
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 #ifndef _WXVLC_INFOPANELS_H_
25 #define _WXVLC_INFOPANELS_H_
26
27 #include "wxwidgets.hpp"
28
29 #include <wx/treectrl.h>
30
31 namespace wxvlc
32 {
33 class ItemInfoPanel: public wxPanel
34 {
35 public:
36     /* Constructor */
37     ItemInfoPanel( intf_thread_t *p_intf, wxWindow *p_parent, bool );
38     virtual ~ItemInfoPanel();
39
40     void Update( input_item_t *);
41     void Clear();
42
43     void OnOk();
44     void OnCancel();
45
46 private:
47     DECLARE_EVENT_TABLE();
48
49     intf_thread_t *p_intf;
50     input_item_t *p_item;
51     wxWindow *p_parent;
52
53     wxTextCtrl *uri_text;
54     wxTextCtrl *name_text;
55     wxStaticText *uri_label;
56     wxStaticText *name_label;
57
58     wxTreeCtrl *info_tree;
59     wxTreeItemId info_root;
60
61     bool b_modifiable;
62 };
63
64 class InputStatsInfoPanel: public wxPanel
65 {
66 public:
67     /* Constructor */
68     InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
69     virtual ~InputStatsInfoPanel();
70
71     void Update( input_item_t *);
72     void Clear();
73
74     void OnOk();
75     void OnCancel();
76
77 private:
78     DECLARE_EVENT_TABLE();
79
80     intf_thread_t *p_intf;
81     input_item_t *p_item;
82     wxWindow *p_parent;
83
84     wxBoxSizer *panel_sizer;
85     wxFlexGridSizer *sizer;
86
87     wxFlexGridSizer *input_sizer;
88     wxStaticBoxSizer *input_bsizer;
89     wxStaticText *read_bytes_text;
90     wxStaticText *input_bitrate_text;
91     wxStaticText *demux_bytes_text;
92     wxStaticText *demux_bitrate_text;
93
94     wxFlexGridSizer *video_sizer;
95     wxStaticBoxSizer *video_bsizer;
96     wxStaticText *video_decoded_text;
97     wxStaticText *displayed_text;
98     wxStaticText *lost_frames_text;
99
100     wxFlexGridSizer *audio_sizer;
101     wxStaticBoxSizer *audio_bsizer;
102     wxStaticText *audio_decoded_text;
103     wxStaticText *played_abuffers_text;
104     wxStaticText *lost_abuffers_text;
105 };
106 };
107 #endif