##// END OF EJS Templates
missing signal/slot parameter at QPieSeries::insert()
missing signal/slot parameter at QPieSeries::insert()

File last commit:

r813:95eb00cb8ef8
r819:c24876e34874
Show More
qbarseries.h
116 lines | 3.6 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** 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$
**
****************************************************************************/
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 #ifndef BARSERIES_H
#define BARSERIES_H
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Jani Honkonen
Change includes in public headers from #include "xxx" -> #include <xxx>
r697 #include <qseries.h>
sauimone
replaced qbarcategory with qstringlist
r377 #include <QStringList>
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Adds BarCategories typedef
r703 typedef QStringList QBarCategories;
Michal Klocek
Adds back reimplemnted categories handling
r701
sauimone
removed barchartseriesbase. functionality is now in model
r172 class QBarSet;
class BarChartModel;
sauimone
right click feature for bar series. Enables drilldown
r412 class BarCategory;
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Container for series
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QSeries
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Improved bar chart series
r71 Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 QBarSeries(QStringList categories, QObject *parent = 0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Michal Klocek
Rename QChartSeries to QSeries
r360 virtual QSeriesType type() const { return QSeries::SeriesTypeBar; }
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
sauimone
const to getters, renamed addBarset to appendBarset
r776 void appendBarSet(QBarSet *set); // Takes ownership of set
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 void removeBarSet(QBarSet *set); // Releases ownership, doesn't delete set
Marek Rosa
Adding data to BarSet through model added
r662 void insertBarSet(int i, QBarSet *set);
void insertCategory(int i, QString category);
Marek Rosa
Removing data from BarSeries through model added
r663 void removeCategory(int i);
sauimone
const to getters, renamed addBarset to appendBarset
r776 int barsetCount() const;
int categoryCount() const;
QList<QBarSet*> barSets() const;
Michal Klocek
Adds BarCategories typedef
r703 QBarCategories categories() const;
sauimone
values visibility handling changed in barchart
r813 void setValuesVisible(bool visible = true);
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 bool setModel(QAbstractItemModel *model);
QAbstractItemModel *modelExt() { return m_model; }
Marek Rosa
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series
r630 void setModelMapping(int categories, int bottomBoundry, int topBoundry, Qt::Orientation orientation = Qt::Vertical);
Marek Rosa
XYSeries: added support for limited mapping area
r734 void setModelMappingShift(int first, int count);
Marek Rosa
QXYSeries: model data orientation added. QBarSeries: some model data function placeholders
r527
sauimone
moved tooltip to presenter
r288 public:
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 // TODO: Functions below this are not part of api and will be moved
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // to private implementation, when we start using it
// TODO: TO PIMPL --->
sauimone
right click feature for bar series. Enables drilldown
r412 QBarSet* barsetAt(int index);
QString categoryName(int category);
sauimone
removed barchartseriesbase. functionality is now in model
r172 qreal min();
qreal max();
qreal valueAt(int set, int category);
sauimone
moved tooltip to presenter
r288 qreal percentageAt(int set, int category);
qreal categorySum(int category);
sauimone
removed barchartseriesbase. functionality is now in model
r172 qreal maxCategorySum();
BarChartModel& model();
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // <--- TO PIMPL
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
combined clicked and rightclicked signals in barchart
r812 void clicked(QBarSet *barset, QString category, Qt::MouseButtons button); // Up to user of api, what to do with these signals
sauimone
removed barchartseriesbase. functionality is now in model
r172
Marek Rosa
Barchart updates on BarSet->SetValue now
r655 //
void updatedBars();
Marek Rosa
Adding data to BarSet through model added
r662 void restructuredBar(int);
Marek Rosa
Barchart updates on BarSet->SetValue now
r655
sauimone
moved tooltip to presenter
r288 // TODO: internal signals, these to private implementation.
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // TODO: TO PIMPL --->
sauimone
moved tooltip to presenter
r288 void showToolTip(QPoint pos, QString tip);
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // <--- TO PIMPL
public Q_SLOTS:
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void setToolTipEnabled(bool enabled = true); // enables tooltips
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
r425 // TODO: TO PIMPL --->
sauimone
combined clicked and rightclicked signals in barchart
r812 void barsetClicked(QString category, Qt::MouseButtons button);
sauimone
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
r425 // <--- TO PIMPL
Marek Rosa
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series
r630 private Q_SLOTS:
// slots for updating bars when data in model changes
void modelUpdated(QModelIndex topLeft, QModelIndex bottomRight);
void modelDataAdded(QModelIndex parent, int start, int end);
void modelDataRemoved(QModelIndex parent, int start, int end);
void barsetChanged();
sauimone
refactoring. QStackedBarSeries and QPercentBarSeries are now derived from QBarSeries.
r281 protected:
sauimone
legend fixes
r766 BarChartModel *m_internalModel; // TODO: this may change... current "2 models" situation doesn't look good.
Marek Rosa
QXYSeries: model data orientation added. QBarSeries: some model data function placeholders
r527
sauimone
minor code review fixes, part n
r763 QAbstractItemModel* m_model;
Marek Rosa
QXYSeries: model data orientation added. QBarSeries: some model data function placeholders
r527 int m_mapCategories;
int m_mapBarBottom;
int m_mapBarTop;
Marek Rosa
XYSeries: added support for limited mapping area
r734 int m_mapFirst;
int m_mapCount;
Marek Rosa
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series
r630 Qt::Orientation m_mapOrientation;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 #endif // BARSERIES_H