]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursorpair.h
Renamed C++ headers to .hpp
[pulseview.git] / pv / view / cursorpair.h
diff --git a/pv/view/cursorpair.h b/pv/view/cursorpair.h
deleted file mode 100644 (file)
index f7eb51c..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * This file is part of the PulseView project.
- *
- * Copyright (C) 2013 Joel Holdsworth <joel@airwebreathe.org.uk>
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
- */
-
-#ifndef PULSEVIEW_PV_VIEW_CURSORPAIR_H
-#define PULSEVIEW_PV_VIEW_CURSORPAIR_H
-
-#include "cursor.h"
-
-#include <memory>
-
-#include <QPainter>
-
-class QPainter;
-
-namespace pv {
-namespace view {
-
-class CursorPair
-{
-private:
-       static const int DeltaPadding;
-
-public:
-       /**
-        * Constructor.
-        * @param view A reference to the view that owns this cursor pair.
-        */
-       CursorPair(View &view);
-
-       /**
-        * Returns a pointer to the first cursor.
-        */
-       std::shared_ptr<Cursor> first() const;
-
-       /**
-        * Returns a pointer to the second cursor.
-        */
-       std::shared_ptr<Cursor> second() const;
-
-public:
-       QRectF get_label_rect(const QRect &rect) const;
-
-       void draw_markers(QPainter &p,
-               const QRect &rect, unsigned int prefix);
-
-       void draw_viewport_background(QPainter &p, const QRect &rect);
-
-       void draw_viewport_foreground(QPainter &p, const QRect &rect);
-
-       void compute_text_size(QPainter &p, unsigned int prefix);
-
-       std::pair<float, float> get_cursor_offsets() const;
-
-private:
-       std::shared_ptr<Cursor> first_, second_;
-       const View &view_;
-
-       QSizeF text_size_;
-};
-
-} // namespace view
-} // namespace pv
-
-#endif // PULSEVIEW_PV_VIEW_CURSORPAIR_H