{
}
+const list<QAction*> AnalogSignal::get_context_bar_actions()
+{
+ list<QAction*> actions;
+ return actions;
+}
+
void AnalogSignal::set_scale(float scale)
{
_scale = scale;
virtual ~AnalogSignal();
+ const std::list<QAction*> get_context_bar_actions();
+
void set_scale(float scale);
/**
{
}
+const list<QAction*> LogicSignal::get_context_bar_actions()
+{
+ list<QAction*> actions;
+ return actions;
+}
+
void LogicSignal::paint(QPainter &p, int y, int left, int right,
double scale, double offset)
{
virtual ~LogicSignal();
+ const std::list<QAction*> get_context_bar_actions();
+
/**
* Paints the signal with a QPainter
* @param p the QPainter to paint into.
*/
void select(bool select = true);
+public:
+ virtual const std::list<QAction*> get_context_bar_actions() = 0;
+
protected:
static QPen highlight_pen();
#include <QPainter>
+using namespace std;
+
namespace pv {
namespace view {
p.drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom()));
}
+const list<QAction*> TimeMarker::get_context_bar_actions()
+{
+ list<QAction*> actions;
+ return actions;
+}
+
} // namespace view
} // namespace pv
virtual void paint_label(QPainter &p, const QRect &rect,
unsigned int prefix) = 0;
+ /**
+ * Returns a list of context menu items to show in the context
+ * bar.
+ */
+ const std::list<QAction*> get_context_bar_actions();
+
signals:
void time_changed();