X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursor.hpp;fp=pv%2Fview%2Fcursor.hpp;h=0000000000000000000000000000000000000000;hp=e78920e2c3e8df29572fb1d7cd6e62e5b9033e97;hb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;hpb=4c7a19d3d7049bcc9fb3185ce2bc91333a7ca9e1 diff --git a/pv/view/cursor.hpp b/pv/view/cursor.hpp deleted file mode 100644 index e78920e..0000000 --- a/pv/view/cursor.hpp +++ /dev/null @@ -1,78 +0,0 @@ -/* - * This file is part of the PulseView project. - * - * Copyright (C) 2012 Joel Holdsworth - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP - -#include "timemarker.hpp" - -#include - -#include - -using std::shared_ptr; - -class QPainter; - -namespace pv { -namespace views { -namespace TraceView { - -class Cursor : public TimeMarker -{ - Q_OBJECT - -public: - static const QColor FillColour; - -public: - /** - * Constructor. - * @param view A reference to the view that owns this cursor pair. - * @param time The time to set the flag to. - */ - Cursor(View &view, double time); - -public: - /** - * Returns true if the item is visible and enabled. - */ - bool enabled() const; - - /** - * Gets the text to show in the marker. - */ - QString get_text() const; - - /** - * Gets the marker label rectangle. - * @param rect The rectangle of the ruler client area. - * @return Returns the label rectangle. - */ - QRectF label_rect(const QRectF &rect) const; - -private: - shared_ptr get_other_cursor() const; -}; - -} // namespace TraceView -} // namespace views -} // namespace pv - -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP