2
* KSCD -- a simpole cd player for the KDE project
4
* $Id: docking.cpp,v 1.23 2001/03/25 04:23:00 tibirna Exp $
6
* Copyright (C) 1997 Bernd Johannes Wuebben
7
* wuebben@math.cornell.edu
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Library General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Library General Public License for more details.
19
* You should have received a copy of the GNU Library General Public
20
* License along with this program; if not, write to the Free
21
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31
#include <kiconloader.h>
33
#include <kpopupmenu.h>
35
DockWidget::DockWidget( KSCD* parent, const char *name)
36
: KSystemTray( parent, name )
39
setPixmap( UserIcon("cdsmall") );
41
// popup menu for right mouse button
42
QPopupMenu* popup = contextMenu();
44
popup->insertItem(i18n("Play/Pause"), parent, SLOT(playClicked()));
45
popup->insertItem(i18n("Stop"), parent, SLOT(stopClicked()));
46
popup->insertItem(i18n("Forward"), parent, SLOT(fwdClicked()));
47
popup->insertItem(i18n("Backward"), parent, SLOT(bwdClicked()));
48
popup->insertItem(i18n("Next"), parent, SLOT(nextClicked()));
49
popup->insertItem(i18n("Previous"), parent, SLOT(prevClicked()));
50
popup->insertItem(i18n("Eject"), parent, SLOT(ejectClicked()));
56
DockWidget::~DockWidget() {
59
void DockWidget::setToolTip(const QString& text)
67
QToolTip::remove(this);
68
QToolTip::add(this, tip);
73
#include "docking.moc"