diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-30 16:46:20 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-30 16:46:20 -0500 |
commit | 408e828f4732c9bb4aa3673c87d85109e06c08e1 (patch) | |
tree | ecd25f872402cea120a442d3f2744d74d699b675 /clients/tde/src/widgets/tracewidget.h | |
parent | f8d372779417eeb809088893ca58ad6a318ab418 (diff) | |
download | ulab-408e828f4732c9bb4aa3673c87d85109e06c08e1.tar.gz ulab-408e828f4732c9bb4aa3673c87d85109e06c08e1.zip |
Fixups for ca server
Add very preliminary client for ca and TDE
Diffstat (limited to 'clients/tde/src/widgets/tracewidget.h')
-rw-r--r-- | clients/tde/src/widgets/tracewidget.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/clients/tde/src/widgets/tracewidget.h b/clients/tde/src/widgets/tracewidget.h new file mode 100644 index 0000000..19c7806 --- /dev/null +++ b/clients/tde/src/widgets/tracewidget.h @@ -0,0 +1,40 @@ +//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012 +//Copyright: See COPYING file that comes with this distribution + +#include <tqwidget.h> + +class TQPixmap; + +class TraceWidget : public TQWidget +{ + Q_OBJECT + + public: + TraceWidget(TQWidget* = 0, const char* = 0); + ~TraceWidget(); + + void setNumberOfSamples(unsigned int samples); + void setNumberOfHorizontalDivisions(unsigned int divisions); + void setNumberOfVerticalDivisions(unsigned int divisions); + void setDisplayLimits(double x, double y, double w, double h); + + double* samples(); + + protected: + virtual void paintEvent(TQPaintEvent*); + virtual void resizeEvent(TQResizeEvent *); + + private slots: + void updateGraticule(); + + private: + unsigned int m_samples; + unsigned int m_horizDivs; + unsigned int m_vertDivs; + double m_leftEdge; + double m_rightEdge; + double m_topEdge; + double m_bottomEdge; + double* m_sampleArray; + TQPixmap* m_graticulePixmap; +};
\ No newline at end of file |