##// END OF EJS Templates
Enabled legend again; it is now created before presenter
Enabled legend again; it is now created before presenter

File last commit:

r535:774f7e43278b
r550:c0a0231bdee1
Show More
qchartaxis.h
106 lines | 2.7 KiB | text/x-c | CLexer
Michal Klocek
Adds qchartaxis stub
r72 #ifndef QCHARTAXIS_H_
#define QCHARTAXIS_H_
Michal Klocek
Adds qchartaxiscategories class
r445 #include <qchartaxiscategories.h>
Michal Klocek
Adds refactored axis to presenter
r140 #include <QPen>
Michal Klocek
Adds more axis handling...
r176 #include <QFont>
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactors axis handling...
r223 class QTCOMMERCIALCHART_EXPORT QChartAxis : public QObject
Michal Klocek
Adds qchartaxis stub
r72 {
Michal Klocek
Refactors axis handling...
r223 Q_OBJECT
Michal Klocek
Adds qchartaxis stub
r72 public:
Michal Klocek
Refactors axis handling...
r223 QChartAxis(QObject* parent =0);
~QChartAxis();
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //axis handling
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool isAxisVisible() const { return m_axisVisible;};
void setAxisVisible(bool visible);
Michal Klocek
Adds refactored axis to presenter
r140 void setAxisPen(const QPen& pen);
Michal Klocek
Adds more axis handling...
r176 QPen axisPen() const { return m_axisPen;};
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //grid handling
Michal Klocek
Renames Grid to GridLine
r535 bool isGridLineVisible() const { return m_gridLineVisible;};
void setGridLineVisible(bool visible);
void setGridLinePen(const QPen& pen);
QPen gridLinePen() const {return m_gridLinePen;}
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactors axis handling...
r223 //labels handling
Michal Klocek
Fix labels, shades visible naming convention
r365 bool labelsVisible() const { return m_labelsVisible;};
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void setLabelsVisible(bool visible);
Michal Klocek
Adds more axis handling...
r176 void setLabelsPen(const QPen& pen);
QPen labelsPen() const { return m_labelsPen;}
void setLabelsBrush(const QBrush& brush);
QBrush labelsBrush() const { return m_labelsBrush;}
void setLabelsFont(const QFont& font);
Michal Klocek
Refactor documentation...
r331 QFont labelsFont() const { return m_labelsFont;}
Michal Klocek
Refactors axis handling...
r223 void setLabelsAngle(int angle);
int labelsAngle() const { return m_labelsAngle;};
Michal Klocek
Adds more axis handling...
r176
Michal Klocek
Refactors axis handling...
r223 //shades handling
Michal Klocek
Fix labels, shades visible naming convention
r365 bool shadesVisible() const { return m_shadesVisible;};
Michal Klocek
Adds more axis handling...
r176 void setShadesVisible(bool visible);
void setShadesPen(const QPen& pen);
QPen shadesPen() const { return m_shadesPen;}
void setShadesBrush(const QBrush& brush);
QBrush shadesBrush() const { return m_shadesBrush;}
Michal Klocek
Adds opacity to shades
r188 void setShadesOpacity(qreal opacity);
qreal shadesOpacity() const { return m_shadesOpacity;}
Michal Klocek
Refactors axis handling...
r223 //range handling
void setMin(qreal min);
qreal min() const { return m_min;};
void setMax(qreal max);
qreal max() const { return m_max;};
void setRange(qreal min, qreal max);
//ticks handling
void setTicksCount(int count);
int ticksCount() const { return m_ticksCount;}
Michal Klocek
Adds qchartaxiscategories class
r445
Michal Klocek
Adds draft of axis bar label support
r497 QChartAxisCategories* categories() { return &m_category; }
Michal Klocek
Refactors axis handling...
r223
Michal Klocek
Adds axis show/hide to API
r534 void show();
void hide();
Michal Klocek
Refactors axis handling...
r223 signals:
void minChanged(qreal min);
void maxChanged(qreal max);
Michal Klocek
Adds scroll support...
r531 void rangeChanged(qreal min, qreal max,int ticksCount);
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Adds qchartaxiscategories class
r445 //interal signal
Michal Klocek
Refactor domain model...
r439 void updated();
//internal slot
public slots:
void handleAxisRangeChanged(qreal min, qreal max);
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 private:
bool m_axisVisible;
Michal Klocek
Adds refactored axis to presenter
r140 QPen m_axisPen;
QBrush m_axisBrush;
Michal Klocek
Renames Grid to GridLine
r535 bool m_gridLineVisible;
QPen m_gridLinePen;
Michal Klocek
Adds more axis handling...
r176
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool m_labelsVisible;
Michal Klocek
Adds more axis handling...
r176 QPen m_labelsPen;
QBrush m_labelsBrush;
QFont m_labelsFont;
Michal Klocek
Refactors axis handling...
r223 int m_labelsAngle;
Michal Klocek
Adds more axis handling...
r176
bool m_shadesVisible;
QPen m_shadesPen;
QBrush m_shadesBrush;
Michal Klocek
Adds opacity to shades
r188 qreal m_shadesOpacity;
Michal Klocek
Refactors axis handling...
r223 qreal m_min;
qreal m_max;
Michal Klocek
Adds opacity to shades
r188
Michal Klocek
Refactors axis handling...
r223 int m_ticksCount;
Michal Klocek
Adds qchartaxiscategories class
r445 QChartAxisCategories m_category;
Michal Klocek
Adds qchartaxis stub
r72 };
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Adds qchartaxis stub
r72 #endif /* QCHARTAXIS_H_ */