KD Chart 2: KDChartValueTrackerAttributes.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# KDChartValueTrackerAttributes.h

Go to the documentation of this file.

    00001 /* -*- Mode: C++ -*-
    00002    KDChart - a multi-platform charting engine
    00003    */
    00004
    00005 /****************************************************************************
    00006  ** Copyright (C) 2005-2007 Klaralvdalens Datakonsult AB.  All rights reserved.
    00007  **
    00008  ** This file is part of the KD Chart library.
    00009  **
    00010  ** This file may be distributed and/or modified under the terms of the
    00011  ** GNU General Public License version 2 as published by the Free Software
    00012  ** Foundation and appearing in the file LICENSE.GPL included in the
    00013  ** packaging of this file.
    00014  **
    00015  ** Licensees holding valid commercial KD Chart licenses may use this file in
    00016  ** accordance with the KD Chart Commercial License Agreement provided with
    00017  ** the Software.
    00018  **
    00019  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    00020  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    00021  **
    00022  ** See http://www.kdab.net/kdchart for
    00023  **   information about KD Chart Commercial License Agreements.
    00024  **
    00025  ** Contact info@kdab.net if any conditions of this
    00026  ** licensing are not clear to you.
    00027  **
    00028  **********************************************************************/
    00029
    00030 #ifndef KDCHARTVALUETRACKERATTRIBUTES_H
    00031 #define KDCHARTVALUETRACKERATTRIBUTES_H
    00032
    00033 #include <QDebug>
    00034 #include <QMetaType>
    00035 #include "KDChartGlobal.h"
    00036
    00037 namespace KDChart {
    00038
    00049     class KDCHART_EXPORT ValueTrackerAttributes
    00050     {
    00051         public:
    00052             ValueTrackerAttributes();
    00053             ValueTrackerAttributes( const ValueTrackerAttributes& );
    00054             ValueTrackerAttributes &operator= ( const ValueTrackerAttributes& );
    00055
    00056             ~ValueTrackerAttributes();
    00057
    00061             void setPen( const QPen& pen );
    00062
    00066             QPen pen() const;
    00067
    00073             void setAreaBrush( const QBrush& brush );
    00074
    00078             QBrush areaBrush() const;
    00079
    00084             void setMarkerSize( const QSizeF& size );
    00085
    00089             QSizeF markerSize() const;
    00090
    00095             void setEnabled( bool enabled );
    00096
    00100             bool isEnabled() const;
    00101
    00102             bool operator==( const ValueTrackerAttributes& ) const;
    00103             inline bool operator!=( const ValueTrackerAttributes& other ) const { return !operator==(other); }
    00104
    00105         private:
    00106             KDCHART_DECLARE_PRIVATE_BASE_VALUE( ValueTrackerAttributes )
    00107     }; // End of class ValueTrackerAttributes
    00108
    00109 }
    00110
    00111 #if !defined(QT_NO_DEBUG_STREAM)
    00112 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::ValueTrackerAttributes& );
    00113 #endif /* QT_NO_DEBUG_STREAM */
    00114
    00115 Q_DECLARE_METATYPE( KDChart::ValueTrackerAttributes )
    00116 KDCHART_DECLARE_SWAP_SPECIALISATION( KDChart::ValueTrackerAttributes )
    00117 Q_DECLARE_TYPEINFO( KDChart::ValueTrackerAttributes, Q_MOVABLE_TYPE );
    00118
    00119 #endif // KDCHARTVALUETRACKERATTRIBUTES_H