##// END OF EJS Templates
Updated plugins.qmltypes...
Updated plugins.qmltypes Change-Id: I20425a87f2a3c5f2ad0df1c9ff1229f1ca2aa76c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2802:458692a5a594
r2806:c9201cbc3c54
Show More
abstractbarchartitem_p.h
95 lines | 2.7 KiB | text/x-c | CLexer
/ src / charts / barchart / abstractbarchartitem_p.h
sauimone
refactoring internal barchart items
r1674 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
sauimone
refactoring internal barchart items
r1674 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
sauimone
refactoring internal barchart items
r1674 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
sauimone
refactoring internal barchart items
r1674 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
Titta Heikkala
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
sauimone
refactoring internal barchart items
r1674 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
sauimone
refactoring internal barchart items
r1674 **
****************************************************************************/
// W A R N I N G
// -------------
//
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 // This file is not part of the Qt Enterprise Chart API. It exists purely as an
sauimone
refactoring internal barchart items
r1674 // implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
#ifndef ABSTRACTBARCHARTITEM_H
#define ABSTRACTBARCHARTITEM_H
Titta Heikkala
Fix include syntax...
r2714 #include <private/chartitem_p.h>
#include <QtCharts/QAbstractBarSeries>
#include <QtGui/QPen>
#include <QtGui/QBrush>
sauimone
refactoring internal barchart items
r1674
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
sauimone
refactoring internal barchart items
r1674
class Bar;
class QAxisCategories;
class QChart;
Marek Rosa
Bar animations refactored
r2316 class BarAnimation;
sauimone
refactoring internal barchart items
r1674
class AbstractBarChartItem : public ChartItem
{
Q_OBJECT
public:
Michal Klocek
Refactors internals...
r2273 AbstractBarChartItem(QAbstractBarSeries *series, QGraphicsItem* item = 0);
sauimone
refactoring internal barchart items
r1674 virtual ~AbstractBarChartItem();
public:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
virtual QVector<QRectF> calculateLayout() = 0;
Marek Rosa
Bar animations refactored
r2316 virtual void initializeLayout() = 0;
sauimone
refactoring internal barchart items
r1674 virtual void applyLayout(const QVector<QRectF> &layout);
Marek Rosa
Bar animations refactored
r2316 virtual void setAnimation(BarAnimation *animation);
sauimone
refactoring internal barchart items
r1674 void setLayout(const QVector<QRectF> &layout);
void updateLayout(const QVector<QRectF> &layout);
QRectF geometry() const { return m_rect;}
public Q_SLOTS:
Michal Klocek
Refactors Domain and Axis...
r1698 void handleDomainUpdated();
sauimone
refactoring internal barchart items
r1674 void handleLayoutChanged();
void handleLabelsVisibleChanged(bool visible);
void handleDataStructureChanged(); // structure of of series has changed, recreate graphic items
void handleVisibleChanged();
Tero Ahola
Added opacity property to QAbstractSeries
r2067 void handleOpacityChanged();
Marek Rosa
BarChartItems code cleanup
r2305 virtual void handleUpdatedBars();
Titta Heikkala
Added possibility to show series value...
r2689 void handleLabelsPositionChanged();
virtual void positionLabels();
sauimone
refactoring internal barchart items
r1674
protected:
Miikka Heikkinen
Added support for bar series value label angle...
r2802 void positionLabelsVertical();
sauimone
refactoring internal barchart items
r1674
qreal m_domainMinX;
qreal m_domainMaxX;
qreal m_domainMinY;
qreal m_domainMaxY;
QRectF m_rect;
QVector<QRectF> m_layout;
Marek Rosa
Bar animations refactored
r2316 BarAnimation *m_animation;
sauimone
refactoring internal barchart items
r1674
sauimone
population pyramid example. Added grouping option to barseries to give some control over layout
r1794 QAbstractBarSeries *m_series; // Not owned.
sauimone
refactoring internal barchart items
r1674 QList<Bar *> m_bars;
Miikka Heikkinen
Added HTML support for various text items...
r2539 QList<QGraphicsTextItem *> m_labels;
Marek Rosa
Bar animations refactored
r2316 QSizeF m_oldSize;
sauimone
refactoring internal barchart items
r1674 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
sauimone
refactoring internal barchart items
r1674
#endif // ABSTRACTBARCHARTITEM_H