#include <dlg_load_deck_from_clipboard.h>
Public Member Functions | |
| AbstractDlgDeckTextEdit (QWidget *parent=nullptr) | |
| virtual const DeckList & | getDeckList ()=0 |
Protected Slots | |
| virtual void | actOK ()=0 |
| virtual void | actRefresh ()=0 |
Protected Member Functions | |
| void | setText (const QString &text) |
| bool | loadIntoDeck (DeckList &deckList) const |
| void | keyPressEvent (QKeyEvent *event) override |
Private Slots | |
| void | refreshShortcuts () |
Private Attributes | |
| QPlainTextEdit * | contentsEdit |
| QPushButton * | refreshButton |
| QCheckBox * | loadSetNameAndNumberCheckBox |
Base class for dialog windows for actions that involve loading decks from text input.
|
explicit |
Creates the main layout and connects the signals that are common to all versions of this window
|
protectedpure virtualslot |
|
protectedpure virtualslot |
|
nodiscardpure virtual |
Gets the loaded deck. Only call this method after this dialog window has been successfully exec'd.
Implemented in DlgEditDeckInClipboard, and DlgLoadDeckFromClipboard.
|
overrideprotected |
|
protected |
Tries to load the current contents of the contentsEdit into the deckList
| deckList | The deckList to load the deck into |
|
privateslot |
|
protected |
Replaces the contents of the contentsEdit with the given text.
| text | The text |
|
private |
|
private |
|
private |