15#ifndef CUSTOMPLOT_MARKER_H
16#define CUSTOMPLOT_MARKER_H
42 int index()
const {
return index_; }
56 static QString
toHex(
long long value);
62 double xCoord()
const {
return x_coord_; }
114 MarkerDialog(QWidget* parent,
bool showToMove,
const QVector<Marker*>& markers);
137 void comboItemChanged(
const QString& text);
144 QString selected_marker_;
149 void reject()
override;
A dialog for interacting with and selecting markers.
Definition marker_dialog.h:104
QString selectedMarker() const
Gets the currently selected marker's identifier.
Definition marker_dialog.h:131
QString getText() const
Gets the resulting text input from the dialog.
Definition marker_dialog.h:125
~MarkerDialog() final
Destroys the MarkerDialog.
A widget representing a marker on a graph or timeline.
Definition marker_dialog.h:21
void setVisibility(const bool v)
Sets the visibility of the marker.
Definition marker_dialog.h:80
static QString toHex(long long value)
Converts a value to its hexadecimal string representation.
Definition marker_dialog.cpp:85
bool visible() const
Checks if the marker is visible.
Definition marker_dialog.h:86
QString name() const
Gets the formatted name of the marker.
Definition marker_dialog.h:36
bool isPosMarker() const
Checks if this is a position marker.
Definition marker_dialog.h:74
static int index(const Marker *m)
Retrieves the index of a given marker pointer.
Definition marker_dialog.h:49
double xCoord() const
Gets the X coordinate of the marker.
Definition marker_dialog.h:62
int index() const
Gets the index of the marker.
Definition marker_dialog.h:42
void setXCoord(double value)
Sets the X coordinate of the marker.
Definition marker_dialog.cpp:94