Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9869 in orxonox.OLD for trunk/src/lib/shell/shell.cc


Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r8362 r9869  
    1818#include "shell.h"
    1919#include "shell_command.h"
    20 #include "shell_buffer.h"
     20#include "debug_buffer.h"
    2121#include "shell_input.h"
    2222
     
    5454  ->completionPlugin(0, OrxShell::CompletorFileSystem(".ttf", "fonts/"));
    5555
     56  ObjectListDefinition(Shell);
    5657
    5758  /**
     
    6061  Shell::Shell ()
    6162  {
    62     this->setClassID(CL_SHELL, "Shell");
     63    this->registerObject(this, Shell::_objectList);
     64
    6365    this->setName("Shell");
    6466
    65     this->shellBuffer = ShellBuffer::getInstance();
     67    this->shellBuffer = DebugBuffer::getInstance();
    6668
    6769    // EVENT-Handler subscription of '`' to all States.
     
    246248    this->setSizeX2D(width);
    247249    for (std::list<MultiLineText*>::iterator textIt = this->bufferText.begin(); textIt != this->bufferText.end(); ++textIt)
    248     {
    249250      (*textIt)->setLineWidth(width);
    250     }
    251251  }
    252252
     
    444444  {
    445445    this->flush();
    446     ShellBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL);
     446    DebugBuffer::addBufferLineStatic("orxonox - shell\n ==================== \n", NULL);
    447447  }
    448448
     
    470470        this->moveDisplayBuffer(-this->bufferDisplaySize+1);
    471471      }
    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();
    477477    }
    478478  }
Note: See TracChangeset for help on using the changeset viewer.