kwave  18.07.70
SelectionBorderItem.h
Go to the documentation of this file.
1 /***************************************************************************
2  * SelectionBorderItem.h - selection border within a SignalView
3  * -------------------
4  * begin : Sat Mar 11 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_BORDER_ITEM_H
19 #define SELECTION_BORDER_ITEM_H
20 
21 #include "config.h"
22 
23 #include <QCursor>
24 #include <QString>
25 
26 #include "libkwave/Sample.h"
27 
28 #include "libgui/MouseMark.h"
29 #include "libgui/ViewItem.h"
30 
31 class QWidget;
32 
33 namespace Kwave
34 {
35  // forward declarations
36  class SignalManager;
37  class SignalView;
38 
40  {
41  public:
49  Kwave::SignalManager &signal_manager,
50  sample_index_t pos);
51 
53  virtual ~SelectionBorderItem() Q_DECL_OVERRIDE;
54 
59  virtual Kwave::ViewItem::Flags flags() const Q_DECL_OVERRIDE;
60 
68  virtual QString toolTip(sample_index_t &ofs) Q_DECL_OVERRIDE;
69 
73  virtual QCursor mouseCursor() const Q_DECL_OVERRIDE;
74 
80  virtual void moveTo(const QPoint &mouse_pos) Q_DECL_OVERRIDE;
81 
82  private:
83 
86 
87  };
88 }
89 
90 #endif /* SELECTION_BORDER_ITEM_H */
virtual void moveTo(const QPoint &mouse_pos) Q_DECL_OVERRIDE
Definition: App.h:33
SelectionBorderItem(SignalView &view, Kwave::SignalManager &signal_manager, sample_index_t pos)
quint64 sample_index_t
Definition: Sample.h:28
virtual Kwave::ViewItem::Flags flags() const Q_DECL_OVERRIDE
virtual QCursor mouseCursor() const Q_DECL_OVERRIDE
virtual QString toolTip(sample_index_t &ofs) Q_DECL_OVERRIDE
virtual ~SelectionBorderItem() Q_DECL_OVERRIDE