X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.h;h=1381502d3de48f7c8c64168110e0f7e34a7d0236;hb=3efda736308edc11468a4b59bdb28d5793902529;hp=7eccc8cdda9d2222fc2c300fa0d971c9a3373d14;hpb=ccdd3ef548ce34f25c6c168598556a350831aa37;p=pulseview.git diff --git a/pv/view/ruler.h b/pv/view/ruler.h index 7eccc8cd..1381502d 100644 --- a/pv/view/ruler.h +++ b/pv/view/ruler.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PV_VIEW_RULER_H -#define PV_VIEW_RULER_H +#ifndef PULSEVIEW_PV_VIEW_RULER_H +#define PULSEVIEW_PV_VIEW_RULER_H #include @@ -39,12 +39,25 @@ private: static const QString SIPrefixes[9]; static const int FirstSIPrefixPower; + static const int HoverArrowSize; + public: Ruler(View &parent); private: void paintEvent(QPaintEvent *event); +private: + void draw_cursors(QPainter &p); + + /** + * Draw a hover arrow under the cursor position. + */ + void draw_hover_mark(QPainter &p); + +private slots: + void hover_point_changed(); + private: View &_view; }; @@ -52,4 +65,4 @@ private: } // namespace view } // namespace pv -#endif // PV_VIEW_HEADER_H +#endif // PULSEVIEW_PV_VIEW_RULER_H