##// END OF EJS Templates
Adds opacity to shades
Adds opacity to shades

File last commit:

r188:81d9e3777fdd
r188:81d9e3777fdd
Show More
qchartaxis.h
82 lines | 2.2 KiB | text/x-c | CLexer
Michal Klocek
Adds qchartaxis stub
r72 #ifndef QCHARTAXIS_H_
#define QCHARTAXIS_H_
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 #include <qchartglobal.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
Add missing export macro to qchartaxis
r178 class QTCOMMERCIALCHART_EXPORT QChartAxis
Michal Klocek
Adds qchartaxis stub
r72 {
public:
Michal Klocek
Adds more axis handling...
r176 enum LabelsOrientation{ LabelsOrientationHorizontal, LabelsOrientationVertical , LabelsOrientationSlide };
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Adds more axis handling...
r176 QChartAxis();
Michal Klocek
Adds qchartaxis stub
r72 virtual ~QChartAxis();
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
Michal Klocek
Adds refactored axis to presenter
r140 //axis
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 void setAxisBrush(const QBrush& brush);
Michal Klocek
Adds more axis handling...
r176 QBrush axisBrush() const { return m_axisBrush;};
Michal Klocek
Adds refactored axis to presenter
r140
//grid
Michal Klocek
Adds more axis handling...
r176 bool isGridVisible() const { return m_gridVisible;};
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void setGridVisible(bool visible);
Michal Klocek
Adds more axis handling...
r176 void setGridPen(const QPen& pen);
QPen gridPen() const {return m_gridPen;}
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Adds more axis handling...
r176 //labels
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool isLabelsVisible() const { return m_labelsVisible;};
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);
QFont labelFont() const { return m_labelsFont;}
void setLabelsOrientation(LabelsOrientation orientation);
LabelsOrientation labelsOrientation() const { return m_labelsOrientation;};
//shades
bool isShadesVisible() const { return m_shadesVisible;};
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
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 private:
Michal Klocek
Adds refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool m_axisVisible;
Michal Klocek
Adds refactored axis to presenter
r140 QPen m_axisPen;
QBrush m_axisBrush;
Michal Klocek
Adds more axis handling...
r176 bool m_gridVisible;
QPen m_gridPen;
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;
bool m_shadesVisible;
QPen m_shadesPen;
QBrush m_shadesBrush;
Michal Klocek
Adds opacity to shades
r188 qreal m_shadesOpacity;
Michal Klocek
Adds more axis handling...
r176 LabelsOrientation m_labelsOrientation;
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_ */