/*****************************************************************************
* generic_window.hpp
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* 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
*
* 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
class EvtGeneric;
class EvtFocus;
class EvtLeave;
+class EvtMenu;
class EvtMotion;
class EvtMouse;
class EvtKey;
/// 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 ) {}
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"; }
protected:
/// Get the OS window
/// 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<VarBool> &rVariable );
+ virtual void onUpdate( Subject<VarBool> &rVariable , void*);
};