![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Main application window for SWMMVis. More...
#include <swmmvis.h>
Public Slots | |
| void | onLogMessage (const QString &message, OpenSWMMVisLogMessage::LogMessageType messageType=OpenSWMMVisLogMessage::LogMessageType::Information) |
| Appends a log entry to the Message Log dock panel. | |
Public Member Functions | |
| SWMMVis (QWidget *parent=nullptr) | |
| Constructs the main window, initialises toolbars, docks, and menus, and restores the previous session geometry from QSettings. | |
| virtual | ~SWMMVis () |
| Destructor. Saves window geometry and dock layout to QSettings. | |
| bool | saveProjectWindowAs (SWMMVisProjectWindow *pw) |
The Save As flow (path dialog, filter memory, normalization, write) for pw. Returns false when the user cancels or the save fails. Public so SWMMVisProjectWindow's untitled close prompt can offer a real Save As and keep the window open on cancel. | |
| void | logPortabilityPreflight (SWMMVisProjectWindow *pw, const QString &targetPath, bool isGpkg) |
Run the pre-save portability check for pw against targetPath and log any warnings. | |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| QMenu * | createPopupMenu () override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| QStringList | acceptableDropPaths (const QMimeData *mime) const |
| QMdiSubWindow * | welcomeSubWindow () const |
| void | removeWelcomeSubWindow () |
Main application window for SWMMVis.
Wraps MapCanvas, manages the project workspace/session, map tools, and all top-level UI interactions (menus, toolbars, status bar, docks). Each MDI sub-window contains one SWMMVisProjectWindow whose canvas is rebound to the shared panels on focus change.
|
explicit |
Constructs the main window, initialises toolbars, docks, and menus, and restores the previous session geometry from QSettings.
| parent | Qt parent widget (normally nullptr for a top-level window). |
|
virtual |
Destructor. Saves window geometry and dock layout to QSettings.
|
protected |
Local file paths from a drag payload that we know how to open (currently *.inp and *.oswp), in drop order. Empty when the payload carries nothing droppable.
|
overrideprotected |
|
overrideprotected |
UI redesign P6 — the toolbar-area context menu offers only the dock toggles: the compact-toolbar rows are managed by the tab strip and must not be individually hideable.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
| void SWMMVis::logPortabilityPreflight | ( | SWMMVisProjectWindow * | pw, |
| const QString & | targetPath, | ||
| bool | isGpkg | ||
| ) |
Run the pre-save portability check for pw against targetPath and log any warnings.
Advance preview of the cross-volume / missing-file diagnostics the engine's writer produces, so they land in the log panel next to the save-success line instead of only inside the saved file. Non-blocking. Called from BOTH Save and Save As — it used to run only on Save As, so a plain Save of a model with an unportable reference reported nothing.
| pw | Project window; no-op when it has no live engine. |
| targetPath | Path the save will write to. |
| isGpkg | True for a GeoPackage export, false for .inp. |
|
slot |
Appends a log entry to the Message Log dock panel.
| message | Human-readable message text. |
| messageType | Severity level (default: Information). |
|
protected |
Tear the welcome sub-window and its tab out of the MDI area without destroying the inner widget, so Help → Show Welcome Screen can re-add it later.
| bool SWMMVis::saveProjectWindowAs | ( | SWMMVisProjectWindow * | pw | ) |
The Save As flow (path dialog, filter memory, normalization, write) for pw. Returns false when the user cancels or the save fails. Public so SWMMVisProjectWindow's untitled close prompt can offer a real Save As and keep the window open on cancel.
|
protected |
Return the QMdiSubWindow currently wrapping welcomeWidget, or nullptr if it has been removed (closed).