* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: interface.cpp,v 1.39 2003/06/12 22:03:36 gbazin Exp $
+ * $Id: interface.cpp,v 1.40 2003/06/13 15:54:42 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
* Definition of wxVolCtrl class.
*****************************************************************************/
wxVolCtrl::wxVolCtrl( intf_thread_t *_p_intf, wxWindow* parent, wxWindowID id )
- : wxGauge( parent, id, 200, wxDefaultPosition, wxDefaultSize, wxGA_VERTICAL )
+ : wxGauge( parent, id, 200, wxDefaultPosition, wxDefaultSize,
+ wxGA_VERTICAL | wxGA_SMOOTH )
{
p_intf = _p_intf;
}
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: timer.cpp,v 1.23 2003/06/12 21:28:39 gbazin Exp $
+ * $Id: timer.cpp,v 1.24 2003/06/13 15:54:42 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
aout_VolumeGet( p_intf, &i_volume );
p_main_interface->volctrl->SetValue( i_volume * 200 /
AOUT_VOLUME_MAX );
+ p_main_interface->volctrl->SetToolTip(
+ wxString::Format((wxString)wxU(_("Volume")) + wxT(" %d"),
+ i_volume * 200 / AOUT_VOLUME_MAX ) );
+
}
/* control buttons for free pace streams */