Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

gapewaveformpalette.h

00001 //gapewaveformpalette.h
00002 //Dave Chisholm dkc@ccrma.stanford.edu
00003 //5/24/00
00004 
00005 #ifndef _GAPE_WAVEFORM_PALETTE_H_
00006 #define _GAPE_WAVEFORM_PALETTE_H_
00007 
00008 #include "gapesimplecontroller.h"
00009 #include "gapedrawingwidget.h"
00010 
00018 class GapeWaveformPalette : public GapeSimpleController
00019 {
00020   Q_OBJECT
00021     public:
00022         GapeDrawingWidget* palette;
00023 
00024         GapeWaveformPalette(QWidget* parent=0, const char * name=0, const QPixmap& icon=0);
00025 
00029         ~GapeWaveformPalette();
00030 
00031     public slots:
00032         virtual void setPoint(double x, double y);
00033 
00034         virtual void setRawData(double* xData, double* yData, int bufferSize) {
00035             palette->setRawData(xData, yData, bufferSize);
00036             requestUpdate();
00037         }
00038 
00039     signals:
00040         void emitPoint(double x, double y);
00041 
00042     protected:
00043         virtual void updateDisplay() {
00044             palette->replot();
00045         }
00046 };
00047 #endif

Generated at Thu Jun 21 13:28:50 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001