Index: code/branches/presentation3/src/orxonox/ChatInputHandler.cc
===================================================================
--- code/branches/presentation3/src/orxonox/ChatInputHandler.cc	(revision 7049)
+++ code/branches/presentation3/src/orxonox/ChatInputHandler.cc	(revision 7127)
@@ -40,5 +40,5 @@
 #include <string>
 
-namespace orxonox 
+namespace orxonox
 {
   /* singleton */
@@ -48,5 +48,5 @@
   SetConsoleCommandAlias( ChatInputHandler, activate_static, "startchat",
     true );
-  SetConsoleCommandAlias( ChatInputHandler, activate_small_static, 
+  SetConsoleCommandAlias( ChatInputHandler, activate_small_static,
     "startchat_small", true );
 
@@ -111,5 +111,5 @@
 
     /* cast it to a listbox */
-    lb_history = dynamic_cast<CEGUI::Listbox*>(history); 
+    lb_history = dynamic_cast<CEGUI::Listbox*>(history);
 
     /* assert wee */
@@ -140,5 +140,5 @@
     }
 
-    // blues 
+    // blues
     red = 0.5, green = 0.5, blue = 1;
     for( ; i < NumberOfColors; ++i )
@@ -171,5 +171,5 @@
   }
 
-  void ChatInputHandler::deactivate() 
+  void ChatInputHandler::deactivate()
   {
     /* stop listening */
@@ -202,5 +202,5 @@
 
   /* handle incoming chat */
-  void ChatInputHandler::incomingChat(const std::string& message, 
+  void ChatInputHandler::incomingChat(const std::string& message,
     unsigned int senderID)
   {
@@ -210,5 +210,5 @@
     /* setup player name info */
     if (senderID != CLIENTID_UNKNOWN)
-    { 
+    {
        PlayerInfo* player = PlayerManager::getInstance().getClient(senderID);
        if (player)
@@ -227,20 +227,20 @@
     /* now add */
     this->lb_history->addItem( dynamic_cast<CEGUI::ListboxItem*>(toadd) );
-    this->lb_history->ensureItemIsVisible( 
+    this->lb_history->ensureItemIsVisible(
       dynamic_cast<CEGUI::ListboxItem*>(toadd) );
 
     /* make sure the history handles it */
     this->lb_history->handleUpdatedItemData();
-  } 
+  }
 
 
   /* sub for inputchanged */
-  void ChatInputHandler::sub_adjust_dispoffset( int maxlen, 
-    int cursorpos, 
+  void ChatInputHandler::sub_adjust_dispoffset( int maxlen,
+    int cursorpos,
     int inplen )
   {
     /* already start offsetting 5 characters before end */
     if( cursorpos+5 > maxlen )
-    { 
+    {
       /* always stay 5 characters ahead of end, looks better */
       ((disp_offset = cursorpos-maxlen+5) >= 0) ? 1 : disp_offset = 0;
@@ -249,5 +249,5 @@
       (disp_offset > cursorpos ) ? disp_offset = 0 : 1;
     }
-     
+
     /* make sure we don't die at substr */
     if( inplen <= disp_offset ) disp_offset = 0;
@@ -260,5 +260,5 @@
     std::string raw = this->inpbuf->get();
     int cursorpos = this->inpbuf->getCursorPosition();
-    
+
     /* get string before cursor */
     std::string left = raw.substr( 0, cursorpos );
@@ -268,12 +268,12 @@
     if( raw.length() >= left.length()+1 )
       right = raw.substr( cursorpos );
-      
+
     /* set the text */
     std::string assembled = "$ " + left + "|" + right;
 
     if( this->fullchat )
-    { 
+    {
       /* adjust curser position - magic number 5 for font width */
-      sub_adjust_dispoffset( (this->input->getUnclippedInnerRect().getWidth()/6), 
+      sub_adjust_dispoffset( (this->input->getUnclippedInnerRect().getWidth()/6),
         cursorpos, assembled.length() );
       this->input->setProperty( "Text", assembled.substr( disp_offset ) );
@@ -282,5 +282,5 @@
     {
       /* adjust curser position - magic number 5 for font width */
-      sub_adjust_dispoffset( (this->inputonly->getUnclippedInnerRect().getWidth()/6), 
+      sub_adjust_dispoffset( (this->inputonly->getUnclippedInnerRect().getWidth()/6),
         cursorpos, assembled.length() );
       this->inputonly->setProperty( "Text", assembled.substr( disp_offset) );
@@ -323,8 +323,8 @@
   void ChatInputHandler::cursorRight()
   { this->inpbuf->increaseCursor(); }
-  
+
   void ChatInputHandler::cursorLeft()
   { this->inpbuf->decreaseCursor(); }
-  
+
   void ChatInputHandler::cursorEnd()
   { this->inpbuf->setCursorToEnd(); }
