mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add action to Edit Deck via Clipboard (#5681)
* implement functionality in dlg * add action to deck editor * refactor and comments * is this refactor even a good idea? * remove the friend class stuff * reorder * add option for not annotated
This commit is contained in:
parent
8fc1b22889
commit
2f415dcc6e
7 changed files with 237 additions and 54 deletions
|
|
@ -394,6 +394,28 @@ void AbstractTabDeckEditor::actLoadDeckFromClipboard()
|
|||
deckMenu->setSaveStatus(true);
|
||||
}
|
||||
|
||||
void AbstractTabDeckEditor::editDeckInClipboard(bool annotated)
|
||||
{
|
||||
DlgEditDeckInClipboard dlg(*getDeckList(), annotated, this);
|
||||
if (!dlg.exec())
|
||||
return;
|
||||
|
||||
setDeck(dlg.getDeckList());
|
||||
setModified(true);
|
||||
|
||||
deckMenu->setSaveStatus(true);
|
||||
}
|
||||
|
||||
void AbstractTabDeckEditor::actEditDeckInClipboard()
|
||||
{
|
||||
editDeckInClipboard(true);
|
||||
}
|
||||
|
||||
void AbstractTabDeckEditor::actEditDeckInClipboardRaw()
|
||||
{
|
||||
editDeckInClipboard(false);
|
||||
}
|
||||
|
||||
void AbstractTabDeckEditor::actSaveDeckToClipboard()
|
||||
{
|
||||
getDeckList()->saveToClipboard(true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue