summaryrefslogtreecommitdiff
path: root/noncore/applets/pyquicklaunch/pyquicklaunch.h
Unidiff
Diffstat (limited to 'noncore/applets/pyquicklaunch/pyquicklaunch.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/pyquicklaunch/pyquicklaunch.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/applets/pyquicklaunch/pyquicklaunch.h b/noncore/applets/pyquicklaunch/pyquicklaunch.h
new file mode 100644
index 0000000..e99f780
--- a/dev/null
+++ b/noncore/applets/pyquicklaunch/pyquicklaunch.h
@@ -0,0 +1,57 @@
1/**********************************************************************
2** Copyright (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
3** All rights reserved.
4**
5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file.
9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12**
13**********************************************************************/
14
15#ifndef PYQUICKLAUNCHAPPLET_H
16#define PYQUICKLAUNCHAPPLET_H
17
18#include <qwidget.h>
19#include <qframe.h>
20#include <qpixmap.h>
21
22class PyQuicklaunchApplet;
23
24class PyQuicklaunchControl : public QFrame
25{
26 Q_OBJECT
27 public:
28 PyQuicklaunchControl( PyQuicklaunchApplet* icon, QWidget *parent=0, const char *name=0 );
29 void show( bool );
30
31 void readConfig();
32 void writeConfigEntry( const char* entry, int val );
33
34 public slots:
35
36 private:
37 PyQuicklaunchApplet* applet;
38};
39
40class PyQuicklaunchApplet : public QWidget
41{
42 Q_OBJECT
43 public:
44 PyQuicklaunchApplet( QWidget *parent = 0, const char *name=0 );
45 ~PyQuicklaunchApplet();
46 static int position();
47 PyQuicklaunchControl* status;
48
49 virtual void timerEvent( QTimerEvent* );
50
51 protected:
52 virtual void mousePressEvent( QMouseEvent * );
53 virtual void paintEvent( QPaintEvent* );
54};
55
56#endif // PYQUICKLAUNCHAPPLET_H
57