BToolbar: Allow the toolbar's orientation to be set by its creator.

I already made this patch in Heidi's clone of BToolbar. Adding it here
allows me to drop Heidi's version altogether.

I also relicensed the header file at the permission of Stephan. The .cpp
file still lists him as author and copyright holder.

Signed-off-by: Jessica Hamilton <[email protected]>
This commit is contained in:
Augustin Cavalier
2014-11-10 13:21:13 +13:00
committed by Jessica Hamilton
parent 44d31dca37
commit 0a74147e1d
2 changed files with 12 additions and 6 deletions
+6 -3
View File
@@ -1,6 +1,6 @@
/*
* Copyright 2011 Stephan Aßmus <[email protected]>
* All rights reserved. Distributed under the terms of the MIT license.
* Copyright 2011-2014, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _TOOLBAR_H
#define _TOOLBAR_H
@@ -14,7 +14,8 @@ namespace BPrivate {
class BToolbar : public BGroupView {
public:
BToolbar(BRect frame);
BToolbar(BRect frame,
orientation ont = B_HORIZONTAL);
virtual ~BToolbar();
virtual void Hide();
@@ -41,6 +42,8 @@ private:
void _AddView(BView* view);
BButton* _FindButton(uint32 command) const;
void _HideToolTips() const;
orientation fOrientation;
};
} // namespace BPrivate