diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-15 23:43:05 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-15 23:43:05 -0500 |
commit | bdc8bd48cfeb8fed62390e5e2f98feed55a2daff (patch) | |
tree | 2b42432eb4a00d9924f0572306d0a1cc18c83711 /clients/tde/src/part/scope | |
parent | 124c87bfad3c10265307d3155d7441648224d031 (diff) | |
download | ulab-bdc8bd48cfeb8fed62390e5e2f98feed55a2daff.tar.gz ulab-bdc8bd48cfeb8fed62390e5e2f98feed55a2daff.zip |
Enhance cursor handling
Diffstat (limited to 'clients/tde/src/part/scope')
-rw-r--r-- | clients/tde/src/part/scope/part.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clients/tde/src/part/scope/part.cpp b/clients/tde/src/part/scope/part.cpp index ae27923..b0e72de 100644 --- a/clients/tde/src/part/scope/part.cpp +++ b/clients/tde/src/part/scope/part.cpp @@ -64,6 +64,16 @@ ScopePart::ScopePart( TQWidget *parentWidget, const char *widgetName, TQObject * m_updateTimeoutTimer = new TQTimer(this); connect(m_updateTimeoutTimer, SIGNAL(timeout()), this, SLOT(mainEventLoop())); + // Initialize data + m_hdivs = 0; + m_vdivs = 0; + for (int traceno=0; traceno<=MAXTRACES; traceno++) { + m_samplesInTrace[traceno] = 0; + m_channelActive[traceno] = false; + m_voltsDiv[traceno] = 0; + m_secsDiv[traceno] = 0; + } + // Create widgets m_base = new ScopeBase(widget()); m_traceWidget = m_base->traceWidget; |