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::CurveEditorDialog Class Reference

#include <curveeditordialog.h>

Inheritance diagram for openswmmvis::ui::CurveEditorDialog:
Collaboration diagram for openswmmvis::ui::CurveEditorDialog:

Public Types

enum class  Mode {
  Edit ,
  CreateNew
}
 

Public Member Functions

 CurveEditorDialog (openswmmvis::curve::CurveRegistry *registry, QUndoStack *undoStack, QWidget *parent=nullptr)
 
 ~CurveEditorDialog () override
 
void openForCurve (const QString &name)
 
Mode mode () const noexcept
 
openswmmvis::curve::CurveProvidercurrentProvider () const noexcept
 
QListView * listView () const noexcept
 
QTableView * pointTable () const noexcept
 
CurveEditChartViewchartView () const noexcept
 
CurvePointTableModeltableModel () const noexcept
 
QString pendingName () const
 
int pendingType () const
 
bool isCreateEnabled () const
 
void submitCreateNew ()
 
void invokeAddRow ()
 
void invokeDeleteRows ()
 
void invokeNew ()
 Reveal the create-card (mirrors the "+ New" button).
 
bool renameCurrent (const QString &newName)
 Rename the currently selected curve. Returns false if no selection or the new name collides.
 
void deleteCurrentSilently ()
 Delete the currently selected curve from the registry (bypasses the confirmation dialog).
 

Static Public Member Functions

static CurveEditorDialogcreateNew (openswmmvis::curve::CurveRegistry *registry, QUndoStack *undoStack, QWidget *parent=nullptr)
 
static QString pickCurve (openswmmvis::curve::CurveRegistry *registry, QUndoStack *undoStack, const QString &initialName, QWidget *parent=nullptr)
 Modal pick / create / edit entry point for callers that round-trip a curve selection inline (e.g. the outfall stage-data picker for TIDAL outfalls). Empty initialName → CreateNew mode; otherwise → Edit mode pre-selecting that curve. Returns the name of the curve currently selected on close, or empty if no commit happened. All edits persist through the registry/provider MVC layer regardless of which button closes the dialog. Mirrors PatternEditorDialog::pickPattern / TimeseriesEditorDialog::pickTimeseries.
 

Member Enumeration Documentation

◆ Mode

Enumerator
Edit 
CreateNew 

Constructor & Destructor Documentation

◆ CurveEditorDialog()

openswmmvis::ui::CurveEditorDialog::CurveEditorDialog ( openswmmvis::curve::CurveRegistry registry,
QUndoStack *  undoStack,
QWidget *  parent = nullptr 
)
Here is the call graph for this function:

◆ ~CurveEditorDialog()

openswmmvis::ui::CurveEditorDialog::~CurveEditorDialog ( )
overridedefault

Member Function Documentation

◆ chartView()

CurveEditChartView * openswmmvis::ui::CurveEditorDialog::chartView ( ) const
inlinenoexcept

◆ createNew()

CurveEditorDialog * openswmmvis::ui::CurveEditorDialog::createNew ( openswmmvis::curve::CurveRegistry registry,
QUndoStack *  undoStack,
QWidget *  parent = nullptr 
)
static

◆ currentProvider()

CurveProvider * openswmmvis::ui::CurveEditorDialog::currentProvider ( ) const
noexcept
Here is the caller graph for this function:

◆ deleteCurrentSilently()

void openswmmvis::ui::CurveEditorDialog::deleteCurrentSilently ( )

Delete the currently selected curve from the registry (bypasses the confirmation dialog).

◆ invokeAddRow()

void openswmmvis::ui::CurveEditorDialog::invokeAddRow ( )

◆ invokeDeleteRows()

void openswmmvis::ui::CurveEditorDialog::invokeDeleteRows ( )

◆ invokeNew()

void openswmmvis::ui::CurveEditorDialog::invokeNew ( )

Reveal the create-card (mirrors the "+ New" button).

◆ isCreateEnabled()

bool openswmmvis::ui::CurveEditorDialog::isCreateEnabled ( ) const

◆ listView()

QListView * openswmmvis::ui::CurveEditorDialog::listView ( ) const
inlinenoexcept

◆ mode()

Mode openswmmvis::ui::CurveEditorDialog::mode ( ) const
inlinenoexcept

◆ openForCurve()

void openswmmvis::ui::CurveEditorDialog::openForCurve ( const QString &  name)

◆ pendingName()

QString openswmmvis::ui::CurveEditorDialog::pendingName ( ) const

◆ pendingType()

int openswmmvis::ui::CurveEditorDialog::pendingType ( ) const

◆ pickCurve()

QString openswmmvis::ui::CurveEditorDialog::pickCurve ( openswmmvis::curve::CurveRegistry registry,
QUndoStack *  undoStack,
const QString &  initialName,
QWidget *  parent = nullptr 
)
static

Modal pick / create / edit entry point for callers that round-trip a curve selection inline (e.g. the outfall stage-data picker for TIDAL outfalls). Empty initialName → CreateNew mode; otherwise → Edit mode pre-selecting that curve. Returns the name of the curve currently selected on close, or empty if no commit happened. All edits persist through the registry/provider MVC layer regardless of which button closes the dialog. Mirrors PatternEditorDialog::pickPattern / TimeseriesEditorDialog::pickTimeseries.

Here is the call graph for this function:

◆ pointTable()

QTableView * openswmmvis::ui::CurveEditorDialog::pointTable ( ) const
inlinenoexcept

◆ renameCurrent()

bool openswmmvis::ui::CurveEditorDialog::renameCurrent ( const QString &  newName)

Rename the currently selected curve. Returns false if no selection or the new name collides.

◆ submitCreateNew()

void openswmmvis::ui::CurveEditorDialog::submitCreateNew ( )

◆ tableModel()

CurvePointTableModel * openswmmvis::ui::CurveEditorDialog::tableModel ( ) const
inlinenoexcept

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