1 /***************************************************************************
6 * begin : Tue Jan 29 2002
7 * copyright : (C) 2002 by Patrick Charbonnier
9 * email : pch@freeshell.org
11 ****************************************************************************/
13 /***************************************************************************
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 ***************************************************************************/
29 #include <kpopupmenu.h>
31 #include "dockindividual.h"
32 DockIndividual::DockIndividual(QWidget
*parent
, const char *name
) : KSystemTray(parent
,name
)
35 setPixmap( loadIcon("bar0") );
38 DockIndividual::~DockIndividual()
40 QToolTip::remove(this);
44 void DockIndividual::setValue(int value
){
46 //sDebugIn<<" value ="<<value<<endl;
69 QString str
= "bar" + QString::number( nPic
);
70 setPixmap( loadIcon( str
) );
80 void DockIndividual::setTip(const QString
& _tip
)
83 //sDebugIn<<"_tip="<<_tip<<endl;
87 QToolTip::add( this, _tip
);
94 #include "dockindividual.moc"
95 /** No descriptions */
96 void DockIndividual::contextMenuAboutToShow ( KPopupMenu
* menu
)
98 menu
->removeItemAt (3);