#include <rulevalidator.h>
|
| | RuleValidator (SWMMModelLayer *layer, QObject *parent=nullptr) |
| | Construct over a layer. The validator pulls the engine handle lazily on each validate so a project-switch surfaces the new engine without explicit re-binding.
|
| |
| | ~RuleValidator () override |
| |
| Result | validate (const QString &text) const |
| | Synchronous validation. Returns immediately. Used by tests and the list-model's initial population pass.
|
| |
| void | validateDebounced (ControlRuleProvider *provider, const QString &text) |
| | Debounced validation. Schedules a validate call after debounceMs() of edit quiescence, then emits provider->setValidation(...) on completion. Multiple calls within the debounce window coalesce into one.
|
| |
| int | debounceMs () const noexcept |
| |
| void | setDebounceMs (int ms) noexcept |
| |
◆ RuleValidator()
| openswmmvis::controls::RuleValidator::RuleValidator |
( |
SWMMModelLayer * |
layer, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Construct over a layer. The validator pulls the engine handle lazily on each validate so a project-switch surfaces the new engine without explicit re-binding.
◆ ~RuleValidator()
| openswmmvis::controls::RuleValidator::~RuleValidator |
( |
| ) |
|
|
overridedefault |
◆ debounceMs()
| int openswmmvis::controls::RuleValidator::debounceMs |
( |
| ) |
const |
|
inlinenoexcept |
◆ setDebounceMs()
| void openswmmvis::controls::RuleValidator::setDebounceMs |
( |
int |
ms | ) |
|
|
inlinenoexcept |
◆ validate()
Synchronous validation. Returns immediately. Used by tests and the list-model's initial population pass.
◆ validateDebounced()
| void openswmmvis::controls::RuleValidator::validateDebounced |
( |
ControlRuleProvider * |
provider, |
|
|
const QString & |
text |
|
) |
| |
Debounced validation. Schedules a validate call after debounceMs() of edit quiescence, then emits provider->setValidation(...) on completion. Multiple calls within the debounce window coalesce into one.
The documentation for this class was generated from the following files: