24 Input::Input(karamba* k,
int x,
int y,
int w,
int h):
27 edit =
new SKLineEdit((TQWidget*)k,
this);
28 edit->setGeometry(x,y,w,h);
36 void Input::mUpdate(TQPainter*)
41 void Input::setValue(TQString text)
46 TQString Input::getStringValue()
const 51 void Input::setBGColor(TQColor c)
53 edit->setBackgroundColor(c);
56 void Input::setColor(TQColor c)
59 edit->setFrameColor(c);
62 TQColor Input::getBGColor()
const 64 return edit->backgroundColor();
67 TQColor Input::getColor()
const 69 return edit->getFrameColor();
75 edit->setHidden(
true);
81 edit->setHidden(
false);
84 void Input::setSize(
int ix,
int iy,
int iw,
int ih)
86 Meter::setSize(ix, iy, iw, ih);
87 edit->setGeometry(ix, iy, iw, ih);
90 void Input::setX(
int ix)
93 edit->setGeometry(ix, getY(), getWidth(), getHeight());
96 void Input::setY(
int iy)
99 edit->setGeometry(getX(), iy, getWidth(), getHeight());
102 void Input::setWidth(
int iw)
105 edit->setGeometry(getX(), getY(), iw, getHeight());
108 void Input::setHeight(
int ih)
110 Meter::setHeight(ih);
111 edit->setGeometry(getX(), getY(), getWidth(), ih);
114 void Input::setFont(TQString f)
120 TQString Input::getFont()
const 122 return font.family();
125 void Input::setFontColor(TQColor fontColor)
127 TQPalette palette = edit->palette();
128 palette.setColor(TQColorGroup::Text, fontColor);
129 edit->setPalette(palette);
132 TQColor Input::getFontColor()
const 134 const TQColorGroup &color = edit->colorGroup();
138 void Input::setSelectionColor(TQColor selectionColor)
140 TQPalette palette = edit->palette();
141 palette.setColor(TQColorGroup::Highlight, selectionColor);
142 edit->setPalette(palette);
145 TQColor Input::getSelectionColor()
const 147 const TQColorGroup &color = edit->colorGroup();
148 return color.highlight();
151 void Input::setSelectedTextColor(TQColor selectedTextColor)
153 TQPalette palette = edit->palette();
154 palette.setColor(TQColorGroup::HighlightedText, selectedTextColor);
155 edit->setPalette(palette);
158 TQColor Input::getSelectedTextColor()
const 160 const TQColorGroup &color = edit->colorGroup();
161 return color.highlightedText();
164 void Input::setFontSize(
int size)
166 font.setPixelSize(size);
170 int Input::getFontSize()
const 172 return font.pixelSize();
179 setFontSize(t->getFontSize());
180 setFont(t->getFont());
181 setColor(t->getColor());
182 setBGColor(t->getBGColor());
186 void Input::setInputFocus()
191 void Input::clearInputFocus()