00001 /* 00002 * kmood - a mood indicator 00003 * Copyright (C) 2003 Andreas Baumann 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 * 00019 */ 00020 00021 #ifndef __KMOOD_STATUS_BAR_APPLET_H__ 00022 #define __KMOOD_STATUS_BAR_APPLET_H__ 00023 00024 #include "kmood.hh" 00025 00026 // Qt includes 00027 #include <qwidget.h> 00028 #include <qlabel.h> 00029 #include <qimage.h> 00030 #include <qstring.h> 00031 00032 // KDE includes 00033 #include <kpopupmenu.h> 00034 00035 // KMood includes 00036 #include "KMoodWidget.hh" 00037 #include "KMoodMainWindow.hh" 00038 00048 class KMoodStatusBarApplet : public KMoodWidget 00049 { 00050 Q_OBJECT 00051 00052 public: 00053 KMoodStatusBarApplet( KMoodMainWindow *moodMainWindow, KMood *kmood ); 00054 ~KMoodStatusBarApplet( ); 00055 00056 protected: 00057 virtual void mousePressEvent( QMouseEvent *e ); 00058 virtual void renderEmoticon( ); 00059 00060 private: 00061 KMoodMainWindow *m_moodMainWindow; 00062 QString m_toolTip; 00063 00064 void changeToolTip( ); 00065 }; 00066 00067 #endif 00068
1.2.18