X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=50bbf2cdc0038075d8fbdea98cc0ba2b3af938fa;hp=68e7eb5884fcc751d0723ec13afbb80253937a43;hb=7a01bd3654ed046216308fa64edfd79be7cd525f;hpb=6871ee9fc6c4a87cfa3796b893b91fc5b16c2673 diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index 68e7eb5..50bbf2c 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_RULER_H -#define PULSEVIEW_PV_VIEW_RULER_H +#ifndef PULSEVIEW_PV_VIEW_RULER_HPP +#define PULSEVIEW_PV_VIEW_RULER_HPP #include @@ -48,9 +48,6 @@ private: public: Ruler(View &parent); -public: - void clear_selection(); - public: QSize sizeHint() const; @@ -62,6 +59,11 @@ public: QSize extended_size_hint() const; private: + /** + * Gets the time items. + */ + std::vector< std::shared_ptr > items(); + /** * Gets the first view item which has a label that contains @c pt . * @param pt the point to search with. @@ -74,16 +76,8 @@ private: private: void paintEvent(QPaintEvent *event); - void mouseMoveEvent(QMouseEvent *e); - void mousePressEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *e); - void contextMenuEvent(QContextMenuEvent *event); - - void keyPressEvent(QKeyEvent *e); - private: /** * Draw a hover arrow under the cursor position. @@ -101,4 +95,4 @@ private Q_SLOTS: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_VIEW_RULER_H +#endif // PULSEVIEW_PV_VIEW_RULER_HPP