Deck export (#2938)

* Added “export deck” option to export deck to decklist.org for viewing/printing. Implemented using a new menu item, added shortcut ability, and functionality to parse the deck correctly and add main/sideboard cards to decklist. Per issue #2931
This commit is contained in:
John Robe 2017-12-05 20:34:19 -07:00 committed by Zach H
parent 4d641eb0e7
commit 6c038a91e4
6 changed files with 126 additions and 5 deletions

View file

@ -80,6 +80,8 @@ public:
SequenceEdit *TabDeckEditor_aIncrement;
QLabel *lbl_TabDeckEditor_aSaveDeck;
SequenceEdit *TabDeckEditor_aSaveDeck;
QLabel *lbl_TabDeckEditor_aExportDeckDecklist;
SequenceEdit *TabDeckEditor_aExportDeckDecklist;
QLabel *lbl_TabDeckEditor_aDecrement;
SequenceEdit *TabDeckEditor_aDecrement;
QLabel *lbl_TabDeckEditor_aSaveDeckAs;
@ -642,6 +644,16 @@ public:
TabDeckEditor_aSaveDeckToClipboard->setObjectName("TabDeckEditor_aSaveDeckToClipboard");
gridLayout->addWidget(TabDeckEditor_aSaveDeckToClipboard, 8, 3, 1, 1);
lbl_TabDeckEditor_aExportDeckDecklist = new QLabel(groupBox_2);
lbl_TabDeckEditor_aExportDeckDecklist->setObjectName("lbl_TabDeckEditor_aExportDeckDecklist");
gridLayout->addWidget(lbl_TabDeckEditor_aExportDeckDecklist, 9, 2, 1, 1);
TabDeckEditor_aExportDeckDecklist = new SequenceEdit("TabDeckEditor/aExportDeckDecklist",groupBox_2);
TabDeckEditor_aExportDeckDecklist->setObjectName("TabDeckEditor_aExportDeckDecklist");
gridLayout->addWidget(TabDeckEditor_aExportDeckDecklist, 9, 3, 1, 1);
gridLayout_3->addWidget(groupBox_2, 0, 1, 1, 1);
@ -1749,6 +1761,7 @@ public:
lbl_TabDeckEditor_aResetLayout->setText(QApplication::translate("shortcutsTab", "Reset layout", 0));
lbl_TabDeckEditor_aIncrement->setText(QApplication::translate("shortcutsTab", "Add card", 0));
lbl_TabDeckEditor_aSaveDeck->setText(QApplication::translate("shortcutsTab", "Save deck", 0));
lbl_TabDeckEditor_aExportDeckDecklist->setText(QApplication::translate("shortcutsTab", "Export deck", 0));
lbl_TabDeckEditor_aDecrement->setText(QApplication::translate("shortcutsTab", "Remove card", 0));
lbl_TabDeckEditor_aSaveDeckAs->setText(QApplication::translate("shortcutsTab", "Save deck as", 0));
lbl_TabDeckEditor_aLoadDeck->setText(QApplication::translate("shortcutsTab", "Load deck", 0));