Patch by Artur Wyszynski:

* The BTabView can now be used with layout management. In this setup, children
  views are managed by a BCardLayout and are hidden/shown instead of removed/
  added when (de)activated.

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28701 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-11-20 21:51:43 +00:00
parent 5ebeee561a
commit e401039efa
2 changed files with 90 additions and 10 deletions
+12 -3
View File
@@ -106,6 +106,11 @@ virtual void _ReservedTab12();
class BTabView : public BView
{
public:
BTabView(const char *name,
button_width width = B_WIDTH_AS_USUAL,
uint32 flags = B_FULL_UPDATE_ON_RESIZE |
B_WILL_DRAW | B_NAVIGABLE_JUMP |
B_FRAME_EVENTS | B_NAVIGABLE);
BTabView(BRect frame, const char *name,
button_width width = B_WIDTH_AS_USUAL,
uint32 resizingMode = B_FOLLOW_ALL,
@@ -150,8 +155,12 @@ virtual BRect TabFrame(int32 tab_index) const;
virtual void SetFlags(uint32 flags);
virtual void SetResizingMode(uint32 mode);
virtual void GetPreferredSize(float *width, float *height);
virtual void ResizeToPreferred();
virtual void ResizeToPreferred();
virtual void GetPreferredSize(float* _width, float* _height);
virtual BSize MinSize();
virtual BSize MaxSize();
virtual BSize PreferredSize();
virtual BHandler *ResolveSpecifier(BMessage *message, int32 index,
BMessage *specifier, int32 what, const char *property);
@@ -174,7 +183,7 @@ virtual void SetTabHeight(float height);
BView *ViewForTab(int32 tabIndex) const;
private:
void _InitObject();
void _InitObject(bool layouted = false);
virtual void _ReservedTabView1();
virtual void _ReservedTabView2();