Definition at line 186 of file TextEdit.h. References EmptyChangeInfoDeque(), mCaret, mMark, mText, redoDeque, and undoDeque. Referenced by BackSpace(), and DeleteKey(). 00187 { 00188 string str = ""; 00189 string undoStr = ""; 00190 char buf[2]; 00191 00192 if (!redoDeque.empty()) 00193 EmptyChangeInfoDeque(redoDeque); 00194 00195 int chInd = mCaret + (dir == -1 ? -1 : 0); 00196 buf[0] = mText[chInd]; 00197 buf[1] = '\0'; 00198 undoStr += buf; 00199 00200 ChangeInfo* redo = new ChangeInfo(mCaret + (dir==-1 ? -1:0), 00201 mCaret + (dir==-1 ? 0:1), &str, 00202 mCaret, mCaret); 00203 00204 ChangeInfo* undo = new ChangeInfo(mCaret + (dir==-1 ? -1:0), 00205 mCaret + (dir==-1 ? -1:0), &undoStr, 00206 mCaret, mMark); 00207 undoDeque.push_back(redo); 00208 undoDeque.push_back(undo); 00209 }
Here is the call graph for this function:
|