##// END OF EJS Templates
Added colormap chart examples...
Added colormap chart examples Improved Zoom, added direction parameter. Signed-off-by: jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r2854:46147b040d06
r2901:d2a7a7849617
Show More
mainwidget.h
105 lines | 2.9 KiB | text/x-c | CLexer
Miikka Heikkinen
Updated license...
r2854 /****************************************************************************
Jani Honkonen
Split piechartcustomization to different files
r844 **
Miikka Heikkinen
Updated license...
r2854 ** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
Jani Honkonen
Split piechartcustomization to different files
r844 **
Miikka Heikkinen
Updated license...
r2854 ** This file is part of the Qt Charts module of the Qt Toolkit.
Jani Honkonen
Split piechartcustomization to different files
r844 **
Miikka Heikkinen
Updated license...
r2854 ** $QT_BEGIN_LICENSE:GPL$
Titta Heikkala
Updated license headers...
r2845 ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
Miikka Heikkinen
Updated license...
r2854 ** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
Jani Honkonen
Split piechartcustomization to different files
r844 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
Miikka Heikkinen
Updated license...
r2854 ****************************************************************************/
Jani Honkonen
Split piechartcustomization to different files
r844 #ifndef MAINWIDGET_H
#define MAINWIDGET_H
Titta Heikkala
Fix include syntax...
r2714 #include <QtWidgets/QWidget>
#include <QtCharts/QChartGlobal>
Jani Honkonen
Split piechartcustomization to different files
r844
Christian Kandeler
Fix compilation with namespaced Qt....
r2774 QT_BEGIN_NAMESPACE
Jani Honkonen
Tinkering with piechartcustomization
r1486 class QLineEdit;
Jani Honkonen
Split piechartcustomization to different files
r844 class QPushButton;
class QCheckBox;
class QComboBox;
class QDoubleSpinBox;
Christian Kandeler
Fix compilation with namespaced Qt....
r2774 QT_END_NAMESPACE
Jani Honkonen
Split piechartcustomization to different files
r844 class PenTool;
class BrushTool;
class CustomSlice;
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Jani Honkonen
Split piechartcustomization to different files
r844 class QChartView;
class QPieSeries;
class QPieSlice;
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Jani Honkonen
Split piechartcustomization to different files
r844
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_USE_NAMESPACE
Jani Honkonen
Split piechartcustomization to different files
r844
class MainWidget : public QWidget
{
Q_OBJECT
public:
Jani Honkonen
coding style fixes for demos
r2099 explicit MainWidget(QWidget *parent = 0);
Jani Honkonen
Split piechartcustomization to different files
r844
public Q_SLOTS:
void updateChartSettings();
void updateSerieSettings();
void updateSliceSettings();
Jani Honkonen
coding style fixes for demos
r2099 void handleSliceClicked(QPieSlice *slice);
Jani Honkonen
Split piechartcustomization to different files
r844 void showFontDialog();
Jani Honkonen
Improving pie examples
r892 void appendSlice();
Jani Honkonen
Split piechartcustomization to different files
r844 void insertSlice();
void removeSlice();
private:
QComboBox *m_themeComboBox;
QCheckBox *m_aaCheckBox;
QCheckBox *m_animationsCheckBox;
Jani Honkonen
API review changes for pie
r1009 QCheckBox *m_legendCheckBox;
Jani Honkonen
Split piechartcustomization to different files
r844
Jani Honkonen
coding style fixes for demos
r2099 QChartView *m_chartView;
QPieSeries *m_series;
CustomSlice *m_slice;
Jani Honkonen
Split piechartcustomization to different files
r844
Jani Honkonen
coding style fixes for demos
r2099 QDoubleSpinBox *m_hPosition;
QDoubleSpinBox *m_vPosition;
QDoubleSpinBox *m_sizeFactor;
QDoubleSpinBox *m_startAngle;
QDoubleSpinBox *m_endAngle;
QDoubleSpinBox *m_holeSize;
Jani Honkonen
Split piechartcustomization to different files
r844
Jani Honkonen
coding style fixes for demos
r2099 QLineEdit *m_sliceName;
QDoubleSpinBox *m_sliceValue;
QCheckBox *m_sliceLabelVisible;
QDoubleSpinBox *m_sliceLabelArmFactor;
QCheckBox *m_sliceExploded;
QDoubleSpinBox *m_sliceExplodedFactor;
Jani Honkonen
Split piechartcustomization to different files
r844 QPushButton *m_brush;
BrushTool *m_brushTool;
QPushButton *m_pen;
PenTool *m_penTool;
QPushButton *m_font;
Tero Ahola
Use labelBrush instead of labelPen for text labels
r1307 QPushButton *m_labelBrush;
Jani Honkonen
pie: add label position to slice
r1450 QComboBox *m_labelPosition;
Tero Ahola
Use labelBrush instead of labelPen for text labels
r1307 BrushTool *m_labelBrushTool;
Jani Honkonen
Split piechartcustomization to different files
r844 };
#endif // MAINWIDGET_H