X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fsrc%2Fgeneric_window.hpp;h=f3c5bfece01e6b56bb9f1e72d60277cecb1732e2;hb=f749793a07a689b247f218af1db5b26359a2a5df;hp=6dabdb7d9ce9202b90f237bcd86c0b4357d6a8a0;hpb=51a3196bd562e8bab25e910524928902e506d461;p=vlc diff --git a/modules/gui/skins2/src/generic_window.hpp b/modules/gui/skins2/src/generic_window.hpp index 6dabdb7d9c..f3c5bfece0 100644 --- a/modules/gui/skins2/src/generic_window.hpp +++ b/modules/gui/skins2/src/generic_window.hpp @@ -1,11 +1,11 @@ /***************************************************************************** * generic_window.hpp ***************************************************************************** - * Copyright (C) 2003 VideoLAN + * Copyright (C) 2003 the VideoLAN team * $Id$ * * Authors: Cyril Deguet - * Olivier Teulière + * Olivier Teulière * * 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 @@ -19,7 +19,7 @@ * * 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef GENERIC_WINDOW_HPP @@ -32,6 +32,7 @@ class OSWindow; class EvtGeneric; class EvtFocus; class EvtLeave; +class EvtMenu; class EvtMotion; class EvtMouse; class EvtKey; @@ -53,6 +54,7 @@ class GenericWindow: public SkinObject, public Observer /// Methods to process OS events. virtual void processEvent( EvtFocus &rEvtFocus ) {} + virtual void processEvent( EvtMenu &rEvtMenu ) {} virtual void processEvent( EvtMotion &rEvtMotion ) {} virtual void processEvent( EvtMouse &rEvtMouse ) {} virtual void processEvent( EvtLeave &rEvtLeave ) {} @@ -74,7 +76,7 @@ class GenericWindow: public SkinObject, public Observer int getHeight() const { return m_height; } /// Give access to the visibility variable - VarBool &getVisibleVar() { return m_varVisible; } + VarBool &getVisibleVar() { return *m_pVarVisible; } /// Window type, mainly useful when overloaded (for VoutWindow) virtual string getType() const { return "Generic"; } @@ -117,10 +119,10 @@ class GenericWindow: public SkinObject, public Observer /// OS specific implementation OSWindow *m_pOsWindow; /// Variable for the visibility of the window - mutable VarBoolImpl m_varVisible; + mutable VarBoolImpl *m_pVarVisible; /// Method called when the observed variable is modified - virtual void onUpdate( Subject &rVariable ); + virtual void onUpdate( Subject &rVariable , void*); };