• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

toolbutton.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2008 Marco Martin <notmart@gmail.com>
00003  *   Copyright 2008 Aaron Seigo <aseigo@kde.org>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU Library General Public License as
00007  *   published by the Free Software Foundation; either version 2, or
00008  *   (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 Library General Public
00016  *   License along with this program; if not, write to the
00017  *   Free Software Foundation, Inc.,
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 #ifndef TOOLBUTTON_H
00022 #define TOOLBUTTON_H
00023 
00024 #include <QToolButton>
00025 
00026 namespace Plasma
00027 {
00028     class FrameSvg;
00029 }
00030 
00031 class ToolButton: public QToolButton
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     ToolButton(QWidget *parent);
00037     void setAction(QAction *action);
00038 
00039 protected:
00040     void paintEvent(QPaintEvent *event);
00041     void enterEvent(QEvent *event);
00042     void leaveEvent(QEvent *event);
00043 
00044 protected slots:
00045     void actionDestroyed(QObject *);
00046     void syncToAction();
00047     void animationUpdate(qreal progress);
00048 
00049 private:
00050     QAction *m_action;
00051     Plasma::FrameSvg *m_background;
00052     int m_animationId;
00053     qreal m_alpha;
00054     bool m_fadeIn;
00055 };
00056 
00057 #endif
00058 

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal