BTabView: Style fixes
Fix misleading indentation remove extra newline just a newline selTabRect => selectedTabRect
This commit is contained in:
@@ -416,10 +416,10 @@
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void BTabView::DrawBox(BRect selTabRect)
|
\fn void BTabView::DrawBox(BRect selectedTabRect)
|
||||||
\brief Draws the box that encloses the container view.
|
\brief Draws the box that encloses the container view.
|
||||||
|
|
||||||
\param selTabRect The frame rectangle of the currently selected tab.
|
\param selectedTabRect The frame rectangle of the currently selected tab.
|
||||||
|
|
||||||
\since BeOS R3
|
\since BeOS R3
|
||||||
*/
|
*/
|
||||||
@@ -736,4 +736,3 @@
|
|||||||
|
|
||||||
\since Haiku R1
|
\since Haiku R1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ static property_info sPropertyList[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BTab::BTab(BView* contentsView)
|
BTab::BTab(BView* contentsView)
|
||||||
:
|
:
|
||||||
fEnabled(true),
|
fEnabled(true),
|
||||||
@@ -698,6 +697,7 @@ BTabView::Select(int32 index)
|
|||||||
if (tab != NULL && fContainerView != NULL) {
|
if (tab != NULL && fContainerView != NULL) {
|
||||||
if (index == 0)
|
if (index == 0)
|
||||||
fTabOffset = 0.0f;
|
fTabOffset = 0.0f;
|
||||||
|
|
||||||
tab->Select(fContainerView);
|
tab->Select(fContainerView);
|
||||||
fSelection = index;
|
fSelection = index;
|
||||||
|
|
||||||
@@ -840,14 +840,14 @@ BTabView::DrawTabs()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BTabView::DrawBox(BRect selTabRect)
|
BTabView::DrawBox(BRect selectedTabRect)
|
||||||
{
|
{
|
||||||
BRect rect(Bounds());
|
BRect rect(Bounds());
|
||||||
rect.top = selTabRect.bottom;
|
rect.top = selectedTabRect.bottom;
|
||||||
if (fBorderStyle != B_FANCY_BORDER)
|
if (fBorderStyle != B_FANCY_BORDER)
|
||||||
rect.top += 1.0f;
|
rect.top += 1.0f;
|
||||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
|
||||||
|
|
||||||
|
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
if (fBorderStyle == B_FANCY_BORDER)
|
if (fBorderStyle == B_FANCY_BORDER)
|
||||||
be_control_look->DrawGroupFrame(this, rect, rect, base);
|
be_control_look->DrawGroupFrame(this, rect, rect, base);
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user