X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.hpp;h=89a57e5edeb248b2dab9b59618cab71b9d268667;hp=39cf034562fb0e11cb500e949a424d9265b47fad;hb=be843692f664e44d26458063042cc5d41a13df57;hpb=a3d5a7c7682ebb991718b49ae916c5840b3b6b51 diff --git a/pv/views/trace/viewitem.hpp b/pv/views/trace/viewitem.hpp index 39cf034..89a57e5 100644 --- a/pv/views/trace/viewitem.hpp +++ b/pv/views/trace/viewitem.hpp @@ -23,6 +23,7 @@ #include #include +#include #include "viewitempaintparams.hpp" @@ -147,15 +148,17 @@ public: public: /** - * Gets the text colour. - * @remarks This colour is computed by comparing the lightness - * of the trace colour against a threshold to determine whether + * Gets the text color. + * @remarks This color is computed by comparing the lightness + * of the trace color against a threshold to determine whether * white or black would be more visible. */ - static QColor select_text_colour(QColor background); + static QColor select_text_color(QColor background); public: - virtual QMenu* create_context_menu(QWidget *parent); + virtual QMenu* create_header_context_menu(QWidget *parent); + + virtual QMenu* create_view_context_menu(QWidget *parent, QPoint &click_pos); virtual pv::widgets::Popup* create_popup(QWidget *parent);