34 const std::function<
void()>& requestSave);
45 const QString& saveOperation,
46 const std::function<
void()>& closeWindow);
55 const QString& saveOperation);
58 bool pendingCloseAfterSave_ =
false;
59 bool allowImmediateClose_ =
false;
Coordinates close requests that may need a pending workspace save.
void requestClose(QCloseEvent *event, const std::function< void()> &requestSave)
Defers closing and invokes the supplied save request.
bool allowImmediateClose(QCloseEvent *event)
Accepts a close event when a deferred close is already authorized.
bool handleStorageOperationSucceeded(const QString &operation, const QString &saveOperation, const std::function< void()> &closeWindow)
Completes a deferred close after the matching save succeeded.
bool handleStorageOperationFailed(const QString &operation, const QString &saveOperation)
Cancels a deferred close after the matching save failed.