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
SWMMVisProject Class Reference

#include <swmmvisproject.h>

Inheritance diagram for SWMMVisProject:
Collaboration diagram for SWMMVisProject:

Signals

void oswpPathChanged (const QString &path)
 
void titleChanged (const QString &title)
 
void instanceAdded (SWMMVisProjectWindow *pw)
 
void instanceRemoved (SWMMVisProjectWindow *pw)
 

Public Member Functions

 SWMMVisProject (QObject *parent=nullptr)
 
 ~SWMMVisProject () override
 
QString oswpPath () const noexcept
 
void setOswpPath (const QString &path)
 
QString title () const noexcept
 
void setTitle (const QString &title)
 
QVector< SWMMVisProjectWindow * > instances () const
 
QVector< SWMMVisProjectWindow * > dirtyInstances () const
 
void addInstance (SWMMVisProjectWindow *pw)
 
bool removeInstance (SWMMVisProjectWindow *pw)
 
bool isDirty () const
 

Constructor & Destructor Documentation

◆ SWMMVisProject()

SWMMVisProject::SWMMVisProject ( QObject *  parent = nullptr)
explicit

◆ ~SWMMVisProject()

SWMMVisProject::~SWMMVisProject ( )
overridedefault

Member Function Documentation

◆ addInstance()

void SWMMVisProject::addInstance ( SWMMVisProjectWindow pw)

Add an instance. No-op if already present. Does not take ownership of the window.

Here is the call graph for this function:

◆ dirtyInstances()

QVector< SWMMVisProjectWindow * > SWMMVisProject::dirtyInstances ( ) const

Subset of instances() whose hasChanges() returns true.

◆ instanceAdded

void SWMMVisProject::instanceAdded ( SWMMVisProjectWindow pw)
signal
Here is the caller graph for this function:

◆ instanceRemoved

void SWMMVisProject::instanceRemoved ( SWMMVisProjectWindow pw)
signal
Here is the caller graph for this function:

◆ instances()

QVector< SWMMVisProjectWindow * > SWMMVisProject::instances ( ) const
inline

Snapshot of the current instance list (one window per SWMM model). Order reflects insertion order; not stable across add/remove.

Here is the caller graph for this function:

◆ isDirty()

bool SWMMVisProject::isDirty ( ) const

Convenience — true when at least one instance is dirty.

◆ oswpPath()

QString SWMMVisProject::oswpPath ( ) const
inlinenoexcept

Path of the .oswp file backing this project, or empty if the project hasn't been saved yet (untitled).

◆ oswpPathChanged

void SWMMVisProject::oswpPathChanged ( const QString &  path)
signal
Here is the caller graph for this function:

◆ removeInstance()

bool SWMMVisProject::removeInstance ( SWMMVisProjectWindow pw)

Remove an instance. Returns true if it was present.

Here is the call graph for this function:

◆ setOswpPath()

void SWMMVisProject::setOswpPath ( const QString &  path)
Here is the call graph for this function:

◆ setTitle()

void SWMMVisProject::setTitle ( const QString &  title)
Here is the call graph for this function:

◆ title()

QString SWMMVisProject::title ( ) const
inlinenoexcept

Optional human-readable title (currently mirrors the basename of the .oswp path). Future: persisted in the v4 schema.

Here is the caller graph for this function:

◆ titleChanged

void SWMMVisProject::titleChanged ( const QString &  title)
signal
Here is the caller graph for this function:

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