qchartaxis.h
76 lines
| 1.9 KiB
| text/x-c
|
CLexer
/ src / qchartaxis.h
Michal Klocek
|
r72 | #ifndef QCHARTAXIS_H_ | ||
#define QCHARTAXIS_H_ | ||||
Michal Klocek
|
r85 | #include <qchartglobal.h> | ||
Michal Klocek
|
r140 | #include <QPen> | ||
Michal Klocek
|
r85 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Michal Klocek
|
r140 | class QChartAxis : public QObject | ||
Michal Klocek
|
r72 | { | ||
Michal Klocek
|
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
|
r72 | public: | ||
Michal Klocek
|
r140 | enum LabelOrientation{ HORIZONTAL, VERTICAL , SLIDE }; | ||
QChartAxis(QObject* parent = 0); | ||||
Michal Klocek
|
r72 | virtual ~QChartAxis(); | ||
Michal Klocek
|
r85 | |||
Michal Klocek
|
r140 | //axis | ||
Michal Klocek
|
r85 | bool isAxisVisible() const { return m_axisVisible;}; | ||
void setAxisVisible(bool visible); | ||||
Michal Klocek
|
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
|
r85 | bool isGridVisible() const { return m_girdVisible;}; | ||
void setGridVisible(bool visible); | ||||
Michal Klocek
|
r140 | |||
Michal Klocek
|
r85 | bool isLabelsVisible() const { return m_labelsVisible;}; | ||
void setLabelsVisible(bool visible); | ||||
Michal Klocek
|
r140 | |||
Michal Klocek
|
r85 | bool isRowShadesVisible() const { return m_rowShadesVisible;}; | ||
void setRowShadesVisible(bool visible); | ||||
Michal Klocek
|
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
|
r155 | |||
Michal Klocek
|
r140 | signals: | ||
void axisVisibilityChanged(); | ||||
void axisPenChanged(); | ||||
void axisBurshChanged(); | ||||
Michal Klocek
|
r85 | private: | ||
Michal Klocek
|
r140 | |||
Michal Klocek
|
r85 | bool m_axisVisible; | ||
Michal Klocek
|
r140 | QPen m_axisPen; | ||
QBrush m_axisBrush; | ||||
Michal Klocek
|
r85 | bool m_girdVisible; | ||
bool m_labelsVisible; | ||||
bool m_rowShadesVisible; | ||||
Michal Klocek
|
r72 | }; | ||
Michal Klocek
|
r85 | QTCOMMERCIALCHART_END_NAMESPACE | ||
Michal Klocek
|
r72 | #endif /* QCHARTAXIS_H_ */ | ||