BToolBar: misc. fixes.

* Move common init. code to an _Init() function.
 * Create a layout constructor.
 * Make _AddView public and rename it to AddView.
This commit is contained in:
Augustin Cavalier
2015-02-11 23:06:21 -05:00
parent 94a4c1c456
commit 7d226266e6
2 changed files with 31 additions and 10 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ class BToolBar : public BGroupView {
public:
BToolBar(BRect frame,
orientation ont = B_HORIZONTAL);
BToolBar(orientation ont = B_HORIZONTAL);
virtual ~BToolBar();
virtual void Hide();
@@ -30,6 +31,7 @@ public:
bool lockable = false);
void AddSeparator();
void AddGlue();
void AddView(BView* view);
void SetActionEnabled(uint32 command, bool enabled);
void SetActionPressed(uint32 command, bool pressed);
@@ -39,7 +41,7 @@ private:
virtual void Pulse();
virtual void FrameResized(float width, float height);
void _AddView(BView* view);
void _Init();
BButton* _FindButton(uint32 command) const;
void _HideToolTips() const;