##// END OF EJS Templates
modeldata example documented with explanations....
modeldata example documented with explanations. Some more fixes to the docs.

File last commit:

r794:4c76de65bbac
r935:f71e86066044
Show More
qchartaxis.h
134 lines | 3.7 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
Adds qchartaxis stub
r72 #ifndef QCHARTAXIS_H_
#define QCHARTAXIS_H_
Jani Honkonen
Change includes in public headers from #include "xxx" -> #include <xxx>
r697 #include <qchartglobal.h>
#include <qchartaxiscategories.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
Refactors axis handling...
r223 class QTCOMMERCIALCHART_EXPORT QChartAxis : public QObject
Michal Klocek
Adds qchartaxis stub
r72 {
Michal Klocek
Refactors axis handling...
r223 Q_OBJECT
Michal Klocek
Adds qchartaxis stub
r72 public:
Michal Klocek
Adds loosenumber algorithm...
r678
sauimone
more minor code review fixes
r745 QChartAxis(QObject *parent =0);
Michal Klocek
Refactors axis handling...
r223 ~QChartAxis();
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //axis handling
Tero Ahola
Internal review: Removed extra semicolons
r760 bool isAxisVisible() const { return m_axisVisible; }
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void setAxisVisible(bool visible);
sauimone
more minor code review fixes
r745 void setAxisPen(const QPen &pen);
Tero Ahola
Internal review: Removed extra semicolons
r760 QPen axisPen() const { return m_axisPen; }
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //grid handling
Tero Ahola
Internal review: Removed extra semicolons
r760 bool isGridLineVisible() const { return m_gridLineVisible; }
Michal Klocek
Renames Grid to GridLine
r535 void setGridLineVisible(bool visible);
sauimone
more minor code review fixes
r745 void setGridLinePen(const QPen &pen);
Tero Ahola
Internal review: Removed extra semicolons
r760 QPen gridLinePen() const { return m_gridLinePen; }
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //labels handling
Tero Ahola
Internal review: Removed extra semicolons
r760 bool labelsVisible() const { return m_labelsVisible; }
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void setLabelsVisible(bool visible);
sauimone
more minor code review fixes
r745 void setLabelsPen(const QPen &pen);
Michal Klocek
Adds more axis handling...
r176 QPen labelsPen() const { return m_labelsPen;}
sauimone
more minor code review fixes
r745 void setLabelsBrush(const QBrush &brush);
Tero Ahola
Internal review: Removed extra semicolons
r760 QBrush labelsBrush() const { return m_labelsBrush; }
sauimone
more minor code review fixes
r745 void setLabelsFont(const QFont &font);
Tero Ahola
Internal review: Removed extra semicolons
r760 QFont labelsFont() const { return m_labelsFont; }
Michal Klocek
Refactors axis handling...
r223 void setLabelsAngle(int angle);
Tero Ahola
Internal review: Removed extra semicolons
r760 int labelsAngle() const { return m_labelsAngle; }
Michal Klocek
Adds more axis handling...
r176
Michal Klocek
Refactors axis handling...
r223 //shades handling
Tero Ahola
Internal review: Removed extra semicolons
r760 bool shadesVisible() const { return m_shadesVisible; }
Michal Klocek
Adds more axis handling...
r176 void setShadesVisible(bool visible);
sauimone
more minor code review fixes
r745 void setShadesPen(const QPen &pen);
Tero Ahola
Internal review: Removed extra semicolons
r760 QPen shadesPen() const { return m_shadesPen; }
sauimone
more minor code review fixes
r745 void setShadesBrush(const QBrush &brush);
Tero Ahola
Internal review: Removed extra semicolons
r760 QBrush shadesBrush() const { return m_shadesBrush; }
Michal Klocek
Adds opacity to shades
r188 void setShadesOpacity(qreal opacity);
Tero Ahola
Internal review: Removed extra semicolons
r760 qreal shadesOpacity() const { return m_shadesOpacity; }
Michal Klocek
Adds opacity to shades
r188
Michal Klocek
Refactors axis handling...
r223 //range handling
void setMin(qreal min);
Tero Ahola
Internal review: Removed extra semicolons
r760 qreal min() const { return m_min; }
Michal Klocek
Refactors axis handling...
r223 void setMax(qreal max);
Tero Ahola
Internal review: Removed extra semicolons
r760 qreal max() const { return m_max; }
Michal Klocek
Refactors axis handling...
r223 void setRange(qreal min, qreal max);
//ticks handling
void setTicksCount(int count);
int ticksCount() const { return m_ticksCount;}
Michal Klocek
Adds qchartaxiscategories class
r445
Michal Klocek
Changes public API for nice nuumbers -> setNiceNumbers(bool enabled)
r687 void setNiceNumbers(bool enabled);
bool niceNumbers() const { return m_niceNumbers;}
Michal Klocek
Adds loosenumber algorithm...
r678
Michal Klocek
Adds draft of axis bar label support
r497 QChartAxisCategories* categories() { return &m_category; }
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:
Michal Klocek
Refactors axis handling...
r223 void minChanged(qreal min);
void maxChanged(qreal max);
Michal Klocek
Adds missing ticks hadnling
r554 void rangeChanged(qreal min, qreal max);
void ticksCountChanged(int count);
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Adds qchartaxiscategories class
r445 //interal signal
Michal Klocek
Refactor domain model...
r439 void updated();
Michal Klocek
Changes public API for nice nuumbers -> setNiceNumbers(bool enabled)
r687 void changed(qreal min, qreal max, int tickCount,bool niceNumbers);
Michal Klocek
Refactor domain model...
r439 //internal slot
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Adds loosenumber algorithm...
r678 void handleAxisRangeChanged(qreal min, qreal max,int count);
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 private:
bool m_axisVisible;
Michal Klocek
Adds refactored axis to presenter
r140 QPen m_axisPen;
QBrush m_axisBrush;
Michal Klocek
Renames Grid to GridLine
r535 bool m_gridLineVisible;
QPen m_gridLinePen;
Michal Klocek
Adds more axis handling...
r176
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool m_labelsVisible;
Michal Klocek
Adds more axis handling...
r176 QPen m_labelsPen;
QBrush m_labelsBrush;
QFont m_labelsFont;
Michal Klocek
Refactors axis handling...
r223 int m_labelsAngle;
Michal Klocek
Adds more axis handling...
r176
bool m_shadesVisible;
QPen m_shadesPen;
QBrush m_shadesBrush;
Michal Klocek
Adds opacity to shades
r188 qreal m_shadesOpacity;
Michal Klocek
Refactors axis handling...
r223 qreal m_min;
qreal m_max;
Michal Klocek
Adds opacity to shades
r188
Michal Klocek
Refactors axis handling...
r223 int m_ticksCount;
Michal Klocek
Adds qchartaxiscategories class
r445 QChartAxisCategories m_category;
Michal Klocek
Adds loosenumber algorithm...
r678
Michal Klocek
Changes public API for nice nuumbers -> setNiceNumbers(bool enabled)
r687 bool m_niceNumbers;
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_ */