24 #ifndef _vtkQtChartLegend_h
25 #define _vtkQtChartLegend_h
28 #include "vtkQtChartExport.h"
31 class vtkQtChartLegendInternal;
95 void setLocation(LegendLocation
location);
111 void setFlow(ItemFlow flow);
118 int getOffset()
const;
124 virtual QSize
sizeHint()
const {
return this->Bounds;}
129 void drawLegend(QPainter &painter);
133 void locationChanged();
146 void setOffset(
int offset);
152 void insertEntry(
int index);
157 void startEntryRemoval(
int index);
162 void finishEntryRemoval(
int index);
167 void updateEntryText(
int index);
172 void updateEntryVisible(
int index);
180 virtual bool event(QEvent *e);
185 virtual void paintEvent(QPaintEvent *e);
190 virtual void resizeEvent(QResizeEvent *e);
198 virtual void mousePressEvent(QMouseEvent *e);
206 virtual void mouseMoveEvent(QMouseEvent *e);
214 virtual void mouseReleaseEvent(QMouseEvent *e);
218 void calculateSize();
221 void updateMaximum();
224 vtkQtChartLegendInternal *Internal;
226 LegendLocation Location;