##// END OF EJS Templates
Fix include syntax...
Fix include syntax The includes for the whole project are changed to syntax: '#include <module/class> Change-Id: If32f8b6c3f47516ad6bc30ed40789ea9042d5664 Task-number: QTRD-3373 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2714:929d943d1aab
r2714:929d943d1aab
Show More
mainwidget.h
90 lines | 2.4 KiB | text/x-c | CLexer
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 /****************************************************************************
**
Titta Heikkala
Update copyright year...
r2688 ** Copyright (C) 2014 Digia Plc
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 ** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 ** This file is part of the Qt Enterprise Charts Add-on.
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 **
** $QT_BEGIN_LICENSE$
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 ** Licensees holding valid Qt Enterprise licenses may use this file in
** accordance with the Qt Enterprise License Agreement provided with the
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 ** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChartGlobal>
#include <QtCharts/QChart>
#include <QtCharts/QChartView>
#include <QtWidgets/QWidget>
#include <QtCharts/QBoxPlotSeries>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QBoxSet>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDoubleSpinBox>
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
class QGridLayout;
Titta Heikkala
Fix include syntax...
r2714 class CustomTableModel;
class PenTool;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_USE_NAMESPACE
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
class MainWidget : public QWidget
{
Q_OBJECT
public:
explicit MainWidget(QWidget *parent = 0);
signals:
private:
void initThemeCombo(QGridLayout *grid);
void initCheckboxes(QGridLayout *grid);
Miikka Heikkinen
Refactor boxplottest...
r2562 void updateAxis(int categoryCount);
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
private slots:
void addSeries();
void removeSeries();
void addBox();
void insertBox();
void removeBox();
void clear();
void clearBox();
void setBrush();
void animationToggled(bool enabled);
void legendToggled(bool enabled);
void titleToggled(bool enabled);
void modelMapperToggled(bool enabled);
void changeChartTheme(int themeIndex);
void boxClicked(QBoxSet *set);
void boxHovered(bool state, QBoxSet *set);
void singleBoxClicked();
void singleBoxHovered(bool state);
Mika Salmela
Pentool to boxplot tester...
r2567 void changePen();
void antialiasingToggled(bool);
Mika Salmela
Selectable outlines for box...
r2573 void boxOutlineToggled(bool);
Mika Salmela
Property to control box width...
r2584 void setBoxWidth(double width);
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548
private:
QChart *m_chart;
QChartView *m_chartView;
QGridLayout *m_scatterLayout;
QBarCategoryAxis *m_axis;
CustomTableModel *m_model;
Mika Salmela
Pentool to boxplot tester...
r2567 PenTool *m_penTool;
Miikka Heikkinen
Refactor boxplottest...
r2562 int m_rowPos;
int m_seriesCount;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 QBoxPlotSeries *m_series[10];
Mika Salmela
Selectable outlines for box...
r2573 QCheckBox *m_boxOutlined;
Mika Salmela
Property to control box width...
r2584 QDoubleSpinBox *m_boxWidthSB;
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 };
#endif // MAINWIDGET_H