summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-04 21:45:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-04 21:45:57 -0600
commit63b68e2dfb5c987f474e5a58f7ff3e299ec7cf01 (patch)
treee78f5ef25757dbafa2899ec5a9076d3188600f15 /clients/tde/src/part
parentf65487c88290f1c8e40529ab4e0bc02079e6fc34 (diff)
downloadulab-63b68e2dfb5c987f474e5a58f7ff3e299ec7cf01.tar.gz
ulab-63b68e2dfb5c987f474e5a58f7ff3e299ec7cf01.zip
Add ability to set digital trace viewer cursors with the mouse
Fix oversized cursor control buttons
Diffstat (limited to 'clients/tde/src/part')
-rw-r--r--clients/tde/src/part/logicanalyzer/part.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/clients/tde/src/part/logicanalyzer/part.cpp b/clients/tde/src/part/logicanalyzer/part.cpp
index fbece40..e3a9675 100644
--- a/clients/tde/src/part/logicanalyzer/part.cpp
+++ b/clients/tde/src/part/logicanalyzer/part.cpp
@@ -130,18 +130,24 @@ LogicAnalyzerPart::LogicAnalyzerPart( TQWidget *parentWidget, const char *widget
m_traceWidget->setLeftTraceInfoAreaFitSpacing(10);
m_traceWidget->showLeftCursorTraceInfoArea(true);
m_traceWidget->setMinimumPixelsPerHorizDiv(30);
- m_traceWidget->setNumberOfCursors(2);
- m_traceWidget->setTraceInfoCursor(1);
+ m_traceWidget->setNumberOfCursors(3);
+ m_traceWidget->setTraceInfoCursor(2);
+ m_traceWidget->setHoverCursor(2);
m_traceWidget->setCursorColor(0, TQColor(0, 255, 0));
m_traceWidget->setCursorColor(1, TQColor(0, 255, 0));
+ m_traceWidget->setCursorColor(2, TQColor(255, 255, 0));
m_traceWidget->setCursorHighlightColor(0, TQColor(192, 255, 192));
m_traceWidget->setCursorHighlightColor(1, TQColor(192, 255, 192));
+ m_traceWidget->setCursorHighlightColor(2, TQColor(255, 255, 192));
m_traceWidget->setCursorOrientation(0, TQt::Vertical);
m_traceWidget->setCursorOrientation(1, TQt::Vertical);
+ m_traceWidget->setCursorOrientation(2, TQt::Vertical);
m_traceWidget->setCursorEnabled(0, true);
m_traceWidget->setCursorEnabled(1, true);
+ m_traceWidget->setCursorEnabled(2, true);
m_traceWidget->setCursorName(0, "Cursor V1");
m_traceWidget->setCursorName(1, "Cursor V2");
+ m_traceWidget->setCursorName(2, "Cursor VH");
m_traceWidget->setCursorPosition(0, 25);
m_traceWidget->setCursorPosition(1, 75);
TraceNumberList activeTraces;
@@ -150,7 +156,9 @@ LogicAnalyzerPart::LogicAnalyzerPart( TQWidget *parentWidget, const char *widget
}
m_traceWidget->setCursorActiveTraceList(0, activeTraces);
m_traceWidget->setCursorActiveTraceList(1, activeTraces);
+ m_traceWidget->setCursorActiveTraceList(2, activeTraces);
m_traceWidget->setZoomBoxEnabled(false);
+ m_traceWidget->setHorizCursorDirectClickEnabled(true);
connect(m_base->acqStart, SIGNAL(clicked()), this, SLOT(startDAQ()));
connect(m_base->acqStop, SIGNAL(clicked()), this, SLOT(stopDAQ()));