FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Private Attributes | List of all members
FdJournalRemove Class Reference

Undo/Redo action for removing entries. More...

#include <FdCommandsJournal.hpp>

Collaboration diagram for FdJournalRemove:
Collaboration graph
[legend]

Public Member Functions

 FdJournalRemove (FdModelJournal *journal, QList< FdItemJournal_p > entries)
void redo ()
void undo ()

Private Attributes

FdModelJournalmJournal
QList< FdItemJournal_p > mEntries

Detailed Description

Undo/Redo action for removing entries.

This QUndoCommand make it possible to undo/redo suppression of rows.

The constructor will get a QList of pointers to the corresponding FdItemJournal. Index of entries is neither absolute nor user defined. For example, FdModelJournal::orderByDate() can't be undone and changes entries order. Hence the need of storing FdItemJournal_p instead of indexes.

By calling redo(), deleted entries will be append at the end of the journal.

Definition at line 54 of file FdCommandsJournal.hpp.

Constructor & Destructor Documentation

FdJournalRemove::FdJournalRemove ( FdModelJournal journal,
QList< FdItemJournal_p >  entries 
)

Definition at line 63 of file FdCommandsJournal.cpp.

Member Function Documentation

void FdJournalRemove::redo ( )

Definition at line 68 of file FdCommandsJournal.cpp.

void FdJournalRemove::undo ( )

Definition at line 73 of file FdCommandsJournal.cpp.

Member Data Documentation

QList<FdItemJournal_p> FdJournalRemove::mEntries
private

Definition at line 62 of file FdCommandsJournal.hpp.

FdModelJournal* FdJournalRemove::mJournal
private

Definition at line 61 of file FdCommandsJournal.hpp.


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