Opened 11 years ago

Last modified 5 years ago

#2198 new enhancement

Add BTabView::SetSelectionMessage() like BListView does

Reported by: shinta Owned by: nobody
Priority: low Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I want BTabView::SetSelectionMessage() like BListView::SetSelectionMessage().

It is convenient for handling change of tab. For example, displaying help message for current tab, partiall layouting for similar view like search/replace.

Attachments (2)

TabView.cpp.Invoker (21.1 KB ) - added by shinta 11 years ago.
TabView.h.Invoker (6.5 KB ) - added by shinta 11 years ago.
These 2 files are prototype. These are lacking of at least Notify() overriding.

Download all attachments as: .zip

Change History (5)

comment:1 by shinta, 11 years ago

I thought about implementation.

If BTabView with SetSelectionMessage() is implemented normally (like BListView), BTabView inherits both BView and BInvoker. But, this way breaks binary compatibility because of FBC (Fragile Base Class) problem.

I think implementing BTabView by "has a" BInvoker won't be influenced by FBC problem. But, it is a bit trickky.

I think it is better to let this enhancement wait for after Haiku R1 (breaking binary compatibility).

by shinta, 11 years ago

Attachment: TabView.cpp.Invoker added

by shinta, 11 years ago

Attachment: TabView.h.Invoker added

These 2 files are prototype. These are lacking of at least Notify() overriding.

comment:2 by axeld, 10 years ago

Owner: changed from axeld to nobody
Version: R1/pre-alpha1

comment:3 by waddlesplash, 5 years ago

Milestone: R1Unscheduled
Priority: normallow
Summary: BTabView::SetSelectionMessage()Add BTabView::SetSelectionMessage() like BListView does
Version: R1/Development
Note: See TracTickets for help on using tickets.