void Skein::Node::NewTranscriptText(const CStringW& transcript) { if (!m_textTranscript.IsEmpty()) m_changed = !(m_textTranscript == transcript); m_textTranscript = transcript; m_textTranscript.Replace('\r','\n'); CompareWithExpected(); }
bool Skein::Node::SetExpectedText(LPCWSTR text) { CStringW oldExpected = m_textExpected; m_textExpected = text; m_textExpected.Replace('\r','\n'); CompareWithExpected(); return (oldExpected != m_textExpected); }
Skein::Node::Node(const CStringW& line, const CStringW& label, const CStringW& transcript, const CStringW& expected, bool played, bool changed, bool temp, int score) : m_parent(NULL), m_line(line), m_label(label), m_textTranscript(transcript), m_textExpected(expected), m_played(played), m_changed(changed), m_temp(temp), m_differs(ExpectedDifferent), m_score(score), m_width(-1), m_lineWidth(-1), m_labelWidth(0), m_x(0) { m_id.Format("node-0x%p",this); CompareWithExpected(); }
Skein::Node::Node(const CStringW& line, const CStringW& label, const CStringW& transcript, const CStringW& expected, bool changed) : m_parent(NULL), m_line(line), m_label(label), m_textTranscript(transcript), m_textExpected(expected), m_locked(false), m_changed(changed), m_differs(ExpectedDifferent), m_width(-1), m_lineWidth(-1), m_labelWidth(-1), m_x(0), m_anim(false), m_animX(0), m_animDepth(0) { static unsigned long counter = 0; m_id.Format("node-%lu",counter++); CompareWithExpected(); }