Files
vimix/Selection.h
brunoherbelin c674fa0897 Implementation of Copy, Cut & Paste of sources. Keeps description (xml)
of source in clipboard for pasting in another session or in the same
(then it clones existing sources).
2020-10-11 23:41:24 +02:00

37 lines
629 B
C++

#ifndef SELECTION_H
#define SELECTION_H
#include "Source.h"
class Selection
{
public:
Selection();
void add (Source *s);
void remove (Source *s);
void set (Source *s);
void toggle (Source *s);
void add (SourceList l);
void remove (SourceList l);
void set (SourceList l);
void clear ();
SourceList::iterator begin ();
SourceList::iterator end ();
Source *front();
bool contains (Source *s);
bool empty();
uint size ();
std::string xml();
protected:
SourceList::iterator find (Source *s);
SourceList selection_;
};
#endif // SELECTION_H