00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QwavAVERAGELAYER_H
00019 #define QwavAVERAGELAYER_H
00020
00021 #include "qwavviewlayer.h"
00022 #include <qcolor.h>
00023
00024 #include <string>
00025
00026 Qwav_BEGIN_NAMESPACE
00027
00033 class QWAV_EXPORTIMPORT QwavAverageLayer : public QwavViewLayer
00034 {
00035 public:
00036 QwavAverageLayer();
00037 ~QwavAverageLayer();
00038
00039 virtual void paintLayer(QwavWaveView* v, const QRect& rect );
00040 virtual const string getName() const { return "QwavAverageLayer"; }
00041
00042 void setAverageColor(const QColor& c);
00043 const QColor& getAverageColor() const;
00044
00045 private:
00046 QColor _averageColor;
00047
00048 };
00049
00050 Qwav_END_NAMESPACE
00051
00052 #endif // QwavAVERAGELAYER_H