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

#include <deck_list_history_manager.h>

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

Signals

void undoRedoStateChanged ()

Public Member Functions

 DeckListHistoryManager (QObject *parent=nullptr)
void save (const DeckListMemento &memento)
void clear ()
bool canUndo () const
bool canRedo () const
void undo (DeckList *deck)
void redo (DeckList *deck)
QStack< DeckListMementogetRedoStack () const
QStack< DeckListMementogetUndoStack () const

Private Attributes

QStack< DeckListMementoundoStack
QStack< DeckListMementoredoStack

Constructor & Destructor Documentation

◆ DeckListHistoryManager()

DeckListHistoryManager::DeckListHistoryManager ( QObject * parent = nullptr)
inlineexplicit

Member Function Documentation

◆ canRedo()

bool DeckListHistoryManager::canRedo ( ) const
inlinenodiscard

◆ canUndo()

bool DeckListHistoryManager::canUndo ( ) const
inlinenodiscard

◆ clear()

void DeckListHistoryManager::clear ( )
Here is the call graph for this function:

◆ getRedoStack()

QStack< DeckListMemento > DeckListHistoryManager::getRedoStack ( ) const
inlinenodiscard

◆ getUndoStack()

QStack< DeckListMemento > DeckListHistoryManager::getUndoStack ( ) const
inlinenodiscard

◆ redo()

void DeckListHistoryManager::redo ( DeckList * deck)
Here is the call graph for this function:

◆ save()

void DeckListHistoryManager::save ( const DeckListMemento & memento)
Here is the call graph for this function:

◆ undo()

void DeckListHistoryManager::undo ( DeckList * deck)
Here is the call graph for this function:

◆ undoRedoStateChanged

void DeckListHistoryManager::undoRedoStateChanged ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ redoStack

QStack<DeckListMemento> DeckListHistoryManager::redoStack
private

◆ undoStack

QStack<DeckListMemento> DeckListHistoryManager::undoStack
private

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