Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 57609a75 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI: Implement the save and save+quit for the ScriptDocument

parent e1a61d80
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!18Implement the VivyDocument specification
......@@ -55,9 +55,11 @@ ScriptDocumentView::setUseFakeVimEditor(bool yes) noexcept
connect(proxy, &EditorProxy::requestQuit, this, [this, mw]() noexcept -> void {
mw->closeDocument(static_cast<AbstractDocumentView *>(this));
});
TODO(Implement the save and save + quit things)
// connect(proxy, &EditorProxy::requestSave, document, &AbstractDocument::save); // TODO
// connect(proxy, &EditorProxy::requestSaveAndQuit, document, &AbstractDocument::save + &MainWindow::closeTab); // TODO
connect(proxy, &EditorProxy::requestSave, this, [this]() { document->save(); });
connect(proxy, &EditorProxy::requestSaveAndQuit, this, [this, mw]() noexcept -> void {
document->save();
mw->closeDocument(static_cast<AbstractDocumentView *>(this));
});
initHandler(handler);
clearUndoRedo(editor);
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter