mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
[code] Python console that stores and displays commands that are
entered. Change-Id: I0343c38b60f4bbea6dfab173e2b5f46f66b83251
This commit is contained in:
21
apps/code/console_line_cell.cpp
Normal file
21
apps/code/console_line_cell.cpp
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user