Commit c4a752a3 authored by twanvl's avatar twanvl

Allow selected card from random pack to be exported

parent e5001c55
......@@ -316,10 +316,15 @@ void RandomPackPanel::generate() {
// ----------------------------------------------------------------------------- : Selection
CardP RandomPackPanel::selectedCard() const {
return card_list->getCard();
}
void RandomPackPanel::selectCard(const CardP& card) {
preview->setCard(card);
}
// ----------------------------------------------------------------------------- : Clipboard
bool RandomPackPanel::canCopy() const { return card_list->canCopy(); }
......
......@@ -36,6 +36,7 @@ class RandomPackPanel : public SetWindowPanel {
virtual void onCommand(int id);
// --------------------------------------------------- : Selection
virtual CardP selectedCard() const;
virtual void selectCard(const CardP& card);
// --------------------------------------------------- : Clipboard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment