mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-07 00:10:00 +01:00
Implemented selection of multiple sources
This commit is contained in:
@@ -14,6 +14,16 @@ void Selection::add(Source *s)
|
||||
s->setMode(Source::ACTIVE);
|
||||
}
|
||||
|
||||
void Selection::set(SourceList l)
|
||||
{
|
||||
clear();
|
||||
|
||||
for(auto it = l.begin(); it != l.end(); it++)
|
||||
(*it)->setMode(Source::ACTIVE);
|
||||
|
||||
selection_ = l;
|
||||
}
|
||||
|
||||
void Selection::add(SourceList l)
|
||||
{
|
||||
for(auto it = l.begin(); it != l.end(); it++)
|
||||
@@ -65,3 +75,13 @@ bool Selection::contains (Source *s)
|
||||
{
|
||||
return (find(s) != selection_.end());
|
||||
}
|
||||
|
||||
SourceList::iterator Selection::begin()
|
||||
{
|
||||
return selection_.begin();
|
||||
}
|
||||
|
||||
SourceList::iterator Selection::end()
|
||||
{
|
||||
return selection_.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user