/* * Copyright 2007 by Aaron Seigo * Copyright 2008 by Marco Martin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2, or * (at your option) any later version. * * This program 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 General Public License for more details * * You should have received a copy of the GNU Library General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PLASMA_PANELTOOLBOX_P_H #define PLASMA_PANELTOOLBOX_P_H #include #include #include #include #include #include "phase.h" namespace Plasma { class Widget; class EmptyGraphicsItem; class PanelToolbox : public Toolbox { Q_OBJECT public: explicit PanelToolbox(QGraphicsItem *parent = 0); QRectF boundingRect() const; QPainterPath shape() const; void showToolbox(); void hideToolbox(); protected: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); void hoverEnterEvent(QGraphicsSceneHoverEvent *event); void hoverLeaveEvent(QGraphicsSceneHoverEvent *event); protected slots: void animate(qreal progress); void toolMoved(QGraphicsItem*); private: class Private; Private *d; }; } // Plasma namespace #endif // multiple inclusion guard