summaryrefslogtreecommitdiffstats
path: root/src/kbfxspinxtop.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:43:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:43:50 +0000
commitceea23677c61f20759ae986bd77b0d5c4d673edb (patch)
tree3fcec1702eaf9c14d1dd736e594f5df08dab4001 /src/kbfxspinxtop.h
downloadkbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.tar.gz
kbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.zip
Added old KDE3 version of kbfx
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1091549 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kbfxspinxtop.h')
-rw-r--r--src/kbfxspinxtop.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/kbfxspinxtop.h b/src/kbfxspinxtop.h
new file mode 100644
index 0000000..b6cf811
--- /dev/null
+++ b/src/kbfxspinxtop.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2006
+ * Siraj Razick <[email protected]>
+ * PhobosK <[email protected]>
+ * see Also AUTHORS
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License version 2 as
+ * published by the Free Software Foundation
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef KBFX_SPINX_TOP_H
+#define KBFX_SPINX_TOP_H
+
+#include <qimage.h>
+#include <qpainter.h>
+#include <qpixmap.h>
+#include <qwidget.h>
+
+#include <kiconloader.h>
+#include <klineedit.h>
+#include <kuser.h>
+
+#include <kbfxconfig.h>
+#include <kbfxplasmapixmapprovider.h>
+
+class KbfxSpinxTop:public QWidget
+{
+ Q_OBJECT
+
+ public:
+ KbfxSpinxTop ( QWidget * parent = 0,const char * name = 0 );
+ virtual ~KbfxSpinxTop();
+
+ virtual void paintEvent ( QPaintEvent * );
+ virtual void mousePressEvent ( QMouseEvent * e ) ;
+
+ public slots:
+
+ signals:
+ void textChanged ( QString );
+ void sizeChange ( int );
+
+ private:
+ void loadFaceIcon();
+ void createDudeBox();
+ QString getUserName();
+
+ QPixmap m_background;
+ QPixmap * m_pixmapbuff;
+ QPixmap m_faceIcon;
+ QPixmap m_dudeBox;
+ QString m_currentTextBuffer;
+ QString m_userName;
+ QPixmap m_iconPixmap;
+ QTimer * m_fadeTimer;
+
+
+};
+
+#endif