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

qwavposlayer.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 QwavPOSLAYER_H
00019 #define QwavPOSLAYER_H
00020 
00021 #include "qwavviewlayer.h"
00022 
00023 #include <qcolor.h>
00024 
00025 Qwav_BEGIN_NAMESPACE
00026 
00032 class QWAV_EXPORTIMPORT QwavPosLayer : public QwavViewLayer
00033 {
00034 
00035 public: 
00036     QwavPosLayer();
00037     ~QwavPosLayer();
00038 
00039     virtual void paintLayer(QwavWaveView* v, const QRect& rect );
00040     virtual const string getName() const { return "QwavPosLayer"; }
00041 
00042     inline void setColor(const QColor& c);
00043     inline const QColor& getColor() const;
00044 
00045     inline void setPosition(ulong pos);
00046     inline const ulong& position() const;
00047 
00048 private:
00049     ulong    _position;
00050     QColor  _markerColor;
00051 };
00052 
00053 void QwavPosLayer::setColor(const QColor& c)
00054 {
00055     _markerColor = c;
00056 }
00057     
00058 const QColor& QwavPosLayer::getColor() const
00059 {
00060     return _markerColor;    
00061 }
00062 
00063 void QwavPosLayer::setPosition(ulong pos)
00064 {
00065     _position = pos;
00066 }
00067     
00068 const ulong& QwavPosLayer::position() const
00069 {
00070     return _position;
00071 }
00072 
00073 Qwav_END_NAMESPACE
00074 
00075 #endif  // QwavPOSLAYER_H

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