@@ -65,7 +65,7 public: | |||
|
65 | 65 | explicit ThemeWidget(QWidget *parent = 0); |
|
66 | 66 | ~ThemeWidget(); |
|
67 | 67 | |
|
68 |
private |
|
|
68 | private Q_SLOTS: | |
|
69 | 69 | void updateUI(); |
|
70 | 70 | |
|
71 | 71 | private: |
@@ -24,9 +24,9 public: | |||
|
24 | 24 | void setBarCategories(QStringList categories); |
|
25 | 25 | QStringList barCategories(); |
|
26 | 26 | |
|
27 | signals: | |
|
27 | Q_SIGNALS: | |
|
28 | 28 | |
|
29 | public slots: | |
|
29 | public Q_SLOTS: | |
|
30 | 30 | |
|
31 | 31 | public: |
|
32 | 32 | QChart *m_chart; |
@@ -19,13 +19,13 public: | |||
|
19 | 19 | explicit DeclarativePieSeries(QDeclarativeItem *parent = 0); |
|
20 | 20 | QDeclarativeListProperty<QPieSlice> data(); |
|
21 | 21 | |
|
22 | signals: | |
|
22 | Q_SIGNALS: | |
|
23 | 23 | |
|
24 | public slots: | |
|
24 | public Q_SLOTS: | |
|
25 | 25 | static void appendData(QDeclarativeListProperty<QPieSlice> *list, |
|
26 | 26 | QPieSlice *element); |
|
27 | 27 | |
|
28 |
private |
|
|
28 | private Q_SLOTS: | |
|
29 | 29 | void setParentForSeries(); |
|
30 | 30 | |
|
31 | 31 | private: |
@@ -25,13 +25,13 public: // from QDeclarativeParserStatus | |||
|
25 | 25 | public: |
|
26 | 26 | QDeclarativeListProperty<DeclarativeXyPoint> points(); |
|
27 | 27 | |
|
28 | signals: | |
|
28 | Q_SIGNALS: | |
|
29 | 29 | |
|
30 | public slots: | |
|
30 | public Q_SLOTS: | |
|
31 | 31 | static void appendPoints(QDeclarativeListProperty<DeclarativeXyPoint> *list, |
|
32 | 32 | DeclarativeXyPoint *element); |
|
33 | 33 | |
|
34 |
private |
|
|
34 | private Q_SLOTS: | |
|
35 | 35 | |
|
36 | 36 | public: |
|
37 | 37 | QSeries::QSeriesType m_seriesType; |
@@ -30,10 +30,10 public: | |||
|
30 | 30 | protected: |
|
31 | 31 | void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
32 | 32 | |
|
33 | signals: | |
|
33 | Q_SIGNALS: | |
|
34 | 34 | void clicked(const QPointF &point); |
|
35 | 35 | |
|
36 | public slots: | |
|
36 | public Q_SLOTS: | |
|
37 | 37 | void handleUpdated(); |
|
38 | 38 | void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
39 | 39 | void handleGeometryChanged(const QRectF &size); |
@@ -35,7 +35,7 public: // from QChartSeries | |||
|
35 | 35 | // void setModelMappingUpper(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
36 | 36 | // void setModelMappingLower(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
37 | 37 | |
|
38 | signals: | |
|
38 | Q_SIGNALS: | |
|
39 | 39 | void updated(); |
|
40 | 40 | void clicked(const QPointF &point); |
|
41 | 41 |
@@ -48,7 +48,7 public: | |||
|
48 | 48 | inline QRectF geometry() const { return m_rect; } |
|
49 | 49 | inline QVector<qreal> layout() { return m_layoutVector; } |
|
50 | 50 | |
|
51 | public slots: | |
|
51 | public Q_SLOTS: | |
|
52 | 52 | void handleAxisUpdated(); |
|
53 | 53 | void handleAxisCategoriesUpdated(); |
|
54 | 54 | void handleRangeChanged(qreal min , qreal max,int tickCount); |
@@ -69,7 +69,7 public: | |||
|
69 | 69 | void show(); |
|
70 | 70 | void hide(); |
|
71 | 71 | |
|
72 | signals: | |
|
72 | Q_SIGNALS: | |
|
73 | 73 | void minChanged(qreal min); |
|
74 | 74 | void maxChanged(qreal max); |
|
75 | 75 | void rangeChanged(qreal min, qreal max); |
@@ -79,7 +79,7 signals: | |||
|
79 | 79 | void updated(); |
|
80 | 80 | void changed(qreal min, qreal max, int tickCount,bool niceNumbers); |
|
81 | 81 | //internal slot |
|
82 | public slots: | |
|
82 | public Q_SLOTS: | |
|
83 | 83 | void handleAxisRangeChanged(qreal min, qreal max,int count); |
|
84 | 84 | |
|
85 | 85 | private: |
@@ -23,7 +23,7 public: | |||
|
23 | 23 | int count(); |
|
24 | 24 | |
|
25 | 25 | //internal signal |
|
26 | signals: | |
|
26 | Q_SIGNALS: | |
|
27 | 27 | void updated(); |
|
28 | 28 | |
|
29 | 29 | private: |
@@ -33,9 +33,7 public: | |||
|
33 | 33 | |
|
34 | 34 | // TODO: Consider the domain for layoutChanged. May be use case, may not be. If it is, then the derived classes need to implement it |
|
35 | 35 | virtual void dataChanged(); // data of series has changed -> need to recalculate bar sizes |
|
36 | private slots: | |
|
37 | 36 | |
|
38 | public: | |
|
39 | 37 | virtual QVector<QRectF> calculateLayout(); |
|
40 | 38 | void applyLayout(const QVector<QRectF> &layout); |
|
41 | 39 | void setLayout(const QVector<QRectF> &layout); |
@@ -43,7 +41,7 public: | |||
|
43 | 41 | |
|
44 | 42 | QRectF geometry() const { return m_rect;} |
|
45 | 43 | |
|
46 | public slots: | |
|
44 | public Q_SLOTS: | |
|
47 | 45 | void handleModelChanged(int index); |
|
48 | 46 | void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
49 | 47 | void handleGeometryChanged(const QRectF &size); |
@@ -41,10 +41,10 public: | |||
|
41 | 41 | |
|
42 | 42 | QString categoryName(int category); |
|
43 | 43 | |
|
44 | signals: | |
|
44 | Q_SIGNALS: | |
|
45 | 45 | void modelUpdated(); |
|
46 | 46 | |
|
47 | public slots: | |
|
47 | public Q_SLOTS: | |
|
48 | 48 | |
|
49 | 49 | private: |
|
50 | 50 |
@@ -51,7 +51,7 public: | |||
|
51 | 51 | BarChartModel& model(); |
|
52 | 52 | // <--- TO PIMPL |
|
53 | 53 | |
|
54 | signals: | |
|
54 | Q_SIGNALS: | |
|
55 | 55 | //void changed(int index); |
|
56 | 56 | void clicked(QBarSet *barset, QString category); // Up to user of api, what to do with these signals |
|
57 | 57 | void rightClicked(QBarSet *barset, QString category); |
@@ -15,7 +15,7 class Chart: public QObject | |||
|
15 | 15 | public: |
|
16 | 16 | explicit Chart(ChartPresenter *presenter); |
|
17 | 17 | |
|
18 | public slots: | |
|
18 | public Q_SLOTS: | |
|
19 | 19 | virtual void handleGeometryChanged(const QRectF& rect); |
|
20 | 20 | virtual void handleDomainChanged(qreal minX,qreal maxX,qreal minY,qreal maxY); |
|
21 | 21 | virtual void rangeXChanged(qreal min, qreal max, int tickXCount); |
@@ -58,14 +58,14 private: | |||
|
58 | 58 | void createConnections(); |
|
59 | 59 | void resetAllElements(); |
|
60 | 60 | |
|
61 | public slots: | |
|
61 | public Q_SLOTS: | |
|
62 | 62 | void handleSeriesAdded(QSeries* series,Domain* domain); |
|
63 | 63 | void handleSeriesRemoved(QSeries* series); |
|
64 | 64 | void handleAxisAdded(QChartAxis* axis,Domain* domain); |
|
65 | 65 | void handleAxisRemoved(QChartAxis* axis); |
|
66 | 66 | void handleGeometryChanged(); |
|
67 | 67 | |
|
68 | signals: | |
|
68 | Q_SIGNALS: | |
|
69 | 69 | void geometryChanged(const QRectF& rect); |
|
70 | 70 | |
|
71 | 71 | private: |
@@ -43,12 +43,12 public: | |||
|
43 | 43 | void zoomOut(const QRectF& rect, const QSizeF& size); |
|
44 | 44 | void move(int dx,int dy,const QSizeF& size); |
|
45 | 45 | |
|
46 | signals: | |
|
46 | Q_SIGNALS: | |
|
47 | 47 | void domainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
48 | 48 | void rangeXChanged(qreal min, qreal max, int tickXCount); |
|
49 | 49 | void rangeYChanged(qreal min, qreal max, int tickYCount); |
|
50 | 50 | |
|
51 | public slots: | |
|
51 | public Q_SLOTS: | |
|
52 | 52 | void handleAxisXChanged(qreal min,qreal max,int tickXCount = 5,bool niceNumbers = false); |
|
53 | 53 | void handleAxisYChanged(qreal min,qreal max,int tickYCount = 5,bool niceNumbers = false); |
|
54 | 54 |
@@ -23,10 +23,10 public: | |||
|
23 | 23 | |
|
24 | 24 | virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
25 | 25 | |
|
26 | signals: | |
|
26 | Q_SIGNALS: | |
|
27 | 27 | void clicked(QGraphicsSceneMouseEvent* event); |
|
28 | 28 | |
|
29 | public slots: | |
|
29 | public Q_SLOTS: | |
|
30 | 30 | |
|
31 | 31 | private: |
|
32 | 32 |
@@ -22,7 +22,7 public: | |||
|
22 | 22 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |
|
23 | 23 | QPainterPath shape() const; |
|
24 | 24 | |
|
25 | public slots: | |
|
25 | public Q_SLOTS: | |
|
26 | 26 | void handleUpdated(); |
|
27 | 27 | |
|
28 | 28 | protected: |
@@ -53,13 +53,13 public: | |||
|
53 | 53 | void setSize(const QSizeF size); |
|
54 | 54 | void setPos(const QPointF &pos); |
|
55 | 55 | |
|
56 | signals: | |
|
56 | Q_SIGNALS: | |
|
57 | 57 | // for interactions. |
|
58 | 58 | void clicked(QSeries *series, Qt::MouseButton button); |
|
59 | 59 | void clicked(QBarSet *barset, Qt::MouseButton button); |
|
60 | 60 | void clicked(QPieSlice *slice, Qt::MouseButton button); |
|
61 | 61 | |
|
62 | public slots: | |
|
62 | public Q_SLOTS: | |
|
63 | 63 | // PIMPL ---> |
|
64 | 64 | void handleSeriesAdded(QSeries *series, Domain *domain); |
|
65 | 65 | void handleSeriesRemoved(QSeries *series); |
@@ -27,7 +27,7 public: | |||
|
27 | 27 | |
|
28 | 28 | void markerSelected(Marker *item); |
|
29 | 29 | |
|
30 | public slots: | |
|
30 | public Q_SLOTS: | |
|
31 | 31 | void handleUpdated(); |
|
32 | 32 | |
|
33 | 33 | private: |
@@ -34,7 +34,7 private: | |||
|
34 | 34 | void calculateControlPoints(); |
|
35 | 35 | QList<qreal> getFirstControlPoints(QList<qreal> rhs); |
|
36 | 36 | |
|
37 |
private |
|
|
37 | private Q_SLOTS: | |
|
38 | 38 | void updateControlPoints(); |
|
39 | 39 | |
|
40 | 40 | private: |
@@ -17,7 +17,7 public: | |||
|
17 | 17 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |
|
18 | 18 | QPainterPath shape() const; |
|
19 | 19 | |
|
20 | public slots: | |
|
20 | public Q_SLOTS: | |
|
21 | 21 | void handleUpdated(); |
|
22 | 22 | |
|
23 | 23 | protected: |
@@ -45,14 +45,14 public: | |||
|
45 | 45 | virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
46 | 46 | virtual void setModelMappingShift(int first, int count = 0); |
|
47 | 47 | |
|
48 |
private |
|
|
48 | private Q_SLOTS: | |
|
49 | 49 | void modelUpdated(QModelIndex topLeft, QModelIndex bottomRight); |
|
50 | 50 | void modelDataAboutToBeAdded(QModelIndex parent, int start, int end); |
|
51 | 51 | void modelDataAdded(QModelIndex parent, int start, int end); |
|
52 | 52 | void modelDataAboutToBeRemoved(QModelIndex parent, int start, int end); |
|
53 | 53 | void modelDataRemoved(QModelIndex parent, int start, int end); |
|
54 | 54 | |
|
55 | signals: | |
|
55 | Q_SIGNALS: | |
|
56 | 56 | void clicked(const QPointF &point); |
|
57 | 57 | void updated(); |
|
58 | 58 | void pointReplaced(int index); |
@@ -21,14 +21,14 public: | |||
|
21 | 21 | QRectF clipRect() const { return m_clipRect;} |
|
22 | 22 | |
|
23 | 23 | |
|
24 | public slots: | |
|
24 | public Q_SLOTS: | |
|
25 | 25 | void handlePointAdded(int index); |
|
26 | 26 | void handlePointRemoved(int index); |
|
27 | 27 | void handlePointReplaced(int index); |
|
28 | 28 | void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY); |
|
29 | 29 | void handleGeometryChanged(const QRectF &size); |
|
30 | 30 | |
|
31 | signals: | |
|
31 | Q_SIGNALS: | |
|
32 | 32 | void clicked(const QPointF& point); |
|
33 | 33 | |
|
34 | 34 | protected: |
General Comments 0
You need to be logged in to leave comments.
Login now