diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index ee71ced992..ae4bac59a9 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -1,5 +1,5 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2001-2002, OpenBeOS +// Copyright (c) 2001-2005, Haiku // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -27,32 +27,38 @@ // managing groups of BTab objects. //------------------------------------------------------------------------------ -// Standard Includes ----------------------------------------------------------- - -// System Includes ------------------------------------------------------------- #include #include #include #include -#include +//#include -// Project Includes ------------------------------------------------------------ -// Local Includes -------------------------------------------------------------- - -// Local Defines --------------------------------------------------------------- - -// Globals --------------------------------------------------------------------- - -//------------------------------------------------------------------------------ BTab::BTab(BView *tabView) - : fEnabled(true), - fSelected(false), - fFocus(false), - fView(tabView) + : + fEnabled(true), + fSelected(false), + fFocus(false), + fView(tabView) { } -//------------------------------------------------------------------------------ + + +BTab::BTab(BMessage *archive) + : + fSelected(false), + fFocus(false), + fView(NULL) +{ + bool disable; + + if (archive->FindBool("_disable", &disable) != B_OK) + SetEnabled(true); + else + SetEnabled(!disable); +} + + BTab::~BTab() { if (!fView) @@ -63,32 +69,22 @@ BTab::~BTab() delete fView; } -//------------------------------------------------------------------------------ -BTab::BTab(BMessage *archive) - : fSelected(false), - fFocus(false), - fView(NULL) -{ - bool disable; - if (archive->FindBool("_disable", &disable) != B_OK) - SetEnabled(true); - else - SetEnabled(!disable); -} -//------------------------------------------------------------------------------ -BArchivable *BTab::Instantiate(BMessage *archive) + +BArchivable * +BTab::Instantiate(BMessage *archive) { if (validate_instantiation(archive, "BTab")) return new BTab(archive); - else - return NULL; + + return NULL; } -//------------------------------------------------------------------------------ -status_t BTab::Archive(BMessage *archive, bool deep) const + + +status_t +BTab::Archive(BMessage *archive, bool deep) const { status_t err = BArchivable::Archive(archive, deep); - if (err != B_OK) return err; @@ -97,45 +93,46 @@ status_t BTab::Archive(BMessage *archive, bool deep) const return err; } -//------------------------------------------------------------------------------ -status_t BTab::Perform(uint32 d, void *arg) + + +status_t +BTab::Perform(uint32 d, void *arg) { return BArchivable::Perform(d, arg); } -//------------------------------------------------------------------------------ -const char *BTab::Label() const + + +const char * +BTab::Label() const { if (fView) return fView->Name(); else return NULL; } -//------------------------------------------------------------------------------ -void BTab::SetLabel(const char *label) -{ - if (!label) - return; - if (!fView) + +void +BTab::SetLabel(const char *label) +{ + if (!label || !fView) return; fView->SetName(label); } -//------------------------------------------------------------------------------ -bool BTab::IsSelected() const + + +bool +BTab::IsSelected() const { return fSelected; } -//------------------------------------------------------------------------------ -void BTab::Select(BView *owner) + + +void +BTab::Select(BView *owner) { - if (!owner) - return; - - if (!View()) - return; - - if (!owner->Window()) + if (!owner || !View() || !owner->Window()) return; owner->AddChild(fView); @@ -143,59 +140,69 @@ void BTab::Select(BView *owner) fSelected = true; } -//------------------------------------------------------------------------------ -void BTab::Deselect() + + +void +BTab::Deselect() { if (View()) View()->RemoveSelf(); fSelected = false; } -//------------------------------------------------------------------------------ -void BTab::SetEnabled(bool enabled) + + +void +BTab::SetEnabled(bool enabled) { fEnabled = enabled; } -//------------------------------------------------------------------------------ -bool BTab::IsEnabled() const + + +bool +BTab::IsEnabled() const { return fEnabled; } -//------------------------------------------------------------------------------ -void BTab::MakeFocus(bool inFocus) + + +void +BTab::MakeFocus(bool inFocus) { fFocus = inFocus; } -//------------------------------------------------------------------------------ -bool BTab::IsFocus() const + + +bool +BTab::IsFocus() const { return fFocus; } -//------------------------------------------------------------------------------ -void BTab::SetView(BView *view) + + +void +BTab::SetView(BView *view) { - if (!view) + if (!view || fView == view) return; - if (fView == view) - return; - - if (fView == NULL) - fView = view; - else - { + if (fView != NULL) { fView->RemoveSelf(); delete fView; - fView = view; } + fView = view; } -//------------------------------------------------------------------------------ -BView *BTab::View() const + + +BView * +BTab::View() const { return fView; } -//------------------------------------------------------------------------------ -void BTab::DrawFocusMark(BView *owner, BRect frame) + + +void +BTab::DrawFocusMark(BView *owner, BRect frame) { float width = owner->StringWidth(Label()); @@ -203,25 +210,28 @@ void BTab::DrawFocusMark(BView *owner, BRect frame) owner->StrokeLine(BPoint(frame.left + frame.Width() * 0.5f - width * 0.5f, frame.bottom), BPoint(frame.left + frame.Width() * 0.5f + width * 0.5f, frame.bottom)); } -//------------------------------------------------------------------------------ -void BTab::DrawLabel(BView *owner, BRect frame) + + +void +BTab::DrawLabel(BView *owner, BRect frame) { const char *label = Label(); + if (label == NULL) + return; - if (label) - { - owner->SetHighColor(0, 0, 0); - owner->DrawString(label, BPoint(frame.left + frame.Width() * 0.5f - - owner->StringWidth(label) * 0.5f, frame.bottom - 4.0f - 2.0f)); - } + owner->SetHighColor(0, 0, 0); + owner->DrawString(label, BPoint(frame.left + frame.Width() * 0.5f - + owner->StringWidth(label) * 0.5f, frame.bottom - 4.0f - 2.0f)); } -//------------------------------------------------------------------------------ -void BTab::DrawTab(BView *owner, BRect frame, tab_position position, bool full) + + +void +BTab::DrawTab(BView *owner, BRect frame, tab_position position, bool full) { - rgb_color no_tint = ui_color(B_PANEL_BACKGROUND_COLOR), - lightenmax = tint_color(no_tint, B_LIGHTEN_MAX_TINT), - darken4 = tint_color(no_tint, B_DARKEN_4_TINT), - darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT); + rgb_color no_tint = ui_color(B_PANEL_BACKGROUND_COLOR); + rgb_color lightenmax = tint_color(no_tint, B_LIGHTEN_MAX_TINT); + rgb_color darken4 = tint_color(no_tint, B_DARKEN_4_TINT); + rgb_color darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT); owner->SetHighColor(darkenmax); owner->SetLowColor(no_tint); @@ -229,8 +239,7 @@ void BTab::DrawTab(BView *owner, BRect frame, tab_position position, bool full) owner->BeginLineArray(12); - if (position != B_TAB_ANY) - { + if (position != B_TAB_ANY) { owner->AddLine(BPoint(frame.left - 2.0f, frame.bottom), BPoint(frame.left - 1.0f, frame.bottom - 1.0f), lightenmax); owner->AddLine(BPoint(frame.left, frame.bottom - 2.0f), @@ -254,8 +263,7 @@ void BTab::DrawTab(BView *owner, BRect frame, tab_position position, bool full) owner->AddLine(BPoint(frame.right - 1.0f, frame.top + 4.0f), BPoint(frame.right - 1.0f, frame.bottom - 4.0f), darken4); - if (full) - { + if (full) { owner->AddLine(BPoint(frame.right, frame.bottom - 3.0f), BPoint(frame.right, frame.bottom - 2.0f), darken4); owner->AddLine(BPoint(frame.right + 1.0f, frame.bottom - 1.0f), @@ -264,7 +272,8 @@ void BTab::DrawTab(BView *owner, BRect frame, tab_position position, bool full) owner->EndLineArray(); } -//------------------------------------------------------------------------------ + + void BTab::_ReservedTab1() {} void BTab::_ReservedTab2() {} void BTab::_ReservedTab3() {} @@ -277,37 +286,40 @@ void BTab::_ReservedTab9() {} void BTab::_ReservedTab10() {} void BTab::_ReservedTab11() {} void BTab::_ReservedTab12() {} -//------------------------------------------------------------------------------ + BTab &BTab::operator=(const BTab &) { + // this is private and not functional, but exported return *this; } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ + +// #pragma mark - + + BTabView::BTabView(BRect frame, const char *name, button_width width, - uint32 resizingMode, uint32 flags) - : BView(frame, name, resizingMode, flags) + uint32 resizingMode, uint32 flags) + : BView(frame, name, resizingMode, flags) { _InitObject(); fTabWidthSetting = width; } -//------------------------------------------------------------------------------ + + BTabView::~BTabView() { - for (int32 i = 0; i < CountTabs(); i++) - { - if (TabAt(i)) - delete TabAt(i); + for (int32 i = 0; i < CountTabs(); i++) { + delete TabAt(i); } delete fTabList; } -//------------------------------------------------------------------------------ + + BTabView::BTabView(BMessage *archive) - : BView(archive), - fFocus(-1) + : BView(archive), + fFocus(-1) { fContainerView = NULL; fTabList = new BList; @@ -319,15 +331,14 @@ BTabView::BTabView(BMessage *archive) else fTabWidthSetting = B_WIDTH_AS_USUAL; - if (archive->FindFloat("_high", &fTabHeight) != B_OK) - { + if (archive->FindFloat("_high", &fTabHeight) != B_OK) { font_height fh; GetFontHeight(&fh); fTabHeight = fh.ascent + fh.descent + fh.leading + 8.0f; } - + fFocus = -1; - + if (archive->FindInt32("_sel", &fSelection) != B_OK) fSelection = 0; @@ -337,26 +348,17 @@ BTabView::BTabView(BMessage *archive) int32 i = 0; BMessage tabMsg; - while (archive->FindMessage("_l_items", i, &tabMsg) == B_OK) - { + while (archive->FindMessage("_l_items", i, &tabMsg) == B_OK) { BArchivable *archivedTab = instantiate_object(&tabMsg); - if (archivedTab) - { - BTab *tab = dynamic_cast(archivedTab); + if (archivedTab) { + BTab *tab = dynamic_cast(archivedTab); BMessage viewMsg; - - if (archive->FindMessage("_view_list", i, &viewMsg) == B_OK) - { + if (archive->FindMessage("_view_list", i, &viewMsg) == B_OK) { BArchivable *archivedView = instantiate_object(&viewMsg); - if (archivedView) - { - BView *view = dynamic_cast(archivedView); - - AddTab(view, tab); - } + AddTab(dynamic_cast(archivedView), tab); } } @@ -364,18 +366,22 @@ BTabView::BTabView(BMessage *archive) i++; } } -//------------------------------------------------------------------------------ -BArchivable *BTabView::Instantiate(BMessage *archive) + + +BArchivable * +BTabView::Instantiate(BMessage *archive) { if ( validate_instantiation(archive, "BTabView")) return new BTabView(archive); - else - return NULL; + + return NULL; } -//------------------------------------------------------------------------------ -status_t BTabView::Archive(BMessage *archive, bool deep) const + + +status_t +BTabView::Archive(BMessage *archive, bool deep) const { - if(CountTabs() > 0) + if (CountTabs() > 0) TabAt(Selection())->View()->RemoveSelf(); BView::Archive(archive, deep); @@ -383,14 +389,12 @@ status_t BTabView::Archive(BMessage *archive, bool deep) const archive->AddInt16("_but_width", fTabWidthSetting); archive->AddFloat("_high", fTabHeight); archive->AddInt32("_sel", fSelection); - - if (deep) - { - for (int32 i = 0; i < CountTabs(); i++) - { + + if (deep) { + for (int32 i = 0; i < CountTabs(); i++) { BMessage tabArchive; BTab *tab = TabAt(i); - + if (!tab) continue; @@ -407,143 +411,161 @@ status_t BTabView::Archive(BMessage *archive, bool deep) const } } - if(CountTabs() > 0) - { + if (CountTabs() > 0) { if (TabAt(Selection())->View() && ContainerView()) TabAt(Selection())->Select(ContainerView()); } return B_OK; } -//------------------------------------------------------------------------------ -status_t BTabView::Perform(perform_code d, void *arg) + + +status_t +BTabView::Perform(perform_code d, void *arg) { return BView::Perform(d, arg); } -//------------------------------------------------------------------------------ -void BTabView::WindowActivated(bool active) + + +void +BTabView::WindowActivated(bool active) { BView::WindowActivated(active); DrawTabs(); } -//------------------------------------------------------------------------------ -void BTabView::AttachedToWindow() + + +void +BTabView::AttachedToWindow() { BView::AttachedToWindow(); Select(fSelection); } -//------------------------------------------------------------------------------ -void BTabView::AllAttached() + + +void +BTabView::AllAttached() { BView::AllAttached(); } -//------------------------------------------------------------------------------ -void BTabView::AllDetached() + + +void +BTabView::AllDetached() { BView::AllDetached(); } -//------------------------------------------------------------------------------ -void BTabView::DetachedFromWindow() + + +void +BTabView::DetachedFromWindow() { BView::DetachedFromWindow(); } -//------------------------------------------------------------------------------ -void BTabView::MessageReceived(BMessage *message) + + +void +BTabView::MessageReceived(BMessage *message) { BView::MessageReceived(message); } -//------------------------------------------------------------------------------ -void BTabView::FrameMoved(BPoint newLocation) + + +void +BTabView::FrameMoved(BPoint newLocation) { BView::FrameMoved(newLocation); } -//------------------------------------------------------------------------------ -void BTabView::FrameResized(float width,float height) + + +void +BTabView::FrameResized(float width,float height) { BView::FrameResized(width, height); } -//------------------------------------------------------------------------------ -void BTabView::KeyDown(const char *bytes, int32 numBytes) + + +void +BTabView::KeyDown(const char *bytes, int32 numBytes) { if (IsHidden()) return; - switch (bytes[0]) - { + switch (bytes[0]) { case B_DOWN_ARROW: case B_LEFT_ARROW: - { SetFocusTab((fFocus - 1) % CountTabs(), true); break; - } + case B_UP_ARROW: case B_RIGHT_ARROW: - { SetFocusTab((fFocus + 1) % CountTabs(), true); break; - } + case B_RETURN: case B_SPACE: - { Select(FocusTab()); break; - } + default: BView::KeyDown(bytes, numBytes); } } -//------------------------------------------------------------------------------ -void BTabView::MouseDown(BPoint point) + + +void +BTabView::MouseDown(BPoint point) { - if (point.y <= fTabHeight) - { - for (int32 i = 0; i < CountTabs(); i++) - { - if (TabFrame(i).Contains(point)) - { - if (i != Selection()) - { - Select(i); - return; - } - } + if (point.y > fTabHeight) + return; + + for (int32 i = 0; i < CountTabs(); i++) { + if (TabFrame(i).Contains(point) + && i != Selection()) { + Select(i); + return; } } BView::MouseDown(point); } -//------------------------------------------------------------------------------ -void BTabView::MouseUp(BPoint point) + + +void +BTabView::MouseUp(BPoint point) { BView::MouseUp(point); } -//------------------------------------------------------------------------------ -void BTabView::MouseMoved(BPoint point, uint32 transit, const BMessage *message) + + +void +BTabView::MouseMoved(BPoint point, uint32 transit, const BMessage *message) { BView::MouseMoved(point, transit, message); } -//------------------------------------------------------------------------------ -void BTabView::Pulse() + + +void +BTabView::Pulse() { BView::Pulse(); } -//------------------------------------------------------------------------------ -void BTabView::Select(int32 index) + + +void +BTabView::Select(int32 index) { if (index < 0 || index >= CountTabs()) index = Selection(); BTab *tab = TabAt(Selection()); - if (tab) tab->Deselect(); tab = TabAt(index); - - if (tab && ContainerView()) - { + if (tab && ContainerView()) { tab->Select(ContainerView()); fSelection = index; } @@ -551,26 +573,31 @@ void BTabView::Select(int32 index) //Draw(Bounds()); Invalidate(); } -//------------------------------------------------------------------------------ -int32 BTabView::Selection() const + + +int32 +BTabView::Selection() const { return fSelection; } -//------------------------------------------------------------------------------ -void BTabView::MakeFocus(bool focused) + + +void +BTabView::MakeFocus(bool focused) { BView::MakeFocus(focused); SetFocusTab(Selection(), focused); } -//------------------------------------------------------------------------------ -void BTabView::SetFocusTab(int32 tab, bool focused) + + +void +BTabView::SetFocusTab(int32 tab, bool focused) { if (tab >= CountTabs()) return; - if (focused) - { + if (focused) { if (tab == fFocus) return; @@ -579,43 +606,49 @@ void BTabView::SetFocusTab(int32 tab, bool focused) TabAt(tab)->MakeFocus(true); fFocus = tab; - } - else if (fFocus != -1) - { + } else if (fFocus != -1) { TabAt (fFocus)->MakeFocus(false); fFocus = -1; } Invalidate(); } -//------------------------------------------------------------------------------ -int32 BTabView::FocusTab() const + + +int32 +BTabView::FocusTab() const { return fFocus; } -//------------------------------------------------------------------------------ -void BTabView::Draw(BRect updateRect) + + +void +BTabView::Draw(BRect updateRect) { DrawBox(DrawTabs()); if (IsFocus() && fFocus != -1) TabAt(fFocus)->DrawFocusMark(this, TabFrame(fFocus)); } -//------------------------------------------------------------------------------ -BRect BTabView::DrawTabs() + + +BRect +BTabView::DrawTabs() { - for(int32 i = 0; i < CountTabs(); i++) + for (int32 i = 0; i < CountTabs(); i++) TabAt(i)->DrawTab(this, TabFrame(i), - (i == fSelection) ? B_TAB_FRONT : (i == 0) ? B_TAB_FIRST : B_TAB_ANY, - (i + 1 != fSelection)); + i == fSelection ? B_TAB_FRONT : (i == 0) ? B_TAB_FIRST : B_TAB_ANY, + i + 1 != fSelection); if (fSelection < CountTabs()) return TabFrame(fSelection); - else - return BRect(); + + return BRect(); } -//------------------------------------------------------------------------------ -void BTabView::DrawBox(BRect selTabRect) + + +void +BTabView::DrawBox(BRect selTabRect) { BRect rect = Bounds(); @@ -634,80 +667,90 @@ void BTabView::DrawBox(BRect selTabRect) BPoint(rect.right, rect.bottom)); StrokeLine(BPoint(rect.left + 1.0f, rect.bottom)); } -//------------------------------------------------------------------------------ -BRect BTabView::TabFrame(int32 tab_index) const + + +BRect +BTabView::TabFrame(int32 tab_index) const { - switch (fTabWidthSetting) - { + switch (fTabWidthSetting) { case B_WIDTH_FROM_LABEL: { float x = 6.0f; - for (int32 i = 0; i < tab_index; i++) x += StringWidth(TabAt(i)->Label()) + 20.0f; return BRect(x, 0.0f, x + StringWidth(TabAt(tab_index)->Label()) + 20.0f, fTabHeight); - break; } + case B_WIDTH_FROM_WIDEST: { float width = 0.0f; - for (int32 i = 0; i < CountTabs(); i++) - { + for (int32 i = 0; i < CountTabs(); i++) { float tabWidth = StringWidth(TabAt(i)->Label()) + 20.0f; - + if (tabWidth > width) width = tabWidth; } - return BRect((6.0f + tab_index * width), 0.0f, - (6.0f + tab_index * width + width), fTabHeight); - break; + return BRect(6.0f + tab_index * width, 0.0f, + 6.0f + tab_index * width + width, fTabHeight); } + case B_WIDTH_AS_USUAL: default: - { - return BRect((6.0f + tab_index * 100.0f), 0.0f, - (6.0f + tab_index * 100.0f + 100.0f), fTabHeight); - break; - } + return BRect(6.0f + tab_index * 100.0f, 0.0f, + 6.0f + tab_index * 100.0f + 100.0f, fTabHeight); } } -//------------------------------------------------------------------------------ -void BTabView::SetFlags(uint32 flags) + + +void +BTabView::SetFlags(uint32 flags) { BView::SetFlags(flags); } -//------------------------------------------------------------------------------ -void BTabView::SetResizingMode(uint32 mode) + + +void +BTabView::SetResizingMode(uint32 mode) { BView::SetResizingMode(mode); } -//------------------------------------------------------------------------------ -void BTabView::GetPreferredSize(float *width, float *height) + + +void +BTabView::GetPreferredSize(float *width, float *height) { BView::GetPreferredSize(width, height); } -//------------------------------------------------------------------------------ -void BTabView::ResizeToPreferred() + + +void +BTabView::ResizeToPreferred() { BView::ResizeToPreferred(); } -//------------------------------------------------------------------------------ -BHandler *BTabView::ResolveSpecifier(BMessage *message, int32 index, - BMessage *specifier, int32 what, const char *property) + + +BHandler * +BTabView::ResolveSpecifier(BMessage *message, int32 index, + BMessage *specifier, int32 what, const char *property) { return BView::ResolveSpecifier(message, index, specifier, what, property); } -//------------------------------------------------------------------------------ -status_t BTabView::GetSupportedSuites(BMessage *message) + + +status_t +BTabView::GetSupportedSuites(BMessage *message) { return BView::GetSupportedSuites(message); } -//------------------------------------------------------------------------------ -void BTabView::AddTab(BView *target, BTab *tab) + + +void +BTabView::AddTab(BView *target, BTab *tab) { if (tab == NULL) tab = new BTab(target); @@ -716,21 +759,25 @@ void BTabView::AddTab(BView *target, BTab *tab) fTabList->AddItem(tab); } -//------------------------------------------------------------------------------ -BTab *BTabView::RemoveTab(int32 tab_index) + + +BTab * +BTabView::RemoveTab(int32 index) { - if (tab_index < 0 || tab_index >= CountTabs()) + if (index < 0 || index >= CountTabs()) return NULL; - BTab *tab = (BTab*)fTabList->RemoveItem(tab_index); + BTab *tab = (BTab *)fTabList->RemoveItem(index); + if (tab == NULL) + return NULL; tab->Deselect(); - if (tab_index <= fSelection && fSelection != 0) + if (index <= fSelection && fSelection != 0) fSelection--; Select(fSelection); - + if (fFocus == CountTabs() - 1) SetFocusTab(fFocus, false); else @@ -738,25 +785,33 @@ BTab *BTabView::RemoveTab(int32 tab_index) return tab; } -//------------------------------------------------------------------------------ -BTab *BTabView::TabAt(int32 tab_index) const + + +BTab * +BTabView::TabAt(int32 index) const { - return (BTab*)fTabList->ItemAt(tab_index); + return (BTab *)fTabList->ItemAt(index); } -//------------------------------------------------------------------------------ -void BTabView::SetTabWidth(button_width width) + + +void +BTabView::SetTabWidth(button_width width) { fTabWidthSetting = width; Invalidate(); } -//------------------------------------------------------------------------------ -button_width BTabView::TabWidth() const + + +button_width +BTabView::TabWidth() const { return fTabWidthSetting; } -//------------------------------------------------------------------------------ -void BTabView::SetTabHeight(float height) + + +void +BTabView::SetTabHeight(float height) { if (fTabHeight == height) return; @@ -768,33 +823,42 @@ void BTabView::SetTabHeight(float height) Invalidate(); } -//------------------------------------------------------------------------------ -float BTabView::TabHeight() const + + +float +BTabView::TabHeight() const { return fTabHeight; } -//------------------------------------------------------------------------------ -BView *BTabView::ContainerView() const + + +BView * +BTabView::ContainerView() const { return fContainerView; } -//------------------------------------------------------------------------------ -int32 BTabView::CountTabs() const + + +int32 +BTabView::CountTabs() const { return fTabList->CountItems(); } -//------------------------------------------------------------------------------ -BView *BTabView::ViewForTab(int32 tabIndex) const + + +BView * +BTabView::ViewForTab(int32 tabIndex) const { BTab *tab = TabAt(tabIndex); - if (tab) return tab->View(); - else - return NULL; + + return NULL; } -//------------------------------------------------------------------------------ -void BTabView::_InitObject() + + +void +BTabView::_InitObject() { fTabList = new BList; @@ -824,7 +888,8 @@ void BTabView::_InitObject() AddChild(fContainerView); } -//------------------------------------------------------------------------------ + + void BTabView::_ReservedTabView1() {} void BTabView::_ReservedTabView2() {} void BTabView::_ReservedTabView3() {} @@ -837,21 +902,17 @@ void BTabView::_ReservedTabView9() {} void BTabView::_ReservedTabView10() {} void BTabView::_ReservedTabView11() {} void BTabView::_ReservedTabView12() {} -//------------------------------------------------------------------------------ + + BTabView::BTabView(const BTabView &tabView) - : BView(tabView) + : BView(tabView) { + // this is private and not functional, but exported } -//------------------------------------------------------------------------------ + + BTabView &BTabView::operator=(const BTabView &) { + // this is private and not functional, but exported return *this; } -//------------------------------------------------------------------------------ - -/* - * $Log $ - * - * $Id $ - * - */