Move constants to BMCPrivate.h and refactor

We use these constants in both MenuField.cpp and BMCPrivate.cpp

Incorporate kMarginWidth into kPopUpIndicatorWidth.

A small code simplication in FrameResized() along with replacing bare numbers
with magic constants.
This commit is contained in:
John Scipione
2013-05-30 00:05:15 -04:00
parent f7c092f5db
commit 6031e62420
3 changed files with 16 additions and 19 deletions
+6
View File
@@ -16,6 +16,12 @@
#include <MessageFilter.h>
static const float kVMargin = 2.0f;
static const float kMinMenuBarWidth = 20.0f;
// found by experimenting on BeOS R5
static const float kPopUpIndicatorWidth = 13.0f;
class BMessageRunner;