[rkward-cvs] rkward/rkward rkconsole.cpp,1.26,1.27
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Mon Sep 11 00:26:43 UTC 2006
Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv23053/rkward
Modified Files:
rkconsole.cpp
Log Message:
RKConsole: when pressing cursor down past the last command, clear the line. Disable undo (minimal speedup)
Index: rkconsole.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkconsole.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** rkconsole.cpp 10 Sep 2006 23:45:40 -0000 1.26
--- rkconsole.cpp 11 Sep 2006 00:26:41 -0000 1.27
***************
*** 129,134 ****
command_incomplete = false;
output_continuation = false;
! //TODO:
! //view->setUndoRedoEnabled (false);
clear ();
--- 129,133 ----
command_incomplete = false;
output_continuation = false;
! doc->setUndoSteps (0);
clear ();
***************
*** 351,354 ****
--- 350,354 ----
RK_TRACE (APP);
if (commands_history.getLast () == commands_history.current ()) { // already at bottommost item
+ setCurrentCommand (QString::null);
return;
}
***************
*** 400,405 ****
view->setUpdatesEnabled (false); // major performace boost while removing lines!
//TODO : deal with the case when there is already a selection
! selectionInterface(doc)->setSelection (0, 0, c - RKSettingsModuleConsole::maxConsoleLines (), 0);
! selectionInterface(doc)-> removeSelectedText();
view->setUpdatesEnabled (true);
}
--- 400,405 ----
view->setUpdatesEnabled (false); // major performace boost while removing lines!
//TODO : deal with the case when there is already a selection
! selectionInterface (doc)->setSelection (0, 0, c - RKSettingsModuleConsole::maxConsoleLines (), 0);
! selectionInterface (doc)->removeSelectedText ();
view->setUpdatesEnabled (true);
}
***************
*** 466,469 ****
--- 466,471 ----
void RKConsole::addCommandToHistory (const QString &command) {
RK_TRACE (APP);
+ // if (command.isEmpty ()) return; // don't add empty lines // WHOA! does not work that way!
+
commands_history.append (new QString (command.latin1 ()));
More information about the rkward-tracker
mailing list