2
* KSCD -- a simpole cd player for the KDE project
4
* $Id: docking.cpp,v 1.8 2000/12/01 21:59:02 malte 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.
25
#include "kmidiframe.h"
32
#include <kiconloader.h>
34
#include <kpopupmenu.h>
36
DockWidget::DockWidget( KMidiFrame* parent, const char *name)
37
: KDockWindow( parent, name )
40
setPixmap( BarIcon("kmidi") );
42
// popup menu for right mouse button
43
QPopupMenu* popup_m = contextMenu();
45
popup_m->insertItem(i18n("Play/Pause"), kmidi, SLOT(playClicked()));
46
popup_m->insertItem(i18n("Stop"), kmidi, SLOT(stopClicked()));
47
//popup_m->insertItem(i18n("Forward"), kmidi, SLOT(fwdClicked()));
48
//popup_m->insertItem(i18n("Backward"), kmidi, SLOT(bwdClicked()));
49
popup_m->insertItem(i18n("Next"), kmidi, SLOT(nextClicked()));
50
popup_m->insertItem(i18n("Previous"), kmidi, SLOT(prevClicked()));
51
popup_m->insertItem(i18n("Eject"), kmidi, SLOT(ejectClicked()));
52
// popup_m->insertSeparator();
53
// popup_m->insertItem(i18n("Quit"), kmidi, SLOT(quitClicked()));
58
DockWidget::~DockWidget() {
62
#include "docking.moc"