]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/infopanels.hpp
e7888fa9e18bbd1984ea6b67d1e63018b01cf2af
[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
44     char* GetURI();
45     char* GetName();
46
47     void OnOk();
48     void OnCancel();
49
50 private:
51     DECLARE_EVENT_TABLE();
52
53     intf_thread_t *p_intf;
54     input_item_t *p_item;
55     wxWindow *p_parent;
56
57     wxTextCtrl *uri_text;
58     wxTextCtrl *name_text;
59     wxStaticText *uri_label;
60     wxStaticText *name_label;
61
62     wxTreeCtrl *info_tree;
63     wxTreeItemId info_root;
64
65     bool b_modifiable;
66 };
67
68 class InputStatsInfoPanel: public wxPanel
69 {
70 public:
71     /* Constructor */
72     InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
73     virtual ~InputStatsInfoPanel();
74
75     void Update( input_item_t *);
76     void Clear();
77
78     void OnOk();
79     void OnCancel();
80
81 private:
82     DECLARE_EVENT_TABLE();
83
84     intf_thread_t *p_intf;
85     input_item_t *p_item;
86     wxWindow *p_parent;
87
88     wxBoxSizer *panel_sizer;
89     wxFlexGridSizer *sizer;
90
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;
97
98     wxFlexGridSizer *video_sizer;
99     wxStaticBoxSizer *video_bsizer;
100     wxStaticText *video_decoded_text;
101     wxStaticText *displayed_text;
102     wxStaticText *lost_frames_text;
103
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;
109
110     wxFlexGridSizer *audio_sizer;
111     wxStaticBoxSizer *audio_bsizer;
112     wxStaticText *audio_decoded_text;
113     wxStaticText *played_abuffers_text;
114     wxStaticText *lost_abuffers_text;
115 };
116 };
117 #endif