kwave  18.07.70
SelectionItem.h
Go to the documentation of this file.
1 /***************************************************************************
2  * SelectionItem.h - selection item within a SignalView
3  * -------------------
4  * begin : Sun Mar 12 2017
5  * copyright : (C) 2017 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 #ifndef SELECTION_ITEM_H
19 #define SELECTION_ITEM_H
20 
21 #include "config.h"
22 
23 #include <QCursor>
24 
25 #include "libkwave/Sample.h"
26 #include "libgui/ViewItem.h"
27 
28 class QWidget;
29 
30 namespace Kwave
31 {
32  // forward declarations
33  class SignalManager;
34  class SignalView;
35 
37  {
38  public:
45  Kwave::SignalManager &signal_manager);
46 
48  virtual ~SelectionItem() Q_DECL_OVERRIDE;
49 
54  virtual Kwave::ViewItem::Flags flags() const Q_DECL_OVERRIDE;
55 
57  virtual void startDragging() Q_DECL_OVERRIDE;
58 
59  private:
60 
63 
66 
67  };
68 }
69 
70 #endif /* SELECTION_ITEM_H */
Definition: App.h:33
virtual Kwave::ViewItem::Flags flags() const Q_DECL_OVERRIDE
SelectionItem(SignalView &view, Kwave::SignalManager &signal_manager)
quint64 sample_index_t
Definition: Sample.h:28
virtual ~SelectionItem() Q_DECL_OVERRIDE
virtual void startDragging() Q_DECL_OVERRIDE
sample_index_t m_first
Definition: SelectionItem.h:62
sample_index_t m_last
Definition: SelectionItem.h:65