Trait PresentsHistoryEntries
pub trait PresentsHistoryEntries {
// Required method
fn history_entry_presenter(&self) -> Option<Rc<dyn HistoryEntryPresenter>>;
// Provided method
fn open_history_entry(&mut self, entry: &HistoryEntry) -> bool { ... }
}Expand description
A live widget that presents its document’s changes in the shared History
view: the app says how each of its changes shows
(crate::widget::HistoryEntryPresenter) and takes up the ones a person
chooses to open. History stays the one service; this is only the app’s
word on what its changes look like.
Required Methods§
fn history_entry_presenter(&self) -> Option<Rc<dyn HistoryEntryPresenter>>
fn history_entry_presenter(&self) -> Option<Rc<dyn HistoryEntryPresenter>>
How this app’s changes show in History.
Provided Methods§
fn open_history_entry(&mut self, entry: &HistoryEntry) -> bool
fn open_history_entry(&mut self, entry: &HistoryEntry) -> bool
A person chose entry in History and its face opens it
(crate::widget::EntryFace::opens): History has closed, the app is
live again, and takes the change up (a calculation goes back into the
calculator). Returns whether it did.