Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgEditDeckInClipboard Class Reference

#include <dlg_load_deck_from_clipboard.h>

Inheritance diagram for DlgEditDeckInClipboard:
[legend]
Collaboration diagram for DlgEditDeckInClipboard:
[legend]

Public Member Functions

 DlgEditDeckInClipboard (DeckLoader *_deckLoader, bool _annotated, QWidget *parent=nullptr)
DeckLoader * getDeckList () const override
Public Member Functions inherited from AbstractDlgDeckTextEdit
 AbstractDlgDeckTextEdit (QWidget *parent=nullptr)

Protected Slots

void actOK () override
void actRefresh () override
Protected Slots inherited from AbstractDlgDeckTextEdit
virtual void actOK ()=0
virtual void actRefresh ()=0

Private Attributes

DeckLoader * deckLoader
bool annotated

Additional Inherited Members

Protected Member Functions inherited from AbstractDlgDeckTextEdit
void setText (const QString &text)
bool loadIntoDeck (DeckLoader *deckLoader) const
void keyPressEvent (QKeyEvent *event) override

Detailed Description

Dialog window for the "Edit deck in clipboard" action

Constructor & Destructor Documentation

◆ DlgEditDeckInClipboard()

DlgEditDeckInClipboard::DlgEditDeckInClipboard ( DeckLoader * _deckLoader,
bool _annotated,
QWidget * parent = nullptr )
explicit

Creates the dialog window for the "Edit deck in clipboard" action

Parameters
_deckLoaderThe existing deck in the deck editor. Copies the instance
_annotatedWhether to add annotations to the text that is loaded from the deck
parentThe parent widget
Here is the call graph for this function:

Member Function Documentation

◆ actOK

void DlgEditDeckInClipboard::actOK ( )
overrideprotectedslot
Here is the call graph for this function:

◆ actRefresh

void DlgEditDeckInClipboard::actRefresh ( )
overrideprotectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDeckList()

DeckLoader * DlgEditDeckInClipboard::getDeckList ( ) const
inlinenodiscardoverridevirtual

Gets the loaded deck. Only call this method after this dialog window has been successfully exec'd.

The returned DeckLoader is parented to this object; make sure to take ownership of the DeckLoader if you intend to use it, since otherwise it will get destroyed once this dlg is destroyed

Returns
The DeckLoader

Implements AbstractDlgDeckTextEdit.

Here is the caller graph for this function:

Member Data Documentation

◆ annotated

bool DlgEditDeckInClipboard::annotated
private

◆ deckLoader

DeckLoader* DlgEditDeckInClipboard::deckLoader
private

The documentation for this class was generated from the following files: