Definition at line 93 of file TextEdit.h. References OglGui::TextEdit::ChangeInfo::Caret(), OglGui::TextEdit::ChangeInfo::End(), OglGui::TextEdit::ChangeInfo::Mark(), mCaret, mMark, mText, PublishChange(), RecomputeDocument(), redoDeque, OglGui::TextEdit::ChangeInfo::Start(), OglGui::TextEdit::ChangeInfo::Str(), and undoDeque. Referenced by KeyboardFunc(). 00094 { 00095 if (undoDeque.empty()) 00096 return; 00097 00098 ChangeInfo* undo = undoDeque.back(); 00099 undoDeque.pop_back(); 00100 00101 ChangeInfo* redo = undoDeque.back(); 00102 undoDeque.pop_back(); 00103 00104 mText.replace(undo->Start(), undo->End() - undo->Start(), undo->Str()); 00105 mCaret = undo->Caret(); 00106 mMark = undo->Mark(); 00107 00108 redoDeque.push_back(redo); 00109 redoDeque.push_back(undo); 00110 00111 RecomputeDocument(); 00112 PublishChange(); 00113 }
Here is the call graph for this function:
|