source: psi/vendor/affinix/current/libpsi/psiwidgets/busywidget.h@ 2

Last change on this file since 2 was 2, checked in by dmik, 19 years ago

Imported original Psi 0.10 sources from Affinix

File size: 1.5 KB
Line 
1/*
2 * busywidget.h - cool animating widget
3 * Copyright (C) 2001, 2002 Justin Karneges
4 * Hideaki Omuro
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21
22#ifndef BUSYWIDGET_H
23#define BUSYWIDGET_H
24
25#include<qwidget.h>
26#include<qpixmap.h>
27
28class CColor;
29class CPanel;
30
31class BusyWidget : public QWidget
32{
33 Q_OBJECT
34 Q_PROPERTY( bool active READ isActive WRITE setActive )
35
36 Q_OVERRIDE( QSize minimumSize DESIGNABLE false SCRIPTABLE false )
37 Q_OVERRIDE( QSize maximumSize DESIGNABLE false SCRIPTABLE false )
38
39public:
40 BusyWidget(QWidget *parent=0, const char *name=0);
41 ~BusyWidget();
42
43 bool isActive() const;
44
45public slots:
46 void start();
47 void stop();
48 void setActive(bool);
49
50protected:
51 void paintEvent(QPaintEvent *);
52 void resizeEvent(QResizeEvent *);
53
54private slots:
55 void animate();
56
57public:
58 class Private;
59private:
60 Private *d;
61 friend class Private;
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.