|
lmms
Cross-platform music production software
|
#include <ProjectJournal.h>
Classes | |
| struct | CheckPoint |
Public Member Functions | |
| ProjectJournal () | |
| virtual | ~ProjectJournal ()=default |
| void | undo () |
| void | redo () |
| bool | canUndo () const |
| bool | canRedo () const |
| void | addJournalCheckPoint (JournallingObject *jo) |
| bool | isJournalling () const |
| void | setJournalling (const bool _on) |
| jo_id_t | allocID (JournallingObject *_obj) |
| void | reallocID (const jo_id_t _id, JournallingObject *_obj) |
| void | freeID (const jo_id_t _id) |
| void | clearJournal () |
| void | stopAllJournalling () |
| JournallingObject * | journallingObject (const jo_id_t _id) |
Static Public Member Functions | |
| static jo_id_t | idToSave (jo_id_t id) |
| hack, not used when saving a file | |
| static jo_id_t | idFromSave (jo_id_t id) |
| hack, not used when loading a savefile | |
Static Public Attributes | |
| static const int | MAX_UNDO_STATES = 100 |
Private Types | |
| using | JoIdMap = QHash<jo_id_t, JournallingObject*> |
| using | CheckPointStack = QStack<CheckPoint> |
Private Attributes | |
| JoIdMap | m_joIDs |
| CheckPointStack | m_undoCheckPoints |
| CheckPointStack | m_redoCheckPoints |
| bool | m_journalling |
|
private |
|
private |
| lmms::ProjectJournal::ProjectJournal | ( | ) |
|
virtualdefault |
| void lmms::ProjectJournal::addJournalCheckPoint | ( | JournallingObject * | jo | ) |
| jo_id_t lmms::ProjectJournal::allocID | ( | JournallingObject * | _obj | ) |
| bool lmms::ProjectJournal::canRedo | ( | ) | const |
| bool lmms::ProjectJournal::canUndo | ( | ) | const |
| void lmms::ProjectJournal::clearJournal | ( | ) |
|
inline |
hack, not used when loading a savefile
|
inline |
|
inline |
| void lmms::ProjectJournal::reallocID | ( | const jo_id_t | _id, |
| JournallingObject * | _obj ) |
| void lmms::ProjectJournal::redo | ( | ) |
|
inline |
| void lmms::ProjectJournal::stopAllJournalling | ( | ) |
| void lmms::ProjectJournal::undo | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
static |