#include <dlg_load_deck_from_clipboard.h>
Base class for dialog windows for actions that involve loading decks from text input.
◆ AbstractDlgDeckTextEdit()
| AbstractDlgDeckTextEdit::AbstractDlgDeckTextEdit |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Creates the main layout and connects the signals that are common to all versions of this window
◆ actOK
| virtual void AbstractDlgDeckTextEdit::actOK |
( |
| ) |
|
|
protectedpure virtualslot |
◆ actRefresh
| virtual void AbstractDlgDeckTextEdit::actRefresh |
( |
| ) |
|
|
protectedpure virtualslot |
◆ getDeckList()
| virtual DeckLoader * AbstractDlgDeckTextEdit::getDeckList |
( |
| ) |
const |
|
nodiscardpure virtual |
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
Implemented in DlgEditDeckInClipboard, and DlgLoadDeckFromClipboard.
◆ keyPressEvent()
| void AbstractDlgDeckTextEdit::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ loadIntoDeck()
| bool AbstractDlgDeckTextEdit::loadIntoDeck |
( |
DeckLoader * | deckLoader | ) |
const |
|
protected |
Tries to load the current contents of the contentsEdit into the DeckLoader
- Parameters
-
| deckLoader | The DeckLoader to load the deck into |
- Returns
- Whether the loading was successful
◆ refreshShortcuts
| void AbstractDlgDeckTextEdit::refreshShortcuts |
( |
| ) |
|
|
privateslot |
◆ setText()
| void AbstractDlgDeckTextEdit::setText |
( |
const QString & | text | ) |
|
|
protected |
Replaces the contents of the contentsEdit with the given text.
- Parameters
-
◆ contentsEdit
| QPlainTextEdit* AbstractDlgDeckTextEdit::contentsEdit |
|
private |
◆ loadSetNameAndNumberCheckBox
| QCheckBox* AbstractDlgDeckTextEdit::loadSetNameAndNumberCheckBox |
|
private |
◆ refreshButton
| QPushButton* AbstractDlgDeckTextEdit::refreshButton |
|
private |
The documentation for this class was generated from the following files: