KDEUI
kplotpoint.h
Go to the documentation of this file.
00001 /* -*- C++ -*- 00002 This file is part of the KDE libraries 00003 Copyright (C) 2003 Jason Harris <kstars@30doradus.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KPLOTPOINT_H 00022 #define KPLOTPOINT_H 00023 00024 #include <kdeui_export.h> 00025 00026 #include <QtCore/QString> 00027 00028 class QPointF; 00029 00040 class KDEUI_EXPORT KPlotPoint { 00041 public: 00045 explicit KPlotPoint(); 00046 00056 KPlotPoint( double x, double y, const QString &label = QString(), double width = 0.0 ); 00057 00066 explicit KPlotPoint( const QPointF &p, const QString &label = QString(), double width = 0.0 ); 00067 00071 ~KPlotPoint(); 00072 00076 QPointF position() const; 00077 00082 void setPosition( const QPointF &pos ); 00083 00087 double x() const; 00088 00092 void setX( double x ); 00093 00097 double y() const; 00098 00102 void setY( double y ); 00103 00107 QString label() const; 00108 00112 void setLabel( const QString &label ); 00113 00117 double barWidth() const; 00118 00122 void setBarWidth( double w ); 00123 00124 private: 00125 class Private; 00126 Private * const d; 00127 00128 Q_DISABLE_COPY( KPlotPoint ) 00129 }; 00130 00131 #endif
KDE 4.6 API Reference