From 192a06da8df1bf95e96d77d2fa0736bb7d2fe58b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 16 Jul 2012 23:57:45 -0500 Subject: Add trigger display --- clients/tde/src/widgets/tracewidget.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'clients/tde/src/widgets/tracewidget.h') diff --git a/clients/tde/src/widgets/tracewidget.h b/clients/tde/src/widgets/tracewidget.h index 9a478ac..130904f 100644 --- a/clients/tde/src/widgets/tracewidget.h +++ b/clients/tde/src/widgets/tracewidget.h @@ -42,6 +42,8 @@ class TQRectF double m_h; }; +typedef TQValueList TraceNumberList; + class TraceData : public TQObject { Q_OBJECT @@ -114,6 +116,7 @@ class CursorData : public TQObject bool enabled; TQt::Orientation orientation; double position; + TraceNumberList activeTraceLabelList; TQString cursorName; TQLabel* paramLabel; TQPushButton* singleIncrBtn; @@ -199,6 +202,11 @@ class TraceWidget : public TQWidget double cursorPosition(uint cursorNumber); void setCursorPosition(uint cursorNumber, double position); + TQColor cursorColor(uint cursorNumber); + void setCursorColor(uint cursorNumber, TQColor); + TQColor cursorHighlightColor(uint cursorNumber); + void setCursorHighlightColor(uint cursorNumber, TQColor); + void setCursorActiveTraceList(uint cursorNumber, TraceNumberList list); bool cursorEnabled(uint cursorNumber); void setCursorEnabled(uint cursorNumber, bool enabled); TQString cursorName(uint cursorNumber); @@ -213,6 +221,8 @@ class TraceWidget : public TQWidget void setZoomBoxEnabled(bool enabled); TQRectF zoomCursorBox(); void setZoomCursorBox(const TQRectF rect); + unsigned int zoomCursorStartIndex(); + void setZoomCursorStartIndex(unsigned int index); static TQString prettyFormat(double value, double rangeDetectValue, TQString baseUnits, unsigned int precision=3); @@ -237,6 +247,7 @@ class TraceWidget : public TQWidget unsigned int m_vertDivs; unsigned int m_cursorDarkness; unsigned int m_zoomBoxDarkness; + unsigned int m_zoomCursorStartIndex; bool m_zoomBoxEnabled; TQRectF m_zoomBoxPrev; TraceList m_traceArray; -- cgit v1.2.1