21#include "sklineedit.h"
25SKLineEdit::SKLineEdit(TQWidget *w, Input *i) : TQLineEdit(w), m_input(i)
27 frameColor = TQt::gray;
28 setBackgroundColor(TQt::white);
31SKLineEdit::~SKLineEdit()
35void SKLineEdit::drawFrame(TQPainter *p)
37 p->setPen(frameColor);
38 p->drawRect(frameRect());
41void SKLineEdit::drawContents(TQPainter *p)
43 TQLineEdit::drawContents(p);
46void SKLineEdit::setFrameColor(TQColor c)
52void SKLineEdit::setBackgroundColor(TQColor c)
54 TQLineEdit::setBackgroundColor(c);
58TQColor SKLineEdit::getFrameColor()
const
63void SKLineEdit::keyPressEvent(TQKeyEvent* e)
65 TQLineEdit::keyPressEvent(e);
67 if(!e->text().isEmpty())
69 karamba* k =
static_cast<karamba*
>(parent());
70 k->keyPressed(e->text(), m_input);
74void SKLineEdit::keyReleaseEvent(TQKeyEvent* e)
76 TQLineEdit::keyReleaseEvent(e);
79Input* SKLineEdit::getInput()