VPTissue Reference Manual
|
Dialog window that displays a tree of objects containing unsaved changes. More...
#include <SaveChangesDialog.h>
Static Public Member Functions | |
static bool | Prompt (HasUnsavedChanges *widget, QWidget *parent=nullptr) |
Create and display a dialog from a HasUnsavedChanges interface. More... | |
Dialog window that displays a tree of objects containing unsaved changes.
For each object, a checkbox exists such that the user can select which objects to save and which to discard.
Typically you want to show this dialog when closing an object.
Definition at line 45 of file SaveChangesDialog.h.
|
static |
Create and display a dialog from a HasUnsavedChanges interface.
If user clicks "Save", all checked items will be saved. Unless user clicks "Cancel", all HasUnsavedChanges interfaces will be force-closed.
parent | Dialog parent widget. |
prompt_map | A map containing PromptOnClose interfaces, indexed by some title. If empty, "true" will be returned immediately (no dialog will be shown). |
Definition at line 76 of file SaveChangesDialog.cpp.
References SimShell::Gui::HasUnsavedChanges::begin(), SimShell::Gui::HasUnsavedChanges::ForceClose(), and SimShell::Gui::CheckableTreeModel::ToPTree().
Referenced by SimShell::Gui::HasUnsavedChangesPrompt::PromptClose().