31#ifndef OPENSWMMVIS_UI_DIALOGS_DIALOGLAYOUTPERSISTENCE_H
32#define OPENSWMMVIS_UI_DIALOGS_DIALOGLAYOUTPERSISTENCE_H
36#include <QtCore/qnamespace.h>
121 return Qt::Tool | Qt::WindowStaysOnTopHint;
132 return Qt::WindowFlags();
134 return Qt::WindowStaysOnTopHint;
Definition openswmmvislayer.h:43
void saveDialogLayout(QWidget *root)
Persist the dialog's geometry + every named QSplitter under it.
Definition dialoglayoutpersistence.cpp:165
Qt::WindowFlags floatingPanelFlags()
Window flags for a modeless "floating panel" dialog that must stay above the application's OWN window...
Definition dialoglayoutpersistence.h:116
Qt::WindowFlags stayAboveAppFlags()
Just the "keep above the app's other windows" hint, for full top-level (Qt::Window) dialogs that shou...
Definition dialoglayoutpersistence.h:129
void ensureWindowOnScreen(QWidget *widget, const QScreen *preferred=nullptr)
Move/resize widget's window so it is reachable on a connected screen, using the live frame geometry t...
Definition dialoglayoutpersistence.cpp:134
void applyAlwaysOnTopPolicy(QDialog *d)
Step H — pin the dialog above the main window so a map click doesn't hide it. Idempotent....
Definition dialoglayoutpersistence.cpp:321
QRect clampToVisibleScreen(const QRect &saved, int titleBarStrip=-1)
Clamp a saved top-level geometry into currently-available screen space, so a window can never be rest...
Definition dialoglayoutpersistence.cpp:73
bool restoreDialogLayout(QWidget *root)
Inverse of saveDialogLayout — restore geometry + splitter states.
Definition dialoglayoutpersistence.cpp:227