qintervalsaxis.h
65 lines
| 1.7 KiB
| text/x-c
|
CLexer
Michal Klocek
|
r1540 | /**************************************************************************** | ||
** | ||||
** Copyright (C) 2012 Digia Plc | ||||
** All rights reserved. | ||||
** For any questions to Digia, please use contact form at http://qt.digia.com | ||||
** | ||||
** This file is part of the Qt Commercial Charts Add-on. | ||||
** | ||||
** $QT_BEGIN_LICENSE$ | ||||
** Licensees holding valid Qt Commercial licenses may use this file in | ||||
** accordance with the Qt Commercial License Agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and Digia. | ||||
** | ||||
** If you have questions regarding the use of this file, please use | ||||
** contact form at http://qt.digia.com | ||||
** $QT_END_LICENSE$ | ||||
** | ||||
****************************************************************************/ | ||||
#ifndef QCATEGORIESAXIS_H | ||||
#define QCATEGORIESAXIS_H | ||||
#include "qabstractaxis.h" | ||||
Marek Rosa
|
r1805 | #include "qvalueaxis.h" | ||
Michal Klocek
|
r1540 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Marek Rosa
|
r1701 | class QIntervalsAxisPrivate; | ||
Michal Klocek
|
r1540 | |||
Marek Rosa
|
r1804 | class QTCOMMERCIALCHART_EXPORT QIntervalsAxis : public QValueAxis | ||
Michal Klocek
|
r1540 | { | ||
Q_OBJECT | ||||
public: | ||||
Marek Rosa
|
r1701 | explicit QIntervalsAxis(QObject *parent = 0); | ||
~QIntervalsAxis(); | ||||
Michal Klocek
|
r1540 | |||
protected: | ||||
Marek Rosa
|
r1701 | QIntervalsAxis(QIntervalsAxisPrivate &d,QObject *parent = 0); | ||
Michal Klocek
|
r1540 | |||
public: | ||||
AxisType type() const; | ||||
Michal Klocek
|
r1613 | |||
Marek Rosa
|
r1799 | void append(const QString& label, qreal intervalEnd); | ||
Marek Rosa
|
r1701 | void remove(const QString& label); | ||
Marek Rosa
|
r1799 | void replaceLabel(const QString& oldLabel, const QString& newLabel); | ||
Michal Klocek
|
r1613 | |||
Marek Rosa
|
r1701 | void setFisrtIntervalMinimum(qreal min); | ||
Michal Klocek
|
r1613 | |||
Marek Rosa
|
r1701 | qreal intervalMin(const QString& intervalLabel) const; | ||
qreal intervalMax(const QString& intervalLabel) const; | ||||
Michal Klocek
|
r1613 | |||
Marek Rosa
|
r1701 | QStringList intervalsLabels(); | ||
Michal Klocek
|
r1541 | int count() const; | ||
sauimone
|
r1578 | |||
Michal Klocek
|
r1540 | |||
private: | ||||
Marek Rosa
|
r1701 | Q_DECLARE_PRIVATE(QIntervalsAxis) | ||
Q_DISABLE_COPY(QIntervalsAxis) | ||||
Michal Klocek
|
r1540 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QCATEGORIESAXIS_H | ||||