![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <chartaxisformatcontroller.h>
Public Member Functions | |
| ChartAxisFormatController (QChart *chart, QObject *parent=nullptr) | |
Construct bound to chart (may be null; bind later via setChart). X/Y formats are seeded from the global Preferences. | |
| void | setChart (QChart *chart) |
Rebind to chart and re-apply the stored formats. Use when an editor rebuilds the whole chart/axes (e.g. the scatter plot). | |
| void | apply () |
| Push the stored X/Y formats onto every QValueAxis of the bound chart. Time/category axes are left untouched. | |
| void | openDialog (QWidget *parent) |
| Open the modeless ChartPropertiesDialog for the bound chart, seeded from the stored formats; format edits are written back here. | |
|
explicit |
Construct bound to chart (may be null; bind later via setChart). X/Y formats are seeded from the global Preferences.
| void openswmmvis::ui::ChartAxisFormatController::apply | ( | ) |
Push the stored X/Y formats onto every QValueAxis of the bound chart. Time/category axes are left untouched.
| void openswmmvis::ui::ChartAxisFormatController::openDialog | ( | QWidget * | parent | ) |
Open the modeless ChartPropertiesDialog for the bound chart, seeded from the stored formats; format edits are written back here.
| void openswmmvis::ui::ChartAxisFormatController::setChart | ( | QChart * | chart | ) |
Rebind to chart and re-apply the stored formats. Use when an editor rebuilds the whole chart/axes (e.g. the scatter plot).