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

#include <reactionexpressionedit.h>

Inheritance diagram for openswmmvis::ui::ReactionExpressionDelegate:
Collaboration diagram for openswmmvis::ui::ReactionExpressionDelegate:

Signals

void validationChanged (bool ok, const QString &msg, int col) const
 

Public Member Functions

 ReactionExpressionDelegate (void *engineHandle, int defaultScope, QObject *parent=nullptr)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 

Static Public Attributes

static constexpr int ScopeRole = 0x0100 + 77
 Model data role carrying the cell's SWMM_RXN_SCOPE_* (int).
 

Detailed Description

Cell delegate hosting ReactionExpressionEdit; forwards live validation so the hosting page's banner can mirror it. The scope for each cell comes from the model's ScopeRole (falls back to the constructor's).

Constructor & Destructor Documentation

◆ ReactionExpressionDelegate()

openswmmvis::ui::ReactionExpressionDelegate::ReactionExpressionDelegate ( void *  engineHandle,
int  defaultScope,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ createEditor()

QWidget * openswmmvis::ui::ReactionExpressionDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
Here is the call graph for this function:

◆ setEditorData()

void openswmmvis::ui::ReactionExpressionDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

◆ setModelData()

void openswmmvis::ui::ReactionExpressionDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

◆ validationChanged

void openswmmvis::ui::ReactionExpressionDelegate::validationChanged ( bool  ok,
const QString &  msg,
int  col 
) const
signal
Here is the caller graph for this function:

Member Data Documentation

◆ ScopeRole

constexpr int openswmmvis::ui::ReactionExpressionDelegate::ScopeRole = 0x0100 + 77
staticconstexpr

Model data role carrying the cell's SWMM_RXN_SCOPE_* (int).


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