##// END OF EJS Templates
minor cleaning of unused code
minor cleaning of unused code

File last commit:

r155:c19659d852a4
r175:05f9f3d08ff3
Show More
qchartaxis.h
76 lines | 1.9 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
Refactora axis and line chart to use graphics items insted of painter.
r85
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Adds refactored axis to presenter
r140 class QChartAxis : public QObject
Michal Klocek
Adds qchartaxis stub
r72 {
Michal Klocek
Adds refactored axis to presenter
r140 Q_OBJECT
Q_PROPERTY(bool axisVisible READ isAxisVisible WRITE setAxisVisible NOTIFY axisVisibilityChanged);
Q_PROPERTY(QPen axisPen READ axisPen WRITE setAxisPen NOTIFY axisPenChanged);
Q_PROPERTY(QBrush axisBrush READ axisBrush WRITE setAxisBrush NOTIFY axisBurshChanged);
// Q_PROPERTY(bool axisVisible READ isAxisVisible WRITE setAxisVisible NOTIFY axisVisibilityChanged);
Michal Klocek
Adds qchartaxis stub
r72 public:
Michal Klocek
Adds refactored axis to presenter
r140 enum LabelOrientation{ HORIZONTAL, VERTICAL , SLIDE };
QChartAxis(QObject* parent = 0);
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);
const QPen& axisPen() const { return m_axisPen;};
void setAxisBrush(const QBrush& brush);
const QBrush& axisBrush() const { return m_axisBrush;};
//grid
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool isGridVisible() const { return m_girdVisible;};
void setGridVisible(bool visible);
Michal Klocek
Adds refactored axis to presenter
r140
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 refactored axis to presenter
r140
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 bool isRowShadesVisible() const { return m_rowShadesVisible;};
void setRowShadesVisible(bool visible);
Michal Klocek
Adds refactored axis to presenter
r140 /*
void setLabelFont(const QFont& font);
const QFont& labelFont();
void setLabelPen(const QPen& pen);
const QPen& labelPen();
void setGridPen(const QPen& pen);
const QPen& gridPen();
void setGridBrush(const QBrush& brush);
const QBrush& gridBrush();
*/
Michal Klocek
Add public function for axis hadnling to qchart
r155
Michal Klocek
Adds refactored axis to presenter
r140 signals:
void axisVisibilityChanged();
void axisPenChanged();
void axisBurshChanged();
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
Refactora axis and line chart to use graphics items insted of painter.
r85 bool m_girdVisible;
bool m_labelsVisible;
bool m_rowShadesVisible;
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_ */