[code] Python console that stores and displays commands that are

entered.

Change-Id: I0343c38b60f4bbea6dfab173e2b5f46f66b83251
This commit is contained in:
Léa Saviot
2017-10-11 14:45:29 +02:00
committed by Romain Goyet
parent 9fa5ac0acf
commit 493cef0d4d
20 changed files with 440 additions and 41 deletions

View File

@@ -0,0 +1,21 @@
#include "console_line_cell.h"
namespace Code {
ConsoleLineCell::ConsoleLineCell() :
HighlightCell(),
m_line()
{
}
void ConsoleLineCell::drawRect(KDContext * ctx, KDRect rect) const {
ctx->fillRect(bounds(), KDColorRed);
ctx->drawString(m_line.text(), KDPointZero);
}
void ConsoleLineCell::setLine(ConsoleLine line) {
m_line = line;
reloadCell();
}
}