qintervalsaxis.h
64 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" | ||||
Michal Klocek
|
r1613 | #include "qvaluesaxis.h" | ||
Michal Klocek
|
r1540 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Marek Rosa
|
r1701 | class QIntervalsAxisPrivate; | ||
Michal Klocek
|
r1540 | |||
Marek Rosa
|
r1701 | class QTCOMMERCIALCHART_EXPORT QIntervalsAxis : public QValuesAxis | ||
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
|
r1701 | void append(const QString& label, qreal interval = 1); | ||
void remove(const QString& label); | ||||
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 | ||||