undoStudio
The IDE of the undoRT ecosystem
Loading...
Searching...
No Matches
undoApp::OpenOutcome Struct Reference

What opening a file did, so the caller knows what to put back. More...

#include <undoAppOpenDocuments.hpp>

Collaboration diagram for undoApp::OpenOutcome:
Collaboration graph

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.
 

Detailed Description

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.

Member Data Documentation

◆ alreadyOpen

bool undoApp::OpenOutcome::alreadyOpen = false

The file was already open and was focused.

◆ droppedPath

std::string undoApp::OpenOutcome::droppedPath

The file that went away, empty if none did.

◆ droppedPreview

bool undoApp::OpenOutcome::droppedPreview = false

The preview slot's previous occupant went away.


The documentation for this struct was generated from the following file: