42#ifndef OPENSWMMVIS_UI_DIALOGS_DIALOGREGISTRY_H
43#define OPENSWMMVIS_UI_DIALOGS_DIALOGREGISTRY_H
99 bool eventFilter(QObject *watched, QEvent *event)
override;
106 static QDialog *trackableDialog(QObject *watched);
108 void trackOrPromote(QDialog *dlg);
109 void forget(QDialog *dlg);
110 void scheduleRestack();
112 QList<QPointer<QDialog>> mOrder;
114 bool mRestackQueued =
false;
Definition dialogregistry.h:58
static DialogRegistry * instance()
The process-wide instance. Created on first use; install it on the QApplication as an event filter to...
Definition dialogregistry.cpp:34
StackingMode stackingMode() const
Definition dialogregistry.h:77
void raiseAllInOrder()
Raise every registered dialog in MRU order, so the most recently used ends up on top....
Definition dialogregistry.cpp:141
QList< QPointer< QDialog > > openDialogs() const
Open modeless top-level dialogs, least-recently-used first.
Definition dialogregistry.cpp:130
static StackingMode configuredStackingMode()
Resolve the configured mode: OPENSWMM_DIALOG_STACKING env var, then the "Window/DialogStacking" setti...
Definition dialogregistry.cpp:40
void setStackingMode(StackingMode mode)
Definition dialogregistry.cpp:65
void openDialogsChanged()
A dialog was registered, removed, or reordered — the Window menu rebuilds from this.
bool eventFilter(QObject *watched, QEvent *event) override
Definition dialogregistry.cpp:167
StackingMode
How modeless dialogs are kept above the application's windows.
Definition dialogregistry.h:63
@ QtRaiseOnActivate
Portable raise() pass driven by activation.
@ NativeChildWindow
macOS AppKit -addChildWindow: (current default)
QuadRegionMode mode
Resolved mode.
Definition meshgenerator.cpp:154
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176