##// END OF EJS Templates
Add horizontal box plot model mapper....
Add horizontal box plot model mapper. Change-Id: Icddd343e5bf466e4bd38fee6ce221c14ad729e37 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2854:46147b040d06
r2873:4cbd063d2219
Show More
abstractbarchartitem_p.h
106 lines | 3.3 KiB | text/x-c | CLexer
/ src / charts / barchart / abstractbarchartitem_p.h
Miikka Heikkinen
Updated license...
r2854 /****************************************************************************
sauimone
refactoring internal barchart items
r1674 **
Miikka Heikkinen
Updated license...
r2854 ** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
sauimone
refactoring internal barchart items
r1674 **
Miikka Heikkinen
Updated license...
r2854 ** This file is part of the Qt Charts module of the Qt Toolkit.
sauimone
refactoring internal barchart items
r1674 **
Miikka Heikkinen
Updated license...
r2854 ** $QT_BEGIN_LICENSE:GPL$
Titta Heikkala
Updated license headers...
r2845 ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
Miikka Heikkinen
Updated license...
r2854 ** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
sauimone
refactoring internal barchart items
r1674 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
Miikka Heikkinen
Updated license...
r2854 ****************************************************************************/
sauimone
refactoring internal barchart items
r1674
// W A R N I N G
// -------------
//
Titta Heikkala
Updated private header warning...
r2807 // This file is not part of the Qt 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