Changeset 7316 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 17, 2006, 1:49:05 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r7315 r7316 128 128 EventHandler::getInstance()->withUNICODE(true); 129 129 130 this->setRelCoorSoft2D(0, 0, 1,5);130 this->setRelCoorSoft2D(0, 0, 5); 131 131 132 132 list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end(); … … 157 157 EventHandler::getInstance()->popState(); 158 158 159 this->setRelCoorSoft2D(0, -(int)this->shellHeight, 1,5);159 this->setRelCoorSoft2D(0, -(int)this->shellHeight, 5); 160 160 161 161 list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end(); … … 370 370 lastText->setRelDir2D(-90); 371 371 lastText->setRelDirSoft2D(0, 20); 372 lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector (-1000,0,0));372 lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0)); 373 373 lastText->setRelCoorSoft2D(this->calculateLinePosition(0),10); 374 374 … … 493 493 494 494 /** 495 * calculates the position of a Buffer-Display Line495 * @brief calculates the position of a Buffer-Display Line 496 496 * @param lineNumber the lineNumber from the bottom to calculate the position from 497 497 * @returns the Position of the Line. 498 498 */ 499 Vector Shell::calculateLinePosition(unsigned int lineNumber)500 { 501 return Vector (5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0);502 } 503 504 505 506 /** 507 * displays some nice output from the Shell499 Vector2D Shell::calculateLinePosition(unsigned int lineNumber) 500 { 501 return Vector2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize); 502 } 503 504 505 506 /** 507 * @brief displays some nice output from the Shell 508 508 */ 509 509 void Shell::debug() const -
trunk/src/lib/shell/shell.h
r7315 r7316 80 80 private: 81 81 // helpers // 82 Vector calculateLinePosition(unsigned int lineNumber);82 Vector2D calculateLinePosition(unsigned int lineNumber); 83 83 84 84 // void testI (int i); -
trunk/src/lib/shell/shell_buffer.cc
r7315 r7316 26 26 27 27 /** 28 * standard constructor28 * @brief standard constructor 29 29 */ 30 30 ShellBuffer::ShellBuffer () … … 45 45 46 46 /** 47 * standard deconstructor47 * @brief standard deconstructor 48 48 */ 49 49 ShellBuffer::~ShellBuffer () … … 62 62 63 63 /** 64 * registers the Shell to the Buffer64 * @brief registers the Shell to the Buffer 65 65 * @param shell the Shell to register. 66 66 */ … … 74 74 75 75 /** 76 * unregisters the Shell from the Buffer76 * @brief unregisters the Shell from the Buffer 77 77 * @param shell the Shell to unregister. 78 78 */ … … 86 86 87 87 /** 88 * deletes all the Buffers88 * @brief deletes all the Buffers 89 89 */ 90 90 void ShellBuffer::flush() … … 94 94 95 95 /** 96 * adds a new Line to the List of Buffers96 * @brief adds a new Line to the List of Buffers 97 97 * @param line the Line as in the first argument in printf 98 98 */ … … 121 121 122 122 /** 123 * add a Line to the List of Buffers123 * @brief add a Line to the List of Buffers 124 124 * @param line 125 125 * @param arguments
Note: See TracChangeset
for help on using the changeset viewer.