mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Draft implementation of Snapshots, with saving and UI
This commit is contained in:
@@ -100,6 +100,10 @@ void SessionCreator::load(const std::string& filename)
|
||||
for (auto group_it = groups.begin(); group_it != groups.end(); group_it++)
|
||||
session_->link( *group_it );
|
||||
|
||||
// load snapshots
|
||||
loadSnapshots( xmlDoc_.FirstChildElement("Snapshots") );
|
||||
|
||||
// load notes
|
||||
loadNotes( xmlDoc_.FirstChildElement("Notes") );
|
||||
|
||||
// all good
|
||||
@@ -119,6 +123,15 @@ void SessionCreator::loadConfig(XMLElement *viewsNode)
|
||||
}
|
||||
}
|
||||
|
||||
void SessionCreator::loadSnapshots(XMLElement *snapshotsNode)
|
||||
{
|
||||
if (snapshotsNode != nullptr && session_ != nullptr) {
|
||||
|
||||
std::string text = std::string ( snapshotsNode->GetText() );
|
||||
session_->setSnapshots( text );
|
||||
}
|
||||
}
|
||||
|
||||
void SessionCreator::loadNotes(XMLElement *notesNode)
|
||||
{
|
||||
if (notesNode != nullptr && session_ != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user