![]() |
undoStudio
The IDE of the undoRT ecosystem
|
What opening a file did, so the caller knows what to put back. More...
#include <undoAppOpenDocuments.hpp>

Public Attributes | |
| bool | alreadyOpen = false |
| The file was already open and was focused. | |
| bool | droppedPreview = false |
| The preview slot's previous occupant went away. | |
| std::string | droppedPath |
| The file that went away, empty if none did. | |
What opening a file did, so the caller knows what to put back.
The caller owns the editors, so it has to know whether it is switching away from something and whether anything just disappeared. Deciding that here and only reporting it keeps the decision in one place: a second place that guessed would eventually disagree with this one about which tab vanished.
| bool undoApp::OpenOutcome::alreadyOpen = false |
The file was already open and was focused.
| std::string undoApp::OpenOutcome::droppedPath |
The file that went away, empty if none did.
| bool undoApp::OpenOutcome::droppedPreview = false |
The preview slot's previous occupant went away.