|
ORE Studio 0.0.4
|
Base class for all detail dialogs. More...
#include <DetailDialogBase.hpp>


Signals | |
| void | closeRequested () |
| Emitted when the dialog wants to close its container window. | |
| void | statusMessage (const QString &message) |
| Emitted to show a status message in the status bar. | |
| void | errorMessage (const QString &message) |
| Emitted when an error occurs that should be shown to the user. | |
Protected Member Functions | |
| void | requestClose () |
| Request closure of the container window. | |
| void | notifySaveSuccess (const QString &message) |
| Notify that a save operation completed successfully. | |
Base class for all detail dialogs.
Provides common functionality for detail dialogs including:
This allows dialogs to request closure without knowing about their container (e.g., DetachableMdiSubWindow). The controller wires the closeRequested signal to the container's close slot.
After a successful save operation, dialogs should:
Example:
|
signal |
Emitted when the dialog wants to close its container window.
Controllers should connect this signal to the container window's close() slot to enable decoupled window management.

|
signal |
Emitted to show a status message in the status bar.
Controllers should connect this signal to the main window's status bar.

|
protected |
Request closure of the container window.
Call this instead of parentWidget()->close() to maintain decoupling between the dialog and its container.

|
protected |
Notify that a save operation completed successfully.
This method handles the common post-save behavior:
Call this after emitting any entity-specific "saved" signal.
| message | Status message to display (e.g., "Currency 'USD' saved") |