KD Chart 2  [rev.2.7]
Macros | Enumerations | Functions | Variables
KDChartChart.cpp File Reference
#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.

Macros

#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 getRowAndColumnForPosition (KDChartEnums::PositionValue pos, int *row, int *column)
 
static void invalidateLayoutTree (QLayoutItem *item)
 
static void mergeNodeAxisInformation (LayoutGraphNode *lhs, LayoutGraphNode *rhs)
 

Variables

static const Qt::Alignment s_gridAlignments [3][3]
 

Macro Definition Documentation

#define ADD_AUTO_SPACER_IF_NEEDED (   spacerRow,
  spacerColumn,
  hLayoutIsAtTop,
  hLayout,
  vLayoutIsAtLeft,
  vLayout 
)
Value:
{ \
if ( hLayout || vLayout ) { \
AutoSpacerLayoutItem * spacer \
= new AutoSpacerLayoutItem( hLayoutIsAtTop, hLayout, vLayoutIsAtLeft, vLayout ); \
planeLayout->addItem( spacer, spacerRow, spacerColumn, 1, 1 ); \
spacer->setParentLayout( planeLayout ); \
planeLayoutItems << spacer; \
} \
}

Referenced by findSharingAxisDiagrams().

#define d   d_func()

Enumeration Type Documentation

Enumerator
Visited 
Unknown 

Definition at line 307 of file KDChartChart.cpp.

Function Documentation

void checkExistingAxes ( LayoutGraphNode *  node)
static CoordinatePlaneList findSharingAxisDiagrams ( AbstractCoordinatePlane plane,
const CoordinatePlaneList list,
Chart::Private::AxisType  type,
QVector< CartesianAxis * > *  sharedAxes 
)
static
static QVector< LayoutGraphNode* > getPrioritySortedConnectedComponents ( QVector< LayoutGraphNode * > &  nodeList)
static

Definition at line 315 of file KDChartChart.cpp.

References Unknown, and Visited.

Referenced by findSharingAxisDiagrams().

static void getRowAndColumnForPosition ( KDChartEnums::PositionValue  pos,
int *  row,
int *  column 
)
static
static void invalidateLayoutTree ( QLayoutItem item)
static
static void mergeNodeAxisInformation ( LayoutGraphNode *  lhs,
LayoutGraphNode *  rhs 
)
static

Definition at line 396 of file KDChartChart.cpp.

Referenced by findSharingAxisDiagrams().

Variable Documentation

const Qt::Alignment s_gridAlignments[3][3]
static
Initial value:
= {
{ 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 120 of file KDChartChart.cpp.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/