Changeset View
Changeset View
Standalone View
Standalone View
qtests/DrawIntoPainter/mainwindow.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
45 | protected: | 45 | protected: | ||
46 | /** | 46 | /** | ||
47 | * Adjusts the two small charts when the window is resized. | 47 | * Adjusts the two small charts when the window is resized. | ||
48 | */ | 48 | */ | ||
49 | /* reimp */ void resizeEvent ( QResizeEvent * ) Q_DECL_OVERRIDE; | 49 | /* reimp */ void resizeEvent ( QResizeEvent * ) Q_DECL_OVERRIDE; | ||
50 | 50 | | |||
51 | private slots: | 51 | private slots: | ||
52 | 52 | | |||
53 | void on_lineTypeCB_currentIndexChanged( const QString & text ); | 53 | void setLineType( const QString & text ); | ||
54 | void on_paintLegendCB_toggled( bool checked ); | 54 | void setLegendVisible( bool visible ); | ||
55 | void on_paintValuesCB_toggled( bool checked ); | 55 | void setValuesVisible( bool visible ); | ||
56 | void on_paintMarkersCB_toggled( bool checked ); | 56 | void setMarkersVisible( bool visible ); | ||
57 | void on_markersStyleCB_currentIndexChanged( const QString & text ); | 57 | void updateMarkers(); | ||
58 | void on_markersWidthSB_valueChanged( int i ); | 58 | void updateMarkersHeight(); | ||
59 | void on_markersHeightSB_valueChanged( int i); | 59 | void updateMarkersWidth(); | ||
60 | void on_displayAreasCB_toggled( bool checked ); | 60 | void updateAreas( bool visible ); | ||
61 | void on_transparencySB_valueChanged( int i ); | 61 | void updateAreasTransparency(); | ||
62 | void on_zoomFactorSB_valueChanged( qreal factor ); | 62 | void setZoomFactor( qreal factor ); | ||
63 | void on_hSBar_valueChanged( int value ); | 63 | void setHPos( int value ); | ||
64 | void on_vSBar_valueChanged( int value ); | 64 | void setVPos( int value ); | ||
65 | void on_savePB_clicked(); | 65 | void saveChart(); | ||
66 | 66 | | |||
67 | private: | 67 | private: | ||
68 | void paintMarkers( bool checked, const QSize& printSize ); | 68 | void paintMarkers( bool checked, const QSize& printSize ); | ||
69 | 69 | | |||
70 | private: | 70 | private: | ||
71 | KChart::Chart* m_chart; | 71 | KChart::Chart* m_chart; | ||
72 | TableModel m_model; | 72 | TableModel m_model; | ||
73 | KChart::DatasetProxyModel* m_datasetProxy; | 73 | KChart::DatasetProxyModel* m_datasetProxy; | ||
74 | KChart::LineDiagram* m_lines; | 74 | KChart::LineDiagram* m_lines; | ||
75 | KChart::Legend* m_legend; | 75 | KChart::Legend* m_legend; | ||
76 | QPixmap m_pix1, m_pix2; | 76 | QPixmap m_pix1, m_pix2; | ||
77 | QLabel* m_smallChart1; | 77 | QLabel* m_smallChart1; | ||
78 | QLabel* m_smallChart2; | 78 | QLabel* m_smallChart2; | ||
79 | }; | 79 | }; | ||
80 | 80 | | |||
81 | #endif /* MAINWINDOW_H */ | 81 | #endif /* MAINWINDOW_H */ |