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

#include <dlg_load_deck_from_clipboard.h>

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

Public Member Functions

 DlgLoadDeckFromClipboard (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 * deckList

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 "Load deck from clipboard" action

Constructor & Destructor Documentation

◆ DlgLoadDeckFromClipboard()

DlgLoadDeckFromClipboard::DlgLoadDeckFromClipboard ( QWidget * parent = nullptr)
explicit

Creates the dialog window for the "Load deck from clipboard" action

Parameters
parentThe parent widget
Here is the call graph for this function:

Member Function Documentation

◆ actOK

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

◆ actRefresh

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

◆ getDeckList()

DeckLoader * DlgLoadDeckFromClipboard::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

◆ deckList

DeckLoader* DlgLoadDeckFromClipboard::deckList
private

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