kwave  18.07.70
ViewItem.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  ViewItem.cpp - base class for a visible item within a SignalView
3  -------------------
4  begin : Sat Mar 26 2011
5  copyright : (C) 2011 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "config.h"
19 
20 #include <QCursor>
21 #include <QObject>
22 
23 #include <KLocalizedString>
24 
25 #include "libgui/LabelItem.h"
26 #include "libgui/SignalView.h"
27 
28 //***************************************************************************
30  Kwave::SignalManager &signal_manager)
31  :QObject(&view), m_view(view), m_signal_manager(signal_manager)
32 {
33 }
34 
35 //***************************************************************************
37 {
38 }
39 
40 //***************************************************************************
41 Kwave::ViewItem::Flags Kwave::ViewItem::flags() const
42 {
43  return Kwave::ViewItem::None;
44 }
45 
46 //***************************************************************************
48 {
49  Q_UNUSED(ofs);
50  return QString();
51 }
52 
53 //***************************************************************************
55 {
56  Q_UNUSED(parent);
57 }
58 
59 //***************************************************************************
61 {
62  return Qt::ArrowCursor;
63 }
64 
65 //***************************************************************************
66 void Kwave::ViewItem::moveTo(const QPoint &mouse_pos)
67 {
68  Q_UNUSED(mouse_pos);
69 }
70 
71 //***************************************************************************
73 {
74 }
75 
76 //***************************************************************************
78 {
79 }
80 
81 //***************************************************************************
82 //***************************************************************************
virtual void done()
Definition: ViewItem.cpp:77
virtual void startDragging()
Definition: ViewItem.cpp:72
virtual void moveTo(const QPoint &mouse_pos)
Definition: ViewItem.cpp:66
virtual ~ViewItem()
Definition: ViewItem.cpp:36
quint64 sample_index_t
Definition: Sample.h:28
ViewItem(Kwave::SignalView &view, Kwave::SignalManager &signal_manager)
Definition: ViewItem.cpp:29
virtual QString toolTip(sample_index_t &ofs)
Definition: ViewItem.cpp:47
virtual void appendContextMenu(QMenu *parent)
Definition: ViewItem.cpp:54
virtual Kwave::ViewItem::Flags flags() const
Definition: ViewItem.cpp:41
virtual QCursor mouseCursor() const
Definition: ViewItem.cpp:60