summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/widgets/tracewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tde/src/widgets/tracewidget.h')
-rw-r--r--clients/tde/src/widgets/tracewidget.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/clients/tde/src/widgets/tracewidget.h b/clients/tde/src/widgets/tracewidget.h
index f7afa12..c034149 100644
--- a/clients/tde/src/widgets/tracewidget.h
+++ b/clients/tde/src/widgets/tracewidget.h
@@ -1,7 +1,8 @@
-//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012
+//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012-2014
//Copyright: See COPYING file that comes with this distribution
#include <tqwidget.h>
+#include <tqscrollview.h>
#include <tqtrla.h>
@@ -12,6 +13,7 @@ class TQGridLayout;
class TQPushButton;
class TQToolButton;
class TraceWidget;
+class TraceLabelLayout;
class TQRectF
{
@@ -79,6 +81,7 @@ class TraceData : public TQObject
TQString horizontalUnits;
TQString verticalUnits;
TQLabel* paramLabel;
+ TQLabel* leftLabel;
TQLabel* graphStatusLabel;
TQLabel* graphStatusLabelInner;
TQToolButton* singleIncrBtn;
@@ -89,6 +92,7 @@ class TraceData : public TQObject
friend class TraceWidget;
friend class GraticuleWidget;
+ friend class TraceLabelLayout;
};
typedef TQMemArray<TraceData*> TraceList;
@@ -235,6 +239,8 @@ class TraceWidget : public TQWidget
unsigned int zoomCursorStartIndex();
void setZoomCursorStartIndex(unsigned int index);
+ void showLeftTraceInfoArea(bool show);
+
double traceOffset(uint traceNumber);
static TQString prettyFormat(double value, double rangeDetectValue, TQString baseUnits, unsigned int precision=3);
@@ -271,15 +277,36 @@ class TraceWidget : public TQWidget
CursorList m_cursorArray;
TQGridLayout* m_primaryLayout;
TQGridLayout* m_rightPaneLayout;
+ TQGridLayout* m_leftPaneLayout;
TQGridLayout* m_traceLabelLayout;
TQGridLayout* m_infoLabelLayout;
TQGridLayout* m_cursorLabelLayout;
+ TraceLabelLayout* m_traceLeftLabelLayout;
TQVBoxLayout* m_statusLabelLayout;
TQVBoxLayout* m_statusLabelLayoutInner;
GraticuleWidget* m_graticuleWidget;
bool m_useAbsoluteHorizontalRange;
+ bool m_showLeftTraceInfoArea;
friend class GraticuleWidget;
friend class TraceData;
friend class CursorData;
+ friend class TraceLabelLayout;
+};
+
+class TraceScrollWidget : public TQScrollView
+{
+ Q_OBJECT
+
+ public:
+ TraceScrollWidget(TQWidget* = 0, const char* = 0);
+ ~TraceScrollWidget();
+
+ TraceWidget* traceWidget();
+
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
+
+ private:
+ TraceWidget* m_traceWidget;
}; \ No newline at end of file