##// END OF EJS Templates
Separated legend marker to private header. Added signals for left and right mouse click
Separated legend marker to private header. Added signals for left and right mouse click

File last commit:

r531:64f37cf5241e
r547:2c194d26bbea
Show More
qchartview.h
81 lines | 2.2 KiB | text/x-c | CLexer
Michal Klocek
Adds rubberband for zooming...
r58 #ifndef QCHARTWIDGET_H
#define QCHARTWIDGET_H
#include "qchartglobal.h"
Michal Klocek
Rename QChartSeries to QSeries
r360 #include "qseries.h"
Michal Klocek
Add gradient bacground support...
r86 #include "qchart.h"
Michal Klocek
Adds rubberband for zooming...
r58 #include <QGraphicsView>
class QGraphicsScene;
Michal Klocek
Removes QChartWidget...
r136 class QRubberBand;
Michal Klocek
Adds rubberband for zooming...
r58
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class QTCOMMERCIALCHART_EXPORT QChartView : public QGraphicsView
{
public:
Michal Klocek
Removes QChartWidget...
r136 enum RubberBandPolicy { NoRubberBand, VerticalRubberBand, HorizonalRubberBand, RectangleRubberBand };
Michal Klocek
Adds rubberband for zooming...
r58 explicit QChartView(QWidget *parent = 0);
~QChartView();
//implement from QWidget
void resizeEvent(QResizeEvent *event);
Tero Ahola
Chart title font color
r495
Michal Klocek
Rename QChartSeries to QSeries
r360 void addSeries(QSeries* series,QChartAxis* axisY=0);// takes series ownership , takes axis ownership
void removeSeries(QSeries* series); //returns ownership , deletes axis if no series attached
Michal Klocek
Adds RemoveAllSeries method to API
r258 void removeAllSeries(); // deletes series and axis
Michal Klocek
Add zoom support...
r67 int margin() const;
Michal Klocek
Removes QChartWidget...
r136
Michal Klocek
Adds font handling for chart's titile...
r192 void setChartTitle(const QString& title);
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 QString chartTitle() const;
Michal Klocek
Adds font handling for chart's titile...
r192 void setChartTitleFont(const QFont& font);
Tero Ahola
Chart title font color
r495 void setChartTitleBrush(const QBrush &brush);
QBrush chartTitleBrush();
Michal Klocek
Change background gradient to use ObjectBoundingMode...
r122 void setChartBackgroundBrush(const QBrush& brush);
void setChartBackgroundPen(const QPen& pen);
Michal Klocek
Add zoom support...
r67 void zoomIn();
Michal Klocek
Refactors axis handling...
r223 void zoomIn(const QRect& rect);
Michal Klocek
Add zoom support...
r67 void zoomOut();
Michal Klocek
Adds rubberband for zooming...
r58
Michal Klocek
Adds scroll support...
r531 void scroll(int dx,int dy);
Michal Klocek
Removes QChartWidget...
r136 void setRubberBandPolicy(const RubberBandPolicy );
RubberBandPolicy rubberBandPolicy() const;
Michal Klocek
Adds missing ids to theme classes
r153 void setChartTheme(QChart::ChartTheme theme);
QChart::ChartTheme chartTheme() const;
Michal Klocek
Removes QChartWidget...
r136
Michal Klocek
Adds animation settings handling
r298 void setAnimationOptions(QChart::AnimationOptions options);
QChart::AnimationOptions animationOptions() const;
Michal Klocek
Refactors axis handling...
r223 QChartAxis* axisX() const;
QChartAxis* axisY() const;
Michal Klocek
Add public function for axis hadnling to qchart
r155
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 QLegend* legend() const;
Michal Klocek
Removes QChartWidget...
r136 protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
Michal Klocek
Adds rubberband for zooming...
r58 private:
QGraphicsScene *m_scene;
QChart* m_chart;
Michal Klocek
Removes QChartWidget...
r136 QPoint m_rubberBandOrigin;
QRubberBand* m_rubberBand;
bool m_verticalRubberBand;
bool m_horizonalRubberBand;
Michal Klocek
Adds rubberband for zooming...
r58 Q_DISABLE_COPY(QChartView)
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QCHARTWIDGET_H