Main Page | Class List | File List | Class Members | File Members | Related Pages

wsystray.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Bojan D.                                        *
00003  *   bojan_d@users.sourceforge.net                                         *
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                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef WSYSTRAY_H
00022 #define WSYSTRAY_H
00023 
00031 #include <ksystemtray.h>
00032 #include <qpixmap.h>
00033 
00034 class KPopupMenu;
00035 class KWebSnap;
00036 
00045 class WSysTray : public KSystemTray
00046 {
00047         Q_OBJECT
00048 
00049         public:
00055                 WSysTray( QWidget* parent = 0, const char *name = 0 );
00057                 ~WSysTray();
00058                 
00059         public slots:
00064                 void setNumber(int n);
00065                 
00070                 void setText(const QString & text); 
00071                 
00080                 void drawFlash();               
00081                 
00085                 void drawSave();                
00086 
00090                 void drawSend();                        
00091         
00096                 void drawPixmap(const QPixmap& pic);    
00097                 
00102                 void drawImage(const QImage& image);
00103                 
00109                 void blendOverlay(const QPixmap& overlay, const QPixmap& sourcePixmap); 
00110                 
00112                 void resetIcon();
00113                 
00115                 void disableMenues();
00116                 
00118                 void enableMenues();
00119                         
00120         private:
00123                 void setEnableMenues(bool enable);
00124         
00125                 KWebSnap* m_parent;             
00126                 KPopupMenu* m_menu;             
00127                 QPixmap m_defaultIcon;  
00128                 
00129                 int m_startId;                  
00130                 int m_stopId;                   
00131                 int m_configId;                 
00132 };
00133 
00134 #endif

Generated on Mon Sep 5 12:52:34 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1