##// END OF EJS Templates
Removed resize hack from chartwidgettest theme change
Removed resize hack from chartwidgettest theme change

File last commit:

r803:a2705c21cb29
r824:921979357fc9
Show More
chartpresenter_p.h
106 lines | 2.9 KiB | text/x-c | CLexer
/ src / chartpresenter_p.h
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
Refactors qchart , adds line animation...
r131 #ifndef CHARTPRESENTER_H_
#define CHARTPRESENTER_H_
#include "qchartglobal.h"
Michal Klocek
Refactor themes...
r143 #include "qchart.h" //becouse of QChart::ChartThemeId //TODO
Michal Klocek
Adds more axis handling...
r176 #include "qchartaxis.h"
Michal Klocek
Refactors qchart , adds line animation...
r131 #include <QRectF>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactors chartitem...
r677 class Chart;
Michal Klocek
Rename QChartSeries to QSeries
r360 class QSeries;
Michal Klocek
Refactors qchart , adds line animation...
r131 class ChartDataSet;
class Domain;
Michal Klocek
Refactors chartitem...
r677 class Axis;
Michal Klocek
Refactor themes...
r143 class ChartTheme;
Michal Klocek
Animation refactor...
r530 class ChartAnimator;
Michal Klocek
Refactors qchart , adds line animation...
r131
class ChartPresenter: public QObject
{
Q_OBJECT
public:
Tero Ahola
Fixed drawing issues in Scatter
r375 enum ZValues {
BackgroundZValue = -1,
ShadesZValue,
GridZValue,
LineChartZValue,
sauimone
barhcart zvalue added
r594 BarSeriesZValue,
Tero Ahola
Z order for pie
r490 ScatterSeriesZValue,
sauimone
background to legend, theme applies
r540 PieSeriesZValue,
Michal Klocek
Adds back reimplemnted categories handling
r701 AxisZValue,
sauimone
background to legend, theme applies
r540 LegendZValue
Tero Ahola
Fixed drawing issues in Scatter
r375 };
Michal Klocek
Adds ZOrder enum to presenter
r262
Michal Klocek
Refactors qchart , adds line animation...
r131 ChartPresenter(QChart* chart,ChartDataSet *dataset);
virtual ~ChartPresenter();
Michal Klocek
Refactored for MVP...
r139
Michal Klocek
Polishing qchart class
r742 int backgroundPadding() const { return m_backgroundPadding; }
QRectF geometry() const { return m_rect; }
ChartAnimator* animator() const { return m_animator; }
ChartTheme *chartTheme() const { return m_chartTheme; }
ChartDataSet *dataSet() const { return m_dataset; }
QGraphicsItem* rootItem() const { return m_chart; }
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Adds PIMPL to qchart
r740 void setTheme(QChart::ChartTheme theme,bool force = true);
QChart::ChartTheme theme();
Michal Klocek
Refactor themes...
r143
Michal Klocek
Adds animation settings handling
r298 void setAnimationOptions(QChart::AnimationOptions options);
QChart::AnimationOptions animationOptions() const;
Michal Klocek
Refactor domain model...
r439 void zoomIn();
void zoomIn(const QRectF& rect);
void zoomOut();
Michal Klocek
Adds scroll support...
r531 void scroll(int dx,int dy);
Jani Honkonen
Fix add/remove animation for pie and apply colors from theme when adding/removing
r659
Michal Klocek
Refactors qchart , adds line animation...
r131 private:
Michal Klocek
Adds refactored axis to presenter
r140 void createConnections();
Michal Klocek
Adds scroll support...
r531 void resetAllElements();
Michal Klocek
Refactors qchart , adds line animation...
r131
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Refactor domain model...
r439 void handleSeriesAdded(QSeries* series,Domain* domain);
Michal Klocek
Rename QChartSeries to QSeries
r360 void handleSeriesRemoved(QSeries* series);
Michal Klocek
Refactor domain model...
r439 void handleAxisAdded(QChartAxis* axis,Domain* domain);
Michal Klocek
Refactors axis handling...
r223 void handleAxisRemoved(QChartAxis* axis);
Michal Klocek
Refactors qchart , adds line animation...
r131 void handleGeometryChanged();
Michal Klocek
Refactor domain model...
r439
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
Michal Klocek
Refactored for MVP...
r139 void geometryChanged(const QRectF& rect);
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Refactors qchart , adds line animation...
r131 private:
QChart* m_chart;
Michal Klocek
Animation refactor...
r530 ChartAnimator* m_animator;
Michal Klocek
Refactors qchart , adds line animation...
r131 ChartDataSet* m_dataset;
Michal Klocek
Refactor themes...
r143 ChartTheme *m_chartTheme;
Michal Klocek
Refactors chartitem...
r677 QMap<QSeries*,Chart*> m_chartItems;
QMap<QChartAxis*,Axis*> m_axisItems;
Michal Klocek
Refactors qchart , adds line animation...
r131 QRectF m_rect;
Michal Klocek
Adds animation settings handling
r298 QChart::AnimationOptions m_options;
Michal Klocek
Adds force option to chartTheme...
r645 bool m_themeForce;
Michal Klocek
Polishing qchart class
r742 int m_backgroundPadding;
Michal Klocek
Refactor themes...
r143
Michal Klocek
Refactors qchart , adds line animation...
r131 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTPRESENTER_H_ */