#include <ruleseditordialog.h>
|
| static RulesEditorDialog * | createNew (SWMMModelLayer *layer, QUndoStack *undoStack, QWidget *parent=nullptr) |
| | Slice BM.0-Add-New factory: same dialog, started in CreateNew mode. Caller owns the returned dialog.
|
| |
| static QString | pickControlRule (SWMMModelLayer *layer, QUndoStack *undoStack, const QString &initialName, QWidget *parent=nullptr) |
| | Modal pick / create / edit entry point — mirrors TimeseriesEditorDialog::pickTimeseries. Empty initialName → CreateNew mode; otherwise → Edit mode pre-selecting that rule. Returns the name of the rule currently bound to the dialog on close, or empty if no commit happened. All edits flow through applyControlRule* so the engine state matches on close regardless of which button closes the dialog.
|
| |
◆ Mode
◆ RulesEditorDialog()
| openswmmvis::ui::RulesEditorDialog::RulesEditorDialog |
( |
SWMMModelLayer * |
layer, |
|
|
QUndoStack * |
undoStack, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ ~RulesEditorDialog()
| openswmmvis::ui::RulesEditorDialog::~RulesEditorDialog |
( |
| ) |
|
|
overridedefault |
◆ closeEvent()
| void openswmmvis::ui::RulesEditorDialog::closeEvent |
( |
QCloseEvent * |
e | ) |
|
|
overrideprotected |
◆ codeEditor()
| RuleCodeEditor * openswmmvis::ui::RulesEditorDialog::codeEditor |
( |
| ) |
const |
|
inlinenoexcept |
◆ createNew()
Slice BM.0-Add-New factory: same dialog, started in CreateNew mode. Caller owns the returned dialog.
◆ currentProvider()
◆ flushPendingEdit()
| void openswmmvis::ui::RulesEditorDialog::flushPendingEdit |
( |
| ) |
|
◆ invokeDelete()
| void openswmmvis::ui::RulesEditorDialog::invokeDelete |
( |
| ) |
|
◆ invokeNew()
| void openswmmvis::ui::RulesEditorDialog::invokeNew |
( |
| ) |
|
◆ isCreateEnabled()
| bool openswmmvis::ui::RulesEditorDialog::isCreateEnabled |
( |
| ) |
const |
◆ listModel()
| RuleListModel * openswmmvis::ui::RulesEditorDialog::listModel |
( |
| ) |
const |
|
inlinenoexcept |
◆ listView()
| QListView * openswmmvis::ui::RulesEditorDialog::listView |
( |
| ) |
const |
|
inlinenoexcept |
◆ mode()
| Mode openswmmvis::ui::RulesEditorDialog::mode |
( |
| ) |
const |
|
inlinenoexcept |
◆ openForRule()
| void openswmmvis::ui::RulesEditorDialog::openForRule |
( |
const QString & |
name | ) |
|
Bring the dialog forward and select name in the list (no-op if absent).
◆ pendingName()
| QString openswmmvis::ui::RulesEditorDialog::pendingName |
( |
| ) |
const |
◆ pickControlRule()
| QString openswmmvis::ui::RulesEditorDialog::pickControlRule |
( |
SWMMModelLayer * |
layer, |
|
|
QUndoStack * |
undoStack, |
|
|
const QString & |
initialName, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
static |
Modal pick / create / edit entry point — mirrors TimeseriesEditorDialog::pickTimeseries. Empty initialName → CreateNew mode; otherwise → Edit mode pre-selecting that rule. Returns the name of the rule currently bound to the dialog on close, or empty if no commit happened. All edits flow through applyControlRule* so the engine state matches on close regardless of which button closes the dialog.
◆ renameCurrent()
| bool openswmmvis::ui::RulesEditorDialog::renameCurrent |
( |
const QString & |
newName | ) |
|
◆ submitCreateNew()
| void openswmmvis::ui::RulesEditorDialog::submitCreateNew |
( |
| ) |
|
The documentation for this class was generated from the following files: