~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmidi/docking.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *              KSCD -- a simpole cd player for the KDE project
 
3
 *
 
4
 * $Id: docking.cpp,v 1.8 2000/12/01 21:59:02 malte Exp $
 
5
 *
 
6
 *              Copyright (C) 1997 Bernd Johannes Wuebben
 
7
 *                      wuebben@math.cornell.edu
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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.
 
22
 */
 
23
 
 
24
#include "kmidi.h"
 
25
#include "kmidiframe.h"
 
26
 
 
27
#include <qtooltip.h>
 
28
#include <kapp.h>
 
29
 
 
30
#include "docking.h"
 
31
#include <klocale.h>
 
32
#include <kiconloader.h>
 
33
#include <kglobal.h>
 
34
#include <kpopupmenu.h>
 
35
 
 
36
DockWidget::DockWidget( KMidiFrame* parent, const char *name)
 
37
  : KDockWindow( parent, name )
 
38
{
 
39
 
 
40
  setPixmap( BarIcon("kmidi") );
 
41
 
 
42
  // popup menu for right mouse button
 
43
  QPopupMenu* popup_m = contextMenu();
 
44
 
 
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()));
 
54
 
 
55
 
 
56
}
 
57
 
 
58
DockWidget::~DockWidget() {
 
59
}
 
60
 
 
61
 
 
62
#include "docking.moc"
 
63
 
 
64