projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a label context bar action
[pulseview.git]
/
pv
/
view
/
signal.h
diff --git
a/pv/view/signal.h
b/pv/view/signal.h
index ece2e5a446218591f066a435454004a550b267f3..5732e19d5f45e632630d382ddcc5b36ef581f8fe 100644
(file)
--- a/
pv/view/signal.h
+++ b/
pv/view/signal.h
@@
-24,10
+24,12
@@
#include <boost/shared_ptr.hpp>
#include <QColor>
#include <boost/shared_ptr.hpp>
#include <QColor>
+#include <QComboBox>
#include <QPainter>
#include <QPen>
#include <QRect>
#include <QString>
#include <QPainter>
#include <QPen>
#include <QRect>
#include <QString>
+#include <QWidgetAction>
#include <stdint.h>
#include <stdint.h>
@@
-150,6
+152,12
@@
private:
*/
QRectF get_label_rect(int y, int right);
*/
QRectF get_label_rect(int y, int right);
+private slots:
+ void on_text_changed(const QString &text);
+
+signals:
+ void text_changed();
+
protected:
const sr_probe *const _probe;
protected:
const sr_probe *const _probe;
@@
-158,6
+166,10
@@
protected:
int _v_offset;
QSizeF _text_size;
int _v_offset;
QSizeF _text_size;
+
+ QWidgetAction _name_action;
+ QComboBox _name_widget;
+ bool _updating_name_widget;
};
} // namespace view
};
} // namespace view