##// END OF EJS Templates
Add possibility to set brush image via QML API...
Add possibility to set brush image via QML API User can set a brush image for AreaSeries, BarSet, BoxPlotSeries, BoxSet, PieSlice and ScatterSeries by specifying 'brushFilename'. Task-number: QTRD-2603 Change-Id: Ie4b75cec1f64da513b1b85749c28984cb7f88e38 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>

File last commit:

r2574:599370d0561c
r2681:8344a0102a72
Show More
abstractchartlayout_p.h
82 lines | 2.9 KiB | text/x-c | CLexer
/ src / layout / abstractchartlayout_p.h
Michal Klocek
Adds missing license headers
r1535 /****************************************************************************
**
Miikka Heikkinen
Fixed the copyright year 2012 -> 2013
r2432 ** Copyright (C) 2013 Digia Plc
Michal Klocek
Adds missing license headers
r1535 ** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 ** This file is part of the Qt Enterprise Charts Add-on.
Michal Klocek
Adds missing license headers
r1535 **
** $QT_BEGIN_LICENSE$
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 ** Licensees holding valid Qt Enterprise licenses may use this file in
** accordance with the Qt Enterprise License Agreement provided with the
Michal Klocek
Adds missing license headers
r1535 ** 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$
**
****************************************************************************/
Miikka Heikkinen
Added copyright headers to *.h/*.cpp files missing them...
r2435 // 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
Miikka Heikkinen
Added copyright headers to *.h/*.cpp files missing them...
r2435 // implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Miikka Heikkinen
Add Polar chart support...
r2483 #ifndef ABSTRACTCHARTLAYOUT_H
#define ABSTRACTCHARTLAYOUT_H
Michal Klocek
Refactors layout managment...
r1534 #include <QGraphicsLayout>
Michal Klocek
Implements minimumMargins...
r1883 #include <QMargins>
Michal Klocek
Refactors layout managment...
r1534 #include "qchartglobal.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactors layout...
r1965 class ChartTitle;
Miikka Heikkinen
Add Polar chart support...
r2483 class ChartAxisElement;
class ChartPresenter;
Michal Klocek
Refactors layout...
r1965 class QLegend;
class ChartBackground;
Michal Klocek
Refactors layout managment...
r1534
Miikka Heikkinen
Add Polar chart support...
r2483 class AbstractChartLayout : public QGraphicsLayout
Michal Klocek
Refactors layout managment...
r1534 {
public:
Miikka Heikkinen
Add Polar chart support...
r2483 AbstractChartLayout(ChartPresenter *presenter);
virtual ~AbstractChartLayout();
Michal Klocek
Refactors layout managment...
r1534
Miikka Heikkinen
Add Polar chart support...
r2483 virtual void setMargins(const QMargins &margins);
virtual QMargins margins() const;
virtual void setGeometry(const QRectF &rect);
Michal Klocek
Refactors layout managment...
r1534
Miikka Heikkinen
Add Polar chart support...
r2483 protected:
virtual QRectF calculateBackgroundGeometry(const QRectF &geometry, ChartBackground *background) const;
virtual QRectF calculateBackgroundMinimum(const QRectF &minimum) const;
virtual QRectF calculateContentGeometry(const QRectF &geometry) const;
virtual QRectF calculateContentMinimum(const QRectF &minimum) const;
virtual QRectF calculateTitleGeometry(const QRectF &geometry, ChartTitle *title) const;
virtual QRectF calculateTitleMinimum(const QRectF &minimum, ChartTitle *title) const;
virtual QRectF calculateLegendGeometry(const QRectF &geometry, QLegend *legend) const;
virtual QRectF calculateLegendMinimum(const QRectF &minimum, QLegend *legend) const;
Michal Klocek
Refactors layout managment...
r1534
Miikka Heikkinen
Add Polar chart support...
r2483 virtual QRectF calculateAxisGeometry(const QRectF &geometry, const QList<ChartAxisElement *>& axes) const = 0;
virtual QRectF calculateAxisMinimum(const QRectF &minimum, const QList<ChartAxisElement *>& axes) const = 0;
Michal Klocek
Refactors layout managment...
r1534
Miikka Heikkinen
Add Polar chart support...
r2483 // from QGraphicsLayout
Jani Honkonen
src folder: another massive victory for coding style police
r2131 QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
Michal Klocek
Refactors layout managment...
r1534 int count() const { return 0; }
Jani Honkonen
src folder: another massive victory for coding style police
r2131 QGraphicsLayoutItem *itemAt(int) const { return 0; };
void removeAt(int) {};
Michal Klocek
Refactors layout managment...
r1534
Jani Honkonen
src folder: another massive victory for coding style police
r2131 ChartPresenter *m_presenter;
Michal Klocek
Refactors layout...
r1965 QMargins m_margins;
QRectF m_minChartRect;
QRectF m_minAxisRect;
Michal Klocek
Refactors layout managment...
r1534 };
QTCOMMERCIALCHART_END_NAMESPACE
Miikka Heikkinen
Add Polar chart support...
r2483 #endif // ABSTRACTCHARTLAYOUT_H