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

qwavmarkerlayer.h

00001 /***************************************************************************
00002                           markerviewlayer.h  -  description
00003                              -------------------
00004     begin                : Thu Nov 21 2002
00005     copyright            : (C) 2002 by Peter Eschler
00006     email                : eschler@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU Library General Public License as       *
00013  *   published by  the Free Software Foundation; either version 2 of the   *
00014  *   License, or (at your option) any later version.                       *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef QwavMARKERVIEWLAYER_H
00019 #define QwavMARKERVIEWLAYER_H
00020 
00021 //---------------------------------------------------------------------------
00022 // Includes: project
00023 //---------------------------------------------------------------------------
00024 
00025 #include "qwavviewlayer.h"
00026 #include "qwavmarker.h"
00027 
00028 //---------------------------------------------------------------------------
00029 // Includes: Qt
00030 //---------------------------------------------------------------------------
00031 
00032 #include <qcolor.h>
00033 #include <qpixmap.h>
00034 
00035 Qwav_BEGIN_NAMESPACE
00036 
00037 //---------------------------------------------------------------------------
00038 // Class: QwavMarkerLayer
00039 //---------------------------------------------------------------------------
00040 
00046 class QWAV_EXPORTIMPORT QwavMarkerLayer : public QwavViewLayer
00047 {
00048 
00049 public: 
00050     QwavMarkerLayer();
00051     ~QwavMarkerLayer();
00052 
00053     virtual void paintLayer(QwavWaveView* v, const QRect& rect );
00054     virtual const string getName() const { return "QwavMarkerLayer"; }
00055 
00056     inline void setColor(const QColor& c);
00057     inline const QColor& getColor() const;
00058 
00059 private:
00060     QColor  _markerColor;
00061 
00062     QPixmap _markerBlue;
00063 };
00064 
00065 //---------------------------------------------------------------------------
00066 // Method: setColor
00067 //---------------------------------------------------------------------------
00068 
00069 void QwavMarkerLayer::setColor(const QColor& c)
00070 {
00071     _markerColor = c;
00072 }
00073 
00074 
00075 //---------------------------------------------------------------------------
00076 // Method: getColor
00077 //---------------------------------------------------------------------------
00078     
00079 const QColor& QwavMarkerLayer::getColor() const
00080 {
00081     return _markerColor;    
00082 }
00083 
00084 
00085 Qwav_END_NAMESPACE
00086 
00087 #endif  // QwavMARKERVIEWLAYER_H

Generated on Mon Jan 20 00:24:54 2003 for Qwav by doxygen1.2.16