SpeedCrunch  0.11
/usr/src/RPM/BUILD/speedcrunch-0.11/src/gui/tipwidget.h
Go to the documentation of this file.
00001 // This file is part of the SpeedCrunch project
00002 // Copyright (C) 2007 Ariya Hidayat <ariya@kde.org>
00003 // Copyright (C) 2008 Helder Correia <helder.pereira.correia@gmail.com>
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; see the file COPYING.  If not, write to
00017 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018 // Boston, MA 02110-1301, USA.
00019 
00020 #ifndef TIPWIDGET_H
00021 #define TIPWIDGET_H
00022 
00023 #include <QFrame>
00024 
00025 #include <memory>
00026 
00027 class TipWidget: public QFrame
00028 {
00029     Q_OBJECT
00030 
00031 public:
00032     explicit TipWidget(QWidget *parent = 0);
00033     QSize sizeHint() const;
00034 
00035 public slots:
00036     void hideText();
00037     void showText(const QString &text, const QString &title);
00038 
00039 private slots:
00040     void animateFade(int);
00041     void appear();
00042     void disappear();
00043 
00044 private:
00045     struct Private;
00046     const std::auto_ptr<Private> d;
00047     TipWidget(const TipWidget &);
00048     TipWidget & operator=(const TipWidget &);
00049 };
00050 
00051 #endif