removed tabs

This commit is contained in:
Anis 2016-02-21 22:55:45 +01:00
parent 2a1f81d3aa
commit 304c33e525

View file

@ -1252,27 +1252,27 @@ void GuiTextEditCtrl::onLoseFirstResponder()
Parent::onLoseFirstResponder(); Parent::onLoseFirstResponder();
} }
void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect) void GuiTextEditCtrl::onRender( Point2I offset, const RectI &updateRect )
{ {
RectI ctrlRect( offset, getExtent() ); RectI ctrlRect( offset, getExtent() );
//if opaque, fill the update rect with the fill color //if opaque, fill the update rect with the fill color
if ( mProfile->mOpaque ) if ( mProfile->mOpaque )
{ {
if (!mTextValid) if ( !mTextValid )
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR); GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorERR );
else if (isFirstResponder()) else if ( isFirstResponder() )
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorHL); GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorHL );
else else
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColor); GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColor );
} }
//if there's a border, draw the border //if there's a border, draw the border
if (mProfile->mBorder) if ( mProfile->mBorder )
{ {
renderBorder(ctrlRect, mProfile); renderBorder( ctrlRect, mProfile );
if (!mTextValid) if ( !mTextValid )
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR); GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorERR );
} }
drawText( ctrlRect, isFirstResponder() ); drawText( ctrlRect, isFirstResponder() );
@ -1496,25 +1496,25 @@ void GuiTextEditCtrl::drawText( const RectI &drawRect, bool isFocused )
bool GuiTextEditCtrl::hasText() bool GuiTextEditCtrl::hasText()
{ {
return (mTextBuffer.length()); return ( mTextBuffer.length() );
} }
void GuiTextEditCtrl::invalidText(bool playSound) void GuiTextEditCtrl::invalidText(bool playSound)
{ {
mTextValid = false; mTextValid = false;
if (playSound) if ( playSound )
playDeniedSound(); playDeniedSound();
} }
void GuiTextEditCtrl::validText() void GuiTextEditCtrl::validText()
{ {
mTextValid = true; mTextValid = true;
} }
bool GuiTextEditCtrl::isValidText() bool GuiTextEditCtrl::isValidText()
{ {
return mTextValid; return mTextValid;
} }
void GuiTextEditCtrl::playDeniedSound() void GuiTextEditCtrl::playDeniedSound()