Krita Source Code Documentation
Loading...
Searching...
No Matches
KisCumulativeUndoData Struct Reference

#include <KisCumulativeUndoData.h>

+ Inheritance diagram for KisCumulativeUndoData:

Public Member Functions

bool read (const KConfigGroup *config)
 
void write (KConfigGroup *config) const
 

Public Attributes

int excludeFromMerge {10}
 
int maxGroupDuration {5000}
 
int maxGroupSeparation {1000}
 
int mergeTimeout {5000}
 

Static Public Attributes

static const KisCumulativeUndoData defaultValue
 

Friends

bool operator== (const KisCumulativeUndoData &lhs, const KisCumulativeUndoData &rhs)
 

Detailed Description

Definition at line 15 of file KisCumulativeUndoData.h.

Member Function Documentation

◆ read()

bool KisCumulativeUndoData::read ( const KConfigGroup * config)

Definition at line 13 of file KisCumulativeUndoData.cpp.

14{
15 excludeFromMerge = config->readEntry("cumulativeUndoExcludeFromMerge",
17 mergeTimeout = config->readEntry("cumulativeUndoMergeTimeout",
19 maxGroupSeparation = config->readEntry("cumulativeUndoMaxGroupSeparation",
21 maxGroupDuration = config->readEntry("cumulativeUndoMaxGroupDuration",
23
24 return true;
25}
static const KisCumulativeUndoData defaultValue

References defaultValue, excludeFromMerge, maxGroupDuration, maxGroupSeparation, and mergeTimeout.

◆ write()

void KisCumulativeUndoData::write ( KConfigGroup * config) const

Definition at line 27 of file KisCumulativeUndoData.cpp.

28{
29 config->writeEntry("cumulativeUndoExcludeFromMerge", excludeFromMerge);
30 config->writeEntry("cumulativeUndoMergeTimeout", mergeTimeout);
31 config->writeEntry("cumulativeUndoMaxGroupSeparation", maxGroupSeparation);
32 config->writeEntry("cumulativeUndoMaxGroupDuration", maxGroupDuration);
33}

References excludeFromMerge, maxGroupDuration, maxGroupSeparation, and mergeTimeout.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const KisCumulativeUndoData & lhs,
const KisCumulativeUndoData & rhs )
friend

Definition at line 17 of file KisCumulativeUndoData.h.

17 {
18 return lhs.excludeFromMerge == rhs.excludeFromMerge &&
19 lhs.mergeTimeout == rhs.mergeTimeout &&
22 }

Member Data Documentation

◆ defaultValue

const KisCumulativeUndoData KisCumulativeUndoData::defaultValue
static

Definition at line 32 of file KisCumulativeUndoData.h.

◆ excludeFromMerge

int KisCumulativeUndoData::excludeFromMerge {10}

Definition at line 24 of file KisCumulativeUndoData.h.

24{10};

◆ maxGroupDuration

int KisCumulativeUndoData::maxGroupDuration {5000}

Definition at line 27 of file KisCumulativeUndoData.h.

27{5000};

◆ maxGroupSeparation

int KisCumulativeUndoData::maxGroupSeparation {1000}

Definition at line 26 of file KisCumulativeUndoData.h.

26{1000};

◆ mergeTimeout

int KisCumulativeUndoData::mergeTimeout {5000}

Definition at line 25 of file KisCumulativeUndoData.h.

25{5000};

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