MCPcopy Create free account
hub / github.com/LMMS/lmms / addJournalCheckPoint

Method addJournalCheckPoint

src/core/ProjectJournal.cpp:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void ProjectJournal::addJournalCheckPoint( JournallingObject *jo )
117{
118 if( isJournalling() )
119 {
120 m_redoCheckPoints.clear();
121
122 DataFile dataFile( DataFile::JournalData );
123 jo->saveState( dataFile, dataFile.content() );
124
125 m_undoCheckPoints.push( CheckPoint( jo->id(), dataFile ) );
126 if( m_undoCheckPoints.size() > MAX_UNDO_STATES )
127 {
128 m_undoCheckPoints.remove( 0, m_undoCheckPoints.size() - MAX_UNDO_STATES );
129 }
130 }
131}
132
133
134

Callers 15

removeMethod · 0.45
mousePressEventMethod · 0.45
pasteSelectionMethod · 0.45
clearTrackMethod · 0.45
mousePressEventMethod · 0.45
mousePressEventMethod · 0.45
mousePressEventMethod · 0.45
mousePressEventMethod · 0.45
mousePressEventMethod · 0.45
setProgressionTypeMethod · 0.45
cutSelectedValuesMethod · 0.45
pasteValuesMethod · 0.45

Calls 7

isJournallingFunction · 0.85
CheckPointClass · 0.85
clearMethod · 0.45
saveStateMethod · 0.45
pushMethod · 0.45
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected