1
/****************************************************************************
2
* Copyright (C) 2012-2013 by Savoir-Faire Linux *
3
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
5
* This library is free software; you can redistribute it and/or *
6
* modify it under the terms of the GNU Lesser General Public *
7
* License as published by the Free Software Foundation; either *
8
* version 2.1 of the License, or (at your option) any later version. *
10
* This library is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13
* Lesser General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
***************************************************************************/
22
#include "../../klib/tip.h"
25
#include <QtGui/QWidget>
26
#include <QtCore/QTimer>
33
///A tip to be passed to the TipLoader
34
class RiggingTip : public Tip
38
explicit RiggingTip(QWidget* parent = nullptr);
39
virtual ~RiggingTip();
41
//It is not a notification, it doesn't need to be as visible
42
virtual float opacity() { return 0.5f; }
45
virtual QRect getDecorationRect();
46
virtual void paintDecorations(QPainter& p, const QRect& textRect);
51
QByteArray m_phoneOriginalSVG ;
52
QByteArray m_ring1OriginalSVG ;
53
QByteArray m_ring2OriginalSVG ;
54
QByteArray m_ring3OriginalSVG ;
55
QSvgRenderer* m_pPhoneR ;
56
QSvgRenderer* m_pRing1R ;
57
QSvgRenderer* m_pRing2R ;
58
QSvgRenderer* m_pRing3R ;
59
QPixmap* m_pPhonePix ;
60
QPixmap* m_pRing1Pix ;
61
QPixmap* m_pRing2Pix ;
62
QPixmap* m_pRing3Pix ;
65
void startAnimation(bool visibility);