mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Allow selected card from random pack to be exported
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1076 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -316,10 +316,15 @@ void RandomPackPanel::generate() {
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Selection
|
// ----------------------------------------------------------------------------- : Selection
|
||||||
|
|
||||||
|
CardP RandomPackPanel::selectedCard() const {
|
||||||
|
return card_list->getCard();
|
||||||
|
}
|
||||||
|
|
||||||
void RandomPackPanel::selectCard(const CardP& card) {
|
void RandomPackPanel::selectCard(const CardP& card) {
|
||||||
preview->setCard(card);
|
preview->setCard(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Clipboard
|
// ----------------------------------------------------------------------------- : Clipboard
|
||||||
|
|
||||||
bool RandomPackPanel::canCopy() const { return card_list->canCopy(); }
|
bool RandomPackPanel::canCopy() const { return card_list->canCopy(); }
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class RandomPackPanel : public SetWindowPanel {
|
|||||||
virtual void onCommand(int id);
|
virtual void onCommand(int id);
|
||||||
|
|
||||||
// --------------------------------------------------- : Selection
|
// --------------------------------------------------- : Selection
|
||||||
|
virtual CardP selectedCard() const;
|
||||||
virtual void selectCard(const CardP& card);
|
virtual void selectCard(const CardP& card);
|
||||||
|
|
||||||
// --------------------------------------------------- : Clipboard
|
// --------------------------------------------------- : Clipboard
|
||||||
|
|||||||
Reference in New Issue
Block a user