infopanels.hpp 3.98 KB
Newer Older
zorglub's avatar
zorglub committed
1
2
3
4
/*****************************************************************************
 * infopanels.hpp: Information panels (statistics, general info, ...)
 *****************************************************************************
 * Copyright (C) 1999-2005 the VideoLAN team
Christophe Mutricy's avatar
Christophe Mutricy committed
5
 * $Id$
zorglub's avatar
zorglub committed
6
 *
7
 * Authors: Clément Stenac <zorglub@videolan.org>
zorglub's avatar
zorglub committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef _WXVLC_INFOPANELS_H_
#define _WXVLC_INFOPANELS_H_

#include "wxwidgets.hpp"

#include <wx/treectrl.h>

namespace wxvlc
{
zorglub's avatar
zorglub committed
33
class MetaDataPanel: public wxPanel
zorglub's avatar
zorglub committed
34
35
36
{
public:
    /* Constructor */
zorglub's avatar
zorglub committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
    MetaDataPanel( intf_thread_t *p_intf, wxWindow *p_parent, bool );
    virtual ~MetaDataPanel();

    void Update( input_item_t *);
    void Clear();

    char* GetURI();
    char* GetName();

    void OnOk();
    void OnCancel();

private:
    DECLARE_EVENT_TABLE();

    intf_thread_t *p_intf;
    input_item_t *p_item;
    wxWindow *p_parent;

    wxTextCtrl *uri_text;
    wxTextCtrl *name_text;
    wxStaticText *uri_label;
    wxStaticText *name_label;

    wxStaticText *artist_text;
    wxStaticText *genre_text;
    wxStaticText *copyright_text;
    wxStaticText *collection_text;
    wxStaticText *seqnum_text;
    wxStaticText *description_text;
    wxStaticText *rating_text;
    wxStaticText *date_text;
    wxStaticText *setting_text;
    wxStaticText *language_text;
    wxStaticText *nowplaying_text;
    wxStaticText *publisher_text;

    bool b_modifiable;
};


class AdvancedInfoPanel: public wxPanel
{
public:
    /* Constructor */
    AdvancedInfoPanel( intf_thread_t *p_intf, wxWindow *p_parent );
    virtual ~AdvancedInfoPanel();
zorglub's avatar
zorglub committed
84
85
86
87

    void Update( input_item_t *);
    void Clear();

88
89
90
91

    char* GetURI();
    char* GetName();

zorglub's avatar
zorglub committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
    void OnOk();
    void OnCancel();

private:
    DECLARE_EVENT_TABLE();

    intf_thread_t *p_intf;
    input_item_t *p_item;
    wxWindow *p_parent;

    wxTextCtrl *uri_text;
    wxTextCtrl *name_text;
    wxStaticText *uri_label;
    wxStaticText *name_label;

    wxTreeCtrl *info_tree;
    wxTreeItemId info_root;

    bool b_modifiable;
};

class InputStatsInfoPanel: public wxPanel
{
public:
    /* Constructor */
    InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
    virtual ~InputStatsInfoPanel();

    void Update( input_item_t *);
    void Clear();

    void OnOk();
    void OnCancel();

private:
    DECLARE_EVENT_TABLE();

    intf_thread_t *p_intf;
    input_item_t *p_item;
    wxWindow *p_parent;

zorglub's avatar
zorglub committed
133
134
135
136
137
    wxBoxSizer *panel_sizer;
    wxFlexGridSizer *sizer;

    wxFlexGridSizer *input_sizer;
    wxStaticBoxSizer *input_bsizer;
zorglub's avatar
zorglub committed
138
139
140
141
142
    wxStaticText *read_bytes_text;
    wxStaticText *input_bitrate_text;
    wxStaticText *demux_bytes_text;
    wxStaticText *demux_bitrate_text;

zorglub's avatar
zorglub committed
143
144
    wxFlexGridSizer *video_sizer;
    wxStaticBoxSizer *video_bsizer;
zorglub's avatar
zorglub committed
145
146
147
    wxStaticText *video_decoded_text;
    wxStaticText *displayed_text;
    wxStaticText *lost_frames_text;
zorglub's avatar
zorglub committed
148

zorglub's avatar
zorglub committed
149
150
151
152
153
154
    wxFlexGridSizer *sout_sizer;
    wxStaticBoxSizer *sout_bsizer;
    wxStaticText *sout_sent_packets_text;
    wxStaticText *sout_sent_bytes_text;
    wxStaticText *sout_send_bitrate_text;

zorglub's avatar
zorglub committed
155
156
157
158
159
    wxFlexGridSizer *audio_sizer;
    wxStaticBoxSizer *audio_bsizer;
    wxStaticText *audio_decoded_text;
    wxStaticText *played_abuffers_text;
    wxStaticText *lost_abuffers_text;
zorglub's avatar
zorglub committed
160
161
162
};
};
#endif