Changeset 9869 in orxonox.OLD for trunk/src/lib/shell/shell.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r8362 r9869 18 18 #include "shell.h" 19 19 #include "shell_command.h" 20 #include " shell_buffer.h"20 #include "debug_buffer.h" 21 21 #include "shell_input.h" 22 22 … … 54 54 ->completionPlugin(0, OrxShell::CompletorFileSystem(".ttf", "fonts/")); 55 55 56 ObjectListDefinition(Shell); 56 57 57 58 /** … … 60 61 Shell::Shell () 61 62 { 62 this->setClassID(CL_SHELL, "Shell"); 63 this->registerObject(this, Shell::_objectList); 64 63 65 this->setName("Shell"); 64 66 65 this->shellBuffer = ShellBuffer::getInstance();67 this->shellBuffer = DebugBuffer::getInstance(); 66 68 67 69 // EVENT-Handler subscription of '`' to all States. … … 246 248 this->setSizeX2D(width); 247 249 for (std::list<MultiLineText*>::iterator textIt = this->bufferText.begin(); textIt != this->bufferText.end(); ++textIt) 248 {249 250 (*textIt)->setLineWidth(width); 250 }251 251 } 252 252 … … 444 444 { 445 445 this->flush(); 446 ShellBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL);446 DebugBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL); 447 447 } 448 448 … … 470 470 this->moveDisplayBuffer(-this->bufferDisplaySize+1); 471 471 } 472 else if (event.type == EV_VIDEO_RESIZE)473 {474 this->updateResolution(event.resize.w);475 this->repositionText();476 }472 } 473 else if (event.type == EV_VIDEO_RESIZE) 474 { 475 this->updateResolution(event.resize.w); 476 this->repositionText(); 477 477 } 478 478 }
Note: See TracChangeset
for help on using the changeset viewer.