00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __WNDICON_H__
00019 #define __WNDICON_H__
00020
00021 #include <kpixmap.h>
00022
00023 #include <tqhbox.h>
00024
00028 class WndIcon:
00029 public QHBox
00030 {
00031 Q_OBJECT
00032 public:
00033
00034 enum Position
00035 {
00036 HBottomLeft = 0,
00037 HBottomRight = 1,
00038 HTopLeft = 2,
00039 HTopRight = 3,
00040 VBottomLeft = 10,
00041 VBottomRight = 11,
00042 VTopLeft = 12,
00043 VTopRight = 13
00044 };
00045
00046 WndIcon( unsigned int, unsigned int, unsigned int, int, const KPixmap&, const TQString&, Position, bool, bool );
00047
00048 signals:
00049 void setStatusText( const TQString& );
00050
00051 public slots:
00052 void show();
00053 void noshow();
00054 void slotStopJumping();
00055 void slotJump();
00056
00057 private:
00058 TQPoint determinePosition();
00059
00060 protected:
00061 TQString mStatusText;
00062 Position mIconPos;
00063 int mXineramaScreen;
00064 int mPosX, mPosY, mGroundX, mGroundY;
00065 float mVelocity, mInitialVelocity, mGravity;
00066 int mIconNum, mStatusHeight, mIconSize;
00067 bool mStatusAtTop, mStopJump, mIconJumping;
00068 };
00069
00070 #endif