##// END OF EJS Templates
Fixed documentation of qmlchart demo
Fixed documentation of qmlchart demo

File last commit:

r1517:7e86792a50b2
r1520:a557edf16956
Show More
qaxis.h
136 lines | 4.6 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** 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$
**
****************************************************************************/
Michal Klocek
Changes QChartAxis -> QAxis
r1006 #ifndef QAXIS_H
#define QAXIS_H
Michal Klocek
Adds qchartaxis stub
r72
Jani Honkonen
Change includes in public headers from #include "xxx" -> #include <xxx>
r697 #include <qchartglobal.h>
Michal Klocek
Changes QChartAxisCategories -> QAxisCategories
r1032 #include <qaxiscategories.h>
Michal Klocek
Adds refactored axis to presenter
r140 #include <QPen>
Michal Klocek
Adds more axis handling...
r176 #include <QFont>
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Changes QChartAxis -> QAxis
r1006 class QAxisPrivate;
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963
Michal Klocek
Changes QChartAxis -> QAxis
r1006 class QTCOMMERCIALCHART_EXPORT QAxis : public QObject
Michal Klocek
Adds qchartaxis stub
r72 {
Michal Klocek
Refactors axis handling...
r223 Q_OBJECT
Tero Ahola
Added missing properties to QAxis
r1449 Q_PROPERTY(bool visible READ isAxisVisible WRITE setAxisVisible NOTIFY visibleChanged)
Q_PROPERTY(QColor color READ axisPenColor WRITE setAxisPenColor NOTIFY colorChanged)
Q_PROPERTY(bool labelsVisible READ labelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
Tero Ahola
color and borderColor properties to XY charts; removed unnecessary signals
r1481 Q_PROPERTY(int labelsAngle READ labelsAngle WRITE setLabelsAngle)
Jani Honkonen
Add qml Font properties & docs
r1517 Q_PROPERTY(QFont labelsFont READ labelsFont WRITE setLabelsFont)
Tero Ahola
Added missing properties to QAxis
r1449 Q_PROPERTY(QColor labelsColor READ labelsColor WRITE setLabelsColor NOTIFY labelsColorChanged)
Q_PROPERTY(bool gridVisible READ isGridLineVisible WRITE setGridLineVisible NOTIFY gridVisibleChanged)
Q_PROPERTY(bool shadesVisible READ shadesVisible WRITE setShadesVisible NOTIFY shadesVisibleChanged)
Q_PROPERTY(QColor shadesColor READ shadesColor WRITE setShadesColor NOTIFY shadesColorChanged)
Q_PROPERTY(QColor shadesBorderColor READ shadesBorderColor WRITE setShadesBorderColor NOTIFY shadesBorderColorChanged)
Tero Ahola
Property notifications: axis minmax, bar properties, xyseries p-visibl and count
r1465 Q_PROPERTY(qreal min READ min WRITE setMin NOTIFY minChanged)
Q_PROPERTY(qreal max READ max WRITE setMax NOTIFY maxChanged)
Tero Ahola
color and borderColor properties to XY charts; removed unnecessary signals
r1481 Q_PROPERTY(int ticksCount READ ticksCount WRITE setTicksCount)
Q_PROPERTY(bool niceNumbersEnabled READ niceNumbersEnabled WRITE setNiceNumbersEnabled)
Tero Ahola
Added axis to QML api
r1096
Michal Klocek
Adds qchartaxis stub
r72 public:
Michal Klocek
Adds loosenumber algorithm...
r678
Michal Klocek
Changes QChartAxis -> QAxis
r1006 QAxis(QObject *parent =0);
~QAxis();
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //axis handling
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 bool isAxisVisible() const;
Tero Ahola
Default to true in boolean setters
r987 void setAxisVisible(bool visible = true);
sauimone
more minor code review fixes
r745 void setAxisPen(const QPen &pen);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QPen axisPen() const;
Tero Ahola
Added missing properties to QAxis
r1449 void setAxisPenColor(QColor color);
QColor axisPenColor() const;
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //grid handling
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 bool isGridLineVisible() const;
Tero Ahola
Default to true in boolean setters
r987 void setGridLineVisible(bool visible = true);
sauimone
more minor code review fixes
r745 void setGridLinePen(const QPen &pen);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QPen gridLinePen() const;
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //labels handling
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 bool labelsVisible() const;
Tero Ahola
Default to true in boolean setters
r987 void setLabelsVisible(bool visible = true);
sauimone
more minor code review fixes
r745 void setLabelsPen(const QPen &pen);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QPen labelsPen() const;
sauimone
more minor code review fixes
r745 void setLabelsBrush(const QBrush &brush);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QBrush labelsBrush() const;
sauimone
more minor code review fixes
r745 void setLabelsFont(const QFont &font);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QFont labelsFont() const;
Michal Klocek
Refactors axis handling...
r223 void setLabelsAngle(int angle);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 int labelsAngle() const;
Tero Ahola
Added missing properties to QAxis
r1449 void setLabelsColor(QColor color);
QColor labelsColor() const;
Michal Klocek
Adds more axis handling...
r176
Michal Klocek
Refactors axis handling...
r223 //shades handling
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 bool shadesVisible() const;
Tero Ahola
Default to true in boolean setters
r987 void setShadesVisible(bool visible = true);
sauimone
more minor code review fixes
r745 void setShadesPen(const QPen &pen);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QPen shadesPen() const;
sauimone
more minor code review fixes
r745 void setShadesBrush(const QBrush &brush);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 QBrush shadesBrush() const;
Tero Ahola
Added missing properties to QAxis
r1449 void setShadesColor(QColor color);
QColor shadesColor() const;
void setShadesBorderColor(QColor color);
QColor shadesBorderColor() const;
Michal Klocek
Adds opacity to shades
r188
Michal Klocek
Refactors axis handling...
r223 //range handling
void setMin(qreal min);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 qreal min() const;
Michal Klocek
Refactors axis handling...
r223 void setMax(qreal max);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 qreal max() const;
Michal Klocek
Refactors axis handling...
r223 void setRange(qreal min, qreal max);
//ticks handling
void setTicksCount(int count);
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 int ticksCount() const;
Michal Klocek
Adds qchartaxiscategories class
r445
Tero Ahola
Default to true in boolean setters
r987 void setNiceNumbersEnabled(bool enable = true);
bool niceNumbersEnabled() const;
Michal Klocek
Adds loosenumber algorithm...
r678
Michal Klocek
Changes QChartAxisCategories -> QAxisCategories
r1032 QAxisCategories* categories();
Michal Klocek
Refactors axis handling...
r223
Michal Klocek
Adds axis show/hide to API
r534 void show();
void hide();
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
Tero Ahola
Added missing properties to QAxis
r1449 void visibleChanged(bool visible);
void labelsVisibleChanged(bool visible);
void gridVisibleChanged(bool visible);
Michal Klocek
Adds missing ticks hadnling
r554 void rangeChanged(qreal min, qreal max);
Tero Ahola
Added missing properties to QAxis
r1449 void colorChanged(QColor color);
void labelsColorChanged(QColor color);
void shadesVisibleChanged(bool visible);
void shadesColorChanged(QColor color);
void shadesBorderColorChanged(QColor color);
Tero Ahola
Property notifications: axis minmax, bar properties, xyseries p-visibl and count
r1465 void minChanged(qreal min);
void maxChanged(qreal max);
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 private:
Michal Klocek
Changes QChartAxis -> QAxis
r1006 QScopedPointer<QAxisPrivate> d_ptr;
Tero Ahola
Added missing properties to QAxis
r1449 Q_DISABLE_COPY(QAxis)
Michal Klocek
Adds pimpl for qchartaxis and qchartaxiscategories
r963 friend class ChartDataSet;
Michal Klocek
Changes QChartAxis -> QAxis
r1006 friend class ChartAxis;
Michal Klocek
Adds qchartaxis stub
r72 };
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Adds qchartaxis stub
r72 #endif /* QCHARTAXIS_H_ */