Changeset 6364 for code/branches/presentation2/src/libraries
- Timestamp:
- Dec 16, 2009, 9:42:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/Shell.cc
r6243 r6364 197 197 { 198 198 this->outputLines_.push_front(std::make_pair(lines[i], type)); 199 this->updateListeners<&ShellListener::lineAdded>(); 199 200 if (this->scrollPosition_) 201 this->scrollPosition_++; 202 else 203 this->scrollIterator_ = this->outputLines_.begin(); 204 205 this->bFinishedLastLine_ = true; 206 if (!this->scrollPosition_) 207 this->updateListeners<&ShellListener::lineAdded>(); 200 208 } 201 209 } … … 261 269 262 270 if (this->bFinishedLastLine_) 263 { 264 this->outputLines_.push_front(std::make_pair(output, static_cast<LineType>(level))); 265 266 if (this->scrollPosition_) 267 this->scrollPosition_++; 268 else 269 this->scrollIterator_ = this->outputLines_.begin(); 270 271 this->bFinishedLastLine_ = newline; 272 273 if (!this->scrollPosition_) 274 { 275 this->updateListeners<&ShellListener::lineAdded>(); 276 } 277 } 271 this->addOutputLine(output, static_cast<LineType>(level)); 278 272 else 279 273 { 280 274 this->outputLines_.front().first += output; 281 this->bFinishedLastLine_ = newline;282 275 this->updateListeners<&ShellListener::onlyLastLineChanged>(); 283 276 } 277 this->bFinishedLastLine_ = newline; 284 278 285 279 } while (newline);
Note: See TracChangeset
for help on using the changeset viewer.