Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void OglGui::TextEdit::DeleteKey (  )  [inline]

Definition at line 872 of file TextEdit.h.

References ComputeCaretPosition(), DeleteSelection(), mCaret, mMark, mText, PublishChange(), and UndoableDeleteKey().

Referenced by Impala::Application::SDash::SurveillanceApp::SubmitButtonListener::ButtonSelectionEvent(), and KeyboardFunc().

00873     {
00874         bool changed = mCaret != mMark;
00875         if (mCaret != mMark)
00876             DeleteSelection();
00877         else if (mCaret < mText.size())
00878         {
00879             changed = true;
00880             UndoableDeleteKey(1);
00881             //mText = mText.erase(mCaret, 1);
00882 mText.erase(mCaret, 1);
00883         }
00884         ComputeCaretPosition();
00885         if (changed)
00886             PublishChange();
00887     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:05 2011 for ImpalaSrc by  doxygen 1.5.1