13 #ifndef __SCOREDIFF_H__ 14 #define __SCOREDIFF_H__ 61 QString
toString(
bool prefixLines =
false)
const {
return toString(type, prefixLines); }
76 virtual ItemType itemType()
const = 0;
77 virtual bool sameItem(
const BaseDiff&)
const;
78 virtual Fraction afrac(
int score)
const;
79 virtual QString
toString()
const = 0;
101 bool sameItem(
const BaseDiff&)
const override;
102 Fraction afrac(
int score)
const override;
114 bool sameItem(
const BaseDiff&)
const override;
127 bool sameItem(
const BaseDiff&)
const override;
146 void processMarkupDiffs();
147 void mergeInsertDeleteDiffs();
148 void mergeElementDiffs();
149 void editPropertyDiffs();
159 std::vector<BaseDiff*>&
diffs() {
return _diffs; }
160 const std::vector<TextDiff>&
textDiffs()
const {
return _textDiffs; }
167 QString rawDiff(
bool skipEqual =
true)
const;
168 QString userDiff()
const;
Score * _s1
Definition: scorediff.h:139
Definition: scorediff.h:135
std::vector< const TextDiff * > _mergedTextDiffs
Definition: scorediff.h:137
Pid
Definition: property.h:62
Definition: scorediff.h:53
DiffType
Definition: scorediff.h:40
bool _textDiffOnly
Definition: scorediff.h:144
std::vector< BaseDiff * > _diffs
Definition: scorediff.h:138
Definition: scorediff.h:88
Definition of Score class.
const Score * score2() const
Definition: scorediff.h:163
const std::vector< TextDiff > & textDiffs() const
Definition: scorediff.h:160
ItemType itemType() const override
Definition: scorediff.h:113
Definition: scoreElement.h:173
bool updated() const
Definition: scorediff.h:157
const TextDiff * textDiff
Definition: scorediff.h:70
const char * toString(Direction val)
Definition: mscore.cpp:176
ItemType itemType() const override
Definition: scorediff.h:89
std::vector< TextDiff > _textDiffs
Definition: scorediff.h:136
Definition: scorediff.h:122
QString toString(bool prefixLines=false) const
Definition: scorediff.h:61
ItemType
Definition: scorediff.h:29
const Score * score1() const
Definition: scorediff.h:162
Definition: scorediff.h:68
QString name
Definition: scorediff.h:123
Definition: aeolus.cpp:26
Score * _s2
Definition: scorediff.h:140
Definition: scorediff.h:97
Definition: scorediff.h:110
DiffType type
Definition: scorediff.h:54
ItemType itemType() const override
Definition: scorediff.h:126
ScoreContentState state() const
Definition: score.cpp:819
ScoreContentState _scoreState2
Definition: scorediff.h:142
ItemType itemType() const override
Definition: scorediff.h:100
Definition: fraction.h:46
std::vector< BaseDiff * > & diffs()
Definition: scorediff.h:159
ScoreContentState _scoreState1
Definition: scorediff.h:141
Pid pid
Definition: scorediff.h:111
DiffType type
Definition: scorediff.h:69
QVariant info
Definition: scorediff.h:124