SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
chartaxisformatcontroller.h
Go to the documentation of this file.
1
23#ifndef OPENSWMMVIS_UI_WIDGETS_CHARTAXISFORMATCONTROLLER_H
24#define OPENSWMMVIS_UI_WIDGETS_CHARTAXISFORMATCONTROLLER_H
25
26#include "plot/numberformat.h"
27
28#include <QObject>
29#include <QPointer>
30
31class QChart;
32class QWidget;
33
34namespace openswmmvis::ui {
35
36class ChartAxisFormatController : public QObject
37{
38 Q_OBJECT
39public:
42 explicit ChartAxisFormatController(QChart *chart, QObject *parent = nullptr);
43
46 void setChart(QChart *chart);
47
50 void apply();
51
54 void openDialog(QWidget *parent);
55
56private:
57 QPointer<QChart> m_chart;
60};
61
62} // namespace openswmmvis::ui
63
64#endif // OPENSWMMVIS_UI_WIDGETS_CHARTAXISFORMATCONTROLLER_H
Definition chartaxisformatcontroller.h:37
void apply()
Push the stored X/Y formats onto every QValueAxis of the bound chart. Time/category axes are left unt...
Definition chartaxisformatcontroller.cpp:38
void setChart(QChart *chart)
Rebind to chart and re-apply the stored formats. Use when an editor rebuilds the whole chart/axes (e....
Definition chartaxisformatcontroller.cpp:32
void openDialog(QWidget *parent)
Open the modeless ChartPropertiesDialog for the bound chart, seeded from the stored formats; format e...
Definition chartaxisformatcontroller.cpp:54
Definition openswmmvislayer.h:43
Single source of truth for how chart plots render numeric values.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
A mode + count describing how to render a double.
Definition numberformat.h:41