First implementation of Sticky Notes

This commit is contained in:
brunoherbelin
2021-04-11 15:13:46 +02:00
parent eee9f49c05
commit ab41a0c5d8
9 changed files with 910 additions and 762 deletions

View File

@@ -11,6 +11,11 @@
#include "Log.h"
SessionNote::SessionNote(const std::string &t, bool l, int s): label(std::to_string(GlmToolkit::uniqueId())),
text(t), large(l), stick(s), pos(glm::vec2(520.f, 30.f)), size(glm::vec2(220.f, 220.f))
{
}
Session::Session() : failedSource_(nullptr), active_(true), fading_target_(0.f), filename_("")
{
config_[View::RENDERING] = new Group;
@@ -379,6 +384,30 @@ void Session::unlink (SourceList sources)
}
}
void Session::addNote(SessionNote note)
{
notes_.push_back( note );
}
std::list<SessionNote>::iterator Session::beginNotes ()
{
return notes_.begin();
}
std::list<SessionNote>::iterator Session::endNotes ()
{
return notes_.end();
}
std::list<SessionNote>::iterator Session::deleteNote (std::list<SessionNote>::iterator n)
{
if (n != notes_.end())
return notes_.erase(n);
return notes_.end();
}
std::list<SourceList> Session::getMixingGroups () const
{
std::list<SourceList> lmg;