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
31
class
QChart;
32
class
QWidget;
33
34
namespace
openswmmvis::ui
{
35
36
class
ChartAxisFormatController
:
public
QObject
37
{
38
Q_OBJECT
39
public
:
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
56
private
:
57
QPointer<QChart> m_chart;
58
openswmmvis::plot::NumberFormat
m_x;
59
openswmmvis::plot::NumberFormat
m_y;
60
};
61
62
}
// namespace openswmmvis::ui
63
64
#endif
// OPENSWMMVIS_UI_WIDGETS_CHARTAXISFORMATCONTROLLER_H
openswmmvis::ui::ChartAxisFormatController
Definition
chartaxisformatcontroller.h:37
openswmmvis::ui::ChartAxisFormatController::apply
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
openswmmvis::ui::ChartAxisFormatController::setChart
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
openswmmvis::ui::ChartAxisFormatController::openDialog
void openDialog(QWidget *parent)
Open the modeless ChartPropertiesDialog for the bound chart, seeded from the stored formats; format e...
Definition
chartaxisformatcontroller.cpp:54
openswmmvis::ui
Definition
openswmmvislayer.h:43
numberformat.h
Single source of truth for how chart plots render numeric values.
parent
QVector< int > parent
union-find
Definition
pslgminsize.cpp:176
openswmmvis::plot::NumberFormat
A mode + count describing how to render a double.
Definition
numberformat.h:41
include
ui
widgets
chartaxisformatcontroller.h
Generated by
1.9.8