File indexing completed on 2024-12-22 04:17:29
0001 /*************************************************************************** 0002 debugnotifier.h 0003 --------------- 0004 begin : Sep 13 2005 0005 copyright : (C) 2005 The University of Toronto 0006 email : netterfield@astro.utoronto.ca 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef DEBUGNOTIFIER_H 0019 #define DEBUGNOTIFIER_H 0020 0021 #include <QLabel> 0022 #include <QPixmap> 0023 #include <QVector> 0024 0025 class QMouseEvent; 0026 0027 namespace Kst { 0028 0029 class DebugNotifier : public QLabel { 0030 Q_OBJECT 0031 public: 0032 explicit DebugNotifier(QWidget *parent); 0033 ~DebugNotifier(); 0034 0035 Q_SIGNALS: 0036 void showDebugLog(); 0037 0038 public Q_SLOTS: 0039 void close(); 0040 void reanimate(); 0041 0042 private Q_SLOTS: 0043 void animate(); 0044 0045 protected: 0046 void mousePressEvent(QMouseEvent *e); 0047 void mouseReleaseEvent(QMouseEvent *e); 0048 0049 private: 0050 int _animationStage; 0051 bool _gotPress; 0052 QVector<QPixmap> _pm; 0053 }; 0054 0055 } 0056 0057 #endif 0058 0059 // vim: ts=2 sw=2 et