mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Generated packs can now be selected for printing.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1107 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -43,6 +43,18 @@ bool SelectCardList::isSelected(const CardP& card) const {
|
||||
return selected.find(card) != selected.end();
|
||||
}
|
||||
|
||||
void SelectCardList::getSelection(vector<CardP>& out) const {
|
||||
FOR_EACH_CONST(card, set->cards) {
|
||||
if (isSelected(card)) out.push_back(card);
|
||||
}
|
||||
}
|
||||
|
||||
void SelectCardList::setSelection(const vector<CardP>& cards) {
|
||||
selected.clear();
|
||||
copy(cards.begin(), cards.end(), inserter(selected, selected.begin()));
|
||||
}
|
||||
|
||||
|
||||
void SelectCardList::onChangeSet() {
|
||||
CardListBase::onChangeSet();
|
||||
// init selected list: select all
|
||||
|
||||
Reference in New Issue
Block a user