projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CursorHeader: Use the same number format as the ruler.
[pulseview.git]
/
pv
/
view
/
header.h
diff --git
a/pv/view/header.h
b/pv/view/header.h
index 504011b6a63a348763be0495c9f5b305b4339c66..641f203bb9325745d9abdf5b3849424ef642a6c4 100644
(file)
--- a/
pv/view/header.h
+++ b/
pv/view/header.h
@@
-21,10
+21,8
@@
#ifndef PULSEVIEW_PV_VIEW_HEADER_H
#define PULSEVIEW_PV_VIEW_HEADER_H
#ifndef PULSEVIEW_PV_VIEW_HEADER_H
#define PULSEVIEW_PV_VIEW_HEADER_H
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
#include <list>
#include <list>
+#include <memory>
#include <utility>
#include "marginwidget.h"
#include <utility>
#include "marginwidget.h"
@@
-32,20
+30,27
@@
namespace pv {
namespace view {
namespace pv {
namespace view {
-class
Signal
;
+class
Trace
;
class View;
class Header : public MarginWidget
{
Q_OBJECT
class View;
class Header : public MarginWidget
{
Q_OBJECT
+private:
+ static const int Padding;
+
public:
Header(View &parent);
public:
Header(View &parent);
+ QSize sizeHint() const;
+
private:
private:
-
boost::shared_ptr<pv::view::Signal> get_mouse_over_signal
(
+
std::shared_ptr<pv::view::Trace> get_mouse_over_trace
(
const QPoint &pt);
const QPoint &pt);
+ void clear_selection();
+
private:
void paintEvent(QPaintEvent *event);
private:
void paintEvent(QPaintEvent *event);
@@
-60,26
+65,25
@@
private:
void contextMenuEvent(QContextMenuEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
-private slots:
- void on_action_set_name_triggered();
+ void keyPressEvent(QKeyEvent *e);
- void on_action_set_colour_triggered();
+private slots:
+ void on_signals_changed();
void on_signals_moved();
void on_signals_moved();
+ void on_trace_changed();
+
signals:
void signals_moved();
private:
QPoint _mouse_point;
QPoint _mouse_down_point;
signals:
void signals_moved();
private:
QPoint _mouse_point;
QPoint _mouse_down_point;
+ bool _dragging;
- std::list<std::pair<boost::weak_ptr<Signal>, int> >
- _drag_sigs;
-
- boost::shared_ptr<Signal> _context_signal;
- QAction *_action_set_name;
- QAction *_action_set_colour;
+ std::list<std::pair<std::weak_ptr<Trace>, int> >
+ _drag_traces;
};
} // namespace view
};
} // namespace view