##// END OF EJS Templates
Added QML_IMPORT_PATH to run_tests script for OSX
Added QML_IMPORT_PATH to run_tests script for OSX

File last commit:

r1698:da7242791c36
r2033:0715a02a08e5
Show More
domain_p.h
88 lines | 2.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$
**
****************************************************************************/
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
// This file is not part of the QtCommercial Chart API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Michal Klocek
Fixes header guard style issues
r969 #ifndef DOMAIN_H
#define DOMAIN_H
Michal Klocek
Refactors qchart , adds line animation...
r131 #include "qchartglobal.h"
Michal Klocek
Refactor domain model...
r439 #include <QRectF>
#include <QSizeF>
Michal Klocek
Improves build configuration...
r996 #include <QDebug>
Michal Klocek
Refactors qchart , adds line animation...
r131
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing
r1050 class QTCOMMERCIALCHART_AUTOTEST_EXPORT Domain: public QObject {
Michal Klocek
Refactor domain model...
r439 Q_OBJECT
Michal Klocek
Refactors qchart , adds line animation...
r131 public:
Michal Klocek
Refactor domain model...
r439 explicit Domain(QObject* object=0);
virtual ~Domain();
void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY);
void setRangeX(qreal min, qreal max);
void setRangeY(qreal min, qreal max);
void setMinX(qreal min);
void setMaxX(qreal max);
void setMinY(qreal min);
void setMaxY(qreal max);
Tero Ahola
Internal review: Removed extra semicolons
r760 qreal minX() const { return m_minX; }
qreal maxX() const { return m_maxX; }
qreal minY() const { return m_minY; }
qreal maxY() const { return m_maxY; }
Michal Klocek
Refactor domain model...
r439
qreal spanX() const;
qreal spanY() const;
bool isEmpty() const;
Michal Klocek
Another attempt to fix issue with visual sutudio hidden export attributes in domain
r1067 friend bool QTCOMMERCIALCHART_AUTOTEST_EXPORT operator== (const Domain &domain1, const Domain &domain2);
friend bool QTCOMMERCIALCHART_AUTOTEST_EXPORT operator!= (const Domain &domain1, const Domain &domain2);
friend QDebug QTCOMMERCIALCHART_AUTOTEST_EXPORT operator<<(QDebug dbg, const Domain &domain);
Michal Klocek
Refactor domain model...
r439
void zoomIn(const QRectF& rect, const QSizeF& size);
void zoomOut(const QRectF& rect, const QSizeF& size);
Michal Klocek
Fix precision issue when scrolling domain
r1267 void move(qreal dx,qreal dy,const QSizeF& size);
Michal Klocek
Refactors Domain and Axis...
r1698 void emitUpdated();
Michal Klocek
Refactor domain model...
r439
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
Michal Klocek
Refactors Domain and Axis...
r1698 void updated();
void rangeXChanged(qreal min, qreal max);
void rangeYChanged(qreal min, qreal max);
Michal Klocek
Adds scroll support...
r531
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Refactors Domain and Axis...
r1698 void handleAxisUpdated();
Michal Klocek
Refactor domain model...
r439
private:
qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
Michal Klocek
Refactors qchart , adds line animation...
r131 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif