/******************************************************************************
 * This file is part of the Gluon Development Platform
 * Copyright (C) 2010 Shantanu Tushar <jhahoneyk@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef OVERLAY_H
#define OVERLAY_H

#include <QGraphicsWidget>

class QGraphicsLinearLayout;
class QGraphicsGridLayout;

namespace Plasma
{
    class FrameSvg;
    class ScrollWidget;
}

class Overlay : public QGraphicsWidget
{
Q_OBJECT

public:
    Overlay(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0);

protected:
    virtual void keyPressEvent(QKeyEvent *event);
    virtual void wheelEvent(QGraphicsSceneWheelEvent* event);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
            QWidget *widget = 0);
    void resizeEvent(QGraphicsSceneResizeEvent *event);
        
    QGraphicsGridLayout *m_contentLayout;
    QGraphicsWidget *m_contentWidget;
    Plasma::FrameSvg *m_background;
    Plasma::ScrollWidget *m_scrollWidget;
};

#endif // OVERLAY_H
