projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeTrace: Replace magic number by proper calculation
[pulseview.git]
/
pv
/
view
/
cursor.hpp
diff --git
a/pv/view/cursor.hpp
b/pv/view/cursor.hpp
index fab7497e18830c53128277be14a801742105afb4..e64beaa9f626d68e6de7ebcd090231a6f73892da 100644
(file)
--- a/
pv/view/cursor.hpp
+++ b/
pv/view/cursor.hpp
@@
-18,8
+18,8
@@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PULSEVIEW_PV_VIEW_CURSOR_H
-#define PULSEVIEW_PV_VIEW_CURSOR_H
+#ifndef PULSEVIEW_PV_VIEW_CURSOR_H
PP
+#define PULSEVIEW_PV_VIEW_CURSOR_H
PP
#include "timemarker.hpp"
#include "timemarker.hpp"
@@
-48,6
+48,11
@@
public:
Cursor(View &view, double time);
public:
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.
*/
/**
* Gets the text to show in the marker.
*/
@@
-58,7
+63,7
@@
public:
* @param rect The rectangle of the ruler client area.
* @return Returns the label rectangle.
*/
* @param rect The rectangle of the ruler client area.
* @return Returns the label rectangle.
*/
- QRectF
get_label_rect(const QRect
&rect) const;
+ QRectF
label_rect(const QRectF
&rect) const;
private:
std::shared_ptr<Cursor> get_other_cursor() const;
private:
std::shared_ptr<Cursor> get_other_cursor() const;
@@
-67,4
+72,4
@@
private:
} // namespace view
} // namespace pv
} // namespace view
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_CURSOR_H
+#endif // PULSEVIEW_PV_VIEW_CURSOR_H
PP