fixed build and applied yet more cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-06-06 16:25:46 +00:00
parent a216b33aed
commit b962260488
2 changed files with 39 additions and 42 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
#include <Window.h> #include <Window.h>
struct CalcOptions { struct CalcOptions {
bool mAutoNumLock; // automatically activate numlock bool auto_num_lock; // automatically activate numlock
bool mAudioFeedback; // provide audio feedback bool audio_feedback; // provide audio feedback
CalcOptions(); CalcOptions();
}; };
+7 -10
View File
@@ -233,12 +233,11 @@ CalcView::Draw(BRect updateRect)
DrawString(fExpression.String(), DrawString(fExpression.String(),
BPoint(fWidth - StringWidth(fExpression.String()), BPoint(fWidth - StringWidth(fExpression.String()),
sizeDisp - baselineOffset)); sizeDisp - baselineOffset));
}
} // end if
// ****** KEYPAD Area // ****** KEYPAD Area
if (updateRect.Intersects(keypadRect)) { if (updateRect.Intersects(keypadRect)) {
// TODO: support pressed keys
// paint keypad b/g // paint keypad b/g
SetHighColor(fBaseColor); SetHighColor(fBaseColor);
@@ -258,7 +257,7 @@ CalcView::Draw(BRect updateRect)
AddLine(BPoint(col * sizeCol, sizeDisp), AddLine(BPoint(col * sizeCol, sizeDisp),
BPoint(col * sizeCol, fHeight), BPoint(col * sizeCol, fHeight),
fLightColor); fLightColor);
} // end for }
AddLine(BPoint(fColums * sizeCol, sizeDisp), AddLine(BPoint(fColums * sizeCol, sizeDisp),
BPoint(fColums * sizeCol, fHeight), BPoint(fColums * sizeCol, fHeight),
fDarkColor); fDarkColor);
@@ -271,7 +270,7 @@ CalcView::Draw(BRect updateRect)
AddLine(BPoint(0.0, sizeDisp + row * sizeRow), AddLine(BPoint(0.0, sizeDisp + row * sizeRow),
BPoint(fWidth, sizeDisp + row * sizeRow), BPoint(fWidth, sizeDisp + row * sizeRow),
fLightColor); fLightColor);
} // end for }
AddLine(BPoint(0.0, sizeDisp + fRows * sizeRow), AddLine(BPoint(0.0, sizeDisp + fRows * sizeRow),
BPoint(fWidth, sizeDisp + fRows * sizeRow), BPoint(fWidth, sizeDisp + fRows * sizeRow),
fDarkColor); fDarkColor);
@@ -295,11 +294,9 @@ CalcView::Draw(BRect updateRect)
BPoint(col * sizeCol + halfSizeCol - halfSymbolWidth, BPoint(col * sizeCol + halfSizeCol - halfSymbolWidth,
sizeDisp + (row + 1) * sizeRow - baselineOffset)); sizeDisp + (row + 1) * sizeRow - baselineOffset));
key++; key++;
} // end for }
} // end for }
}
} // end if
} }