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

qwavbackgroundlayer.h

00001 /***************************************************************************
00002                           backgroundviewlayer.h  -  description
00003                              -------------------
00004     begin                : Sun Nov 17 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 QwavBACKGROUNDLAYER_H
00019 #define QwavBACKGROUNDLAYER_H
00020 
00021 #include "qwavviewlayer.h"
00022 
00023 #include <qcolor.h>
00024 #include <qpixmap.h>
00025 
00026 Qwav_BEGIN_NAMESPACE
00027 
00033 class QWAV_EXPORTIMPORT QwavBackgroundLayer : public QwavViewLayer
00034 {
00035     
00036 public: 
00037     QwavBackgroundLayer();
00038     virtual ~QwavBackgroundLayer();
00039 
00040     virtual void         paintLayer(QwavWaveView* v, const QRect& rect );
00041     virtual const string getName() const { return "QwavBackgroundLayer"; }
00042     
00043     const QColor&        getBgColor() const;    
00044     void                 setBgColor(const QColor&);
00045     
00046     inline bool          useBgPixmap() const;
00047     inline void          setUseBgPixmap(bool );
00048 
00049 private:
00050     bool    _useBgPixmap;
00051 
00052     QColor  _bgColor;
00053     QPixmap *_bgPixmap;
00054 };
00055 
00056 bool QwavBackgroundLayer::useBgPixmap() const
00057 {
00058     return _useBgPixmap;
00059 }
00060 
00061 void QwavBackgroundLayer::setUseBgPixmap(bool b)
00062 {
00063     _useBgPixmap = b;
00064 }
00065 
00066 
00067 Qwav_END_NAMESPACE
00068 
00069 #endif // QwavBACKGROUNDLAYER_H

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