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:
twanvl
2008-08-08 21:35:38 +00:00
parent 5cde673976
commit 2d2c434bd8
18 changed files with 322 additions and 64 deletions
+8
View File
@@ -39,6 +39,8 @@ class RandomCardList : public CardListBase {
using CardListBase::rebuild;
const vector<CardP>* getCardsPtr() const { return &cards; }
protected:
virtual void getItems(vector<VoidP>& out) const;
virtual void onChangeSet();
@@ -328,6 +330,12 @@ void RandomPackPanel::selectCard(const CardP& card) {
preview->setCard(card);
}
void RandomPackPanel::selectionChoices(ExportCardSelectionChoices& out) {
out.push_back(new_intrusive2<ExportCardSelectionChoice>(
_BUTTON_("export generated packs"),
card_list->getCardsPtr()
));
}
// ----------------------------------------------------------------------------- : Clipboard