infopanels.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * infopanels.hpp: Information panels (statistics, general info, ...)
00003  *****************************************************************************
00004  * Copyright (C) 1999-2005 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _WXVLC_INFOPANELS_H_
00025 #define _WXVLC_INFOPANELS_H_
00026 
00027 #include "wxwidgets.hpp"
00028 
00029 #include <wx/treectrl.h>
00030 
00031 namespace wxvlc
00032 {
00033 class MetaDataPanel: public wxPanel
00034 {
00035 public:
00036     /* Constructor */
00037     MetaDataPanel( intf_thread_t *p_intf, wxWindow *p_parent, bool );
00038     virtual ~MetaDataPanel();
00039 
00040     void Update( input_item_t *);
00041     void Clear();
00042 
00043     char* GetURI();
00044     char* GetName();
00045 
00046     void OnOk();
00047     void OnCancel();
00048 
00049 private:
00050     DECLARE_EVENT_TABLE();
00051 
00052     intf_thread_t *p_intf;
00053     input_item_t *p_item;
00054     wxWindow *p_parent;
00055 
00056     wxTextCtrl *uri_text;
00057     wxTextCtrl *name_text;
00058     wxStaticText *uri_label;
00059     wxStaticText *name_label;
00060 
00061     wxStaticText *artist_text;
00062     wxStaticText *genre_text;
00063     wxStaticText *copyright_text;
00064     wxStaticText *collection_text;
00065     wxStaticText *seqnum_text;
00066     wxStaticText *description_text;
00067     wxStaticText *rating_text;
00068     wxStaticText *date_text;
00069     wxStaticText *setting_text;
00070     wxStaticText *language_text;
00071     wxStaticText *nowplaying_text;
00072     wxStaticText *publisher_text;
00073 
00074     bool b_modifiable;
00075 };
00076 
00077 
00078 class AdvancedInfoPanel: public wxPanel
00079 {
00080 public:
00081     /* Constructor */
00082     AdvancedInfoPanel( intf_thread_t *p_intf, wxWindow *p_parent );
00083     virtual ~AdvancedInfoPanel();
00084 
00085     void Update( input_item_t *);
00086     void Clear();
00087 
00088 
00089     char* GetURI();
00090     char* GetName();
00091 
00092     void OnOk();
00093     void OnCancel();
00094 
00095 private:
00096     DECLARE_EVENT_TABLE();
00097 
00098     intf_thread_t *p_intf;
00099     input_item_t *p_item;
00100     wxWindow *p_parent;
00101 
00102     wxTextCtrl *uri_text;
00103     wxTextCtrl *name_text;
00104     wxStaticText *uri_label;
00105     wxStaticText *name_label;
00106 
00107     wxTreeCtrl *info_tree;
00108     wxTreeItemId info_root;
00109 
00110     bool b_modifiable;
00111 };
00112 
00113 class InputStatsInfoPanel: public wxPanel
00114 {
00115 public:
00116     /* Constructor */
00117     InputStatsInfoPanel( intf_thread_t *p_intf,wxWindow *p_parent );
00118     virtual ~InputStatsInfoPanel();
00119 
00120     void Update( input_item_t *);
00121     void Clear();
00122 
00123     void OnOk();
00124     void OnCancel();
00125 
00126 private:
00127     DECLARE_EVENT_TABLE();
00128 
00129     intf_thread_t *p_intf;
00130     input_item_t *p_item;
00131     wxWindow *p_parent;
00132 
00133     wxBoxSizer *panel_sizer;
00134     wxFlexGridSizer *sizer;
00135 
00136     wxFlexGridSizer *input_sizer;
00137     wxStaticBoxSizer *input_bsizer;
00138     wxStaticText *read_bytes_text;
00139     wxStaticText *input_bitrate_text;
00140     wxStaticText *demux_bytes_text;
00141     wxStaticText *demux_bitrate_text;
00142 
00143     wxFlexGridSizer *video_sizer;
00144     wxStaticBoxSizer *video_bsizer;
00145     wxStaticText *video_decoded_text;
00146     wxStaticText *displayed_text;
00147     wxStaticText *lost_frames_text;
00148 
00149     wxFlexGridSizer *sout_sizer;
00150     wxStaticBoxSizer *sout_bsizer;
00151     wxStaticText *sout_sent_packets_text;
00152     wxStaticText *sout_sent_bytes_text;
00153     wxStaticText *sout_send_bitrate_text;
00154 
00155     wxFlexGridSizer *audio_sizer;
00156     wxStaticBoxSizer *audio_bsizer;
00157     wxStaticText *audio_decoded_text;
00158     wxStaticText *played_abuffers_text;
00159     wxStaticText *lost_abuffers_text;
00160 };
00161 };
00162 #endif

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1