2 * Copyright 2011-2015, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
15 class BToolBar
: public BGroupView
{
18 orientation ont
= B_HORIZONTAL
);
19 BToolBar(orientation ont
= B_HORIZONTAL
);
24 void AddAction(uint32 command
, BHandler
* target
,
26 const char* toolTipText
= NULL
,
27 const char* text
= NULL
,
28 bool lockable
= false);
29 void AddAction(BMessage
* message
, BHandler
* target
,
31 const char* toolTipText
= NULL
,
32 const char* text
= NULL
,
33 bool lockable
= false);
36 void AddView(BView
* view
);
38 void SetActionEnabled(uint32 command
, bool enabled
);
39 void SetActionPressed(uint32 command
, bool pressed
);
40 void SetActionVisible(uint32 command
, bool visible
);
42 BButton
* FindButton(uint32 command
) const;
46 virtual void FrameResized(float width
, float height
);
49 void _HideToolTips() const;
51 orientation fOrientation
;
54 } // namespace BPrivate
56 using BPrivate::BToolBar
;