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
openswmmvis::ui::ChartAxisFormatController Class Reference

#include <chartaxisformatcontroller.h>

Inheritance diagram for openswmmvis::ui::ChartAxisFormatController:
Collaboration diagram for openswmmvis::ui::ChartAxisFormatController:

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.
 

Constructor & Destructor Documentation

◆ ChartAxisFormatController()

openswmmvis::ui::ChartAxisFormatController::ChartAxisFormatController ( QChart *  chart,
QObject *  parent = nullptr 
)
explicit

Construct bound to chart (may be null; bind later via setChart). X/Y formats are seeded from the global Preferences.

Here is the call graph for this function:

Member Function Documentation

◆ apply()

void openswmmvis::ui::ChartAxisFormatController::apply ( )

Push the stored X/Y formats onto every QValueAxis of the bound chart. Time/category axes are left untouched.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openDialog()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setChart()

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).

Here is the call graph for this function:

The documentation for this class was generated from the following files: