00001 /***************************************************************************** 00002 * vlm_slider_manager.hpp: Header for slider_manager 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 _VLM_SLIDER_MANAGER_H_ 00025 #define _VLM_SLIDER_MANAGER_H_ 00026 00027 #include "wxwidgets.hpp" 00028 00029 namespace wxvlc 00030 { 00031 class VLMBroadcastStreamPanel; 00032 /** 00033 * This class manages a slider corresponding to the main input 00034 */ 00035 class VLMSliderManager 00036 { 00037 public: 00038 VLMSliderManager( intf_thread_t *, VLMBroadcastStreamPanel * ); 00039 virtual ~VLMSliderManager(); 00040 00041 wxString time_string; 00042 00043 void Update(); 00044 void ProcessUpdate( wxScrollEvent & ); 00045 00046 protected: 00047 bool b_slider_free; 00048 virtual void UpdateInput(); 00049 virtual void UpdateButtons( bool ); 00050 virtual void UpdateTime( char *, char *); 00051 00052 virtual bool IsShown(); 00053 virtual bool IsFree(); 00054 virtual bool IsPlaying(); 00055 00056 virtual void HideSlider(); 00057 virtual void ShowSlider(); 00058 00059 VLMBroadcastStreamPanel * p_sp; 00060 00061 intf_thread_t * p_intf; 00062 input_thread_t *p_input; 00063 wxSlider *slider; ///< Slider for this input 00064 int i_slider_pos; ///< Current slider position 00065 }; 00066 }; 00067 00068 #endif
1.5.1