|
KD Chart 2
[rev.2.5]
|
#include "KDChartChart.h"#include "KDChartChart_p.h"#include <QList>#include <QtDebug>#include <QGridLayout>#include <QLabel>#include <QHash>#include <QToolTip>#include <QPainter>#include <QPaintEvent>#include <QLayoutItem>#include <QPushButton>#include <QApplication>#include <QEvent>#include "KDChartCartesianCoordinatePlane.h"#include "KDChartAbstractCartesianDiagram.h"#include "KDChartHeaderFooter.h"#include "KDChartEnums.h"#include "KDChartLegend.h"#include "KDChartLayoutItems.h"#include <KDChartTextAttributes.h>#include <KDChartMarkerAttributes.h>#include "KDChartPainterSaver_p.h"#include "KDChartPrintingParameters.h"#include <algorithm>#include <KDABLibFakes>Go to the source code of this file.
Defines | |
| #define | ADD_AUTO_SPACER_IF_NEEDED(spacerRow, spacerColumn, hLayoutIsAtTop, hLayout, vLayoutIsAtLeft, vLayout) |
| #define | d d_func() |
Enumerations | |
| enum | VisitorState { Visited, Unknown } |
Functions | |
| void | checkExistingAxes (LayoutGraphNode *node) |
| static CoordinatePlaneList | findSharingAxisDiagrams (AbstractCoordinatePlane *plane, const CoordinatePlaneList &list, Chart::Private::AxisType type, QVector< CartesianAxis * > *sharedAxes) |
| static QVector< LayoutGraphNode * > | getPrioritySortedConnectedComponents (QVector< LayoutGraphNode * > &nodeList) |
| static void | mergeNodeAxisInformation (LayoutGraphNode *lhs, LayoutGraphNode *rhs) |
Variables | |
| static const Qt::Alignment | s_gridAlignments [3][3] |
| #define ADD_AUTO_SPACER_IF_NEEDED | ( | spacerRow, | |
| spacerColumn, | |||
| hLayoutIsAtTop, | |||
| hLayout, | |||
| vLayoutIsAtLeft, | |||
| vLayout | |||
| ) |
{ \
if ( hLayout || vLayout ) { \
AutoSpacerLayoutItem * spacer \
= new AutoSpacerLayoutItem( hLayoutIsAtTop, hLayout, vLayoutIsAtLeft, vLayout ); \
planeLayout->addItem( spacer, spacerRow, spacerColumn, 1, 1 ); \
spacer->setParentLayout( planeLayout ); \
planeLayoutItems << spacer; \
} \
}
| #define d d_func() |
Definition at line 1157 of file KDChartChart.cpp.
Referenced by KDChart::Chart::addCoordinatePlane(), KDChart::Chart::addHeaderFooter(), KDChart::Chart::addLegend(), KDChart::Chart::backgroundAttributes(), KDChart::Chart::coordinatePlane(), KDChart::Chart::coordinatePlaneLayout(), KDChart::Chart::coordinatePlanes(), KDChart::Chart::event(), KDChart::Chart::frameAttributes(), KDChart::Chart::headerFooter(), KDChart::Chart::headerFooters(), KDChart::Chart::insertCoordinatePlane(), KDChart::Chart::legend(), KDChart::Chart::legends(), KDChart::Chart::mouseDoubleClickEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::Chart::paint(), KDChart::Chart::paintEvent(), KDChart::Chart::reLayoutFloatingLegends(), KDChart::Chart::replaceCoordinatePlane(), KDChart::Chart::replaceHeaderFooter(), KDChart::Chart::replaceLegend(), KDChart::Chart::resizeEvent(), KDChart::Chart::setBackgroundAttributes(), KDChart::Chart::setCoordinatePlaneLayout(), KDChart::Chart::setFrameAttributes(), KDChart::Chart::setGlobalLeading(), KDChart::Chart::setGlobalLeadingBottom(), KDChart::Chart::setGlobalLeadingLeft(), KDChart::Chart::setGlobalLeadingRight(), KDChart::Chart::setGlobalLeadingTop(), KDChart::Chart::takeCoordinatePlane(), KDChart::Chart::takeHeaderFooter(), and KDChart::Chart::takeLegend().
| enum VisitorState |
Definition at line 275 of file KDChartChart.cpp.
| void checkExistingAxes | ( | LayoutGraphNode * | node | ) |
Definition at line 335 of file KDChartChart.cpp.
References KDChart::AbstractCartesianDiagram::axes(), and KDChart::CartesianAxis::position().
| static CoordinatePlaneList findSharingAxisDiagrams | ( | AbstractCoordinatePlane * | plane, |
| const CoordinatePlaneList & | list, | ||
| Chart::Private::AxisType | type, | ||
| QVector< CartesianAxis * > * | sharedAxes | ||
| ) | [static] |
Definition at line 379 of file KDChartChart.cpp.
References KDChart::AbstractCartesianDiagram::axes(), KDChart::AbstractCoordinatePlane::diagram(), and KDChart::CartesianAxis::position().
| static QVector< LayoutGraphNode* > getPrioritySortedConnectedComponents | ( | QVector< LayoutGraphNode * > & | nodeList | ) | [static] |
Definition at line 283 of file KDChartChart.cpp.
| static void mergeNodeAxisInformation | ( | LayoutGraphNode * | lhs, |
| LayoutGraphNode * | rhs | ||
| ) | [static] |
Definition at line 364 of file KDChartChart.cpp.
const Qt::Alignment s_gridAlignments[3][3] [static] |
{
{ Qt::AlignTop | Qt::AlignLeft, Qt::AlignTop | Qt::AlignHCenter, Qt::AlignTop | Qt::AlignRight },
{ Qt::AlignVCenter | Qt::AlignLeft, Qt::AlignVCenter | Qt::AlignHCenter, Qt::AlignVCenter | Qt::AlignRight },
{ Qt::AlignBottom | Qt::AlignLeft, Qt::AlignBottom | Qt::AlignHCenter, Qt::AlignBottom | Qt::AlignRight }
}
Definition at line 58 of file KDChartChart.cpp.