2006-12-22 11:05:17 +00:00
|
|
|
/*
|
2007-05-03 20:05:47 +00:00
|
|
|
* Copyright 2002-2007, Haiku Inc. All rights reserved.
|
2006-12-22 11:05:17 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* <unknown, please fill in who knows>
|
2007-05-03 20:05:47 +00:00
|
|
|
* Stefano Ceccherini (stefano.ceccherini@gmail.com)
|
2006-12-22 11:05:17 +00:00
|
|
|
*/
|
|
|
|
#ifndef MENU_BAR_H
|
|
|
|
#define MENU_BAR_H
|
|
|
|
|
2006-03-06 17:15:16 +00:00
|
|
|
|
|
|
|
#include <MenuBar.h>
|
|
|
|
|
|
|
|
class BMenuItem;
|
|
|
|
class MenuBar : public BMenuBar {
|
2006-12-22 11:05:17 +00:00
|
|
|
public:
|
|
|
|
MenuBar();
|
|
|
|
|
|
|
|
virtual void AttachedToWindow();
|
|
|
|
|
|
|
|
void UpdateMenu();
|
|
|
|
void Update();
|
|
|
|
virtual void FrameResized(float width, float height);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void _BuildMenu();
|
|
|
|
|
|
|
|
BMenuItem* fAlwaysShowTriggersItem;
|
|
|
|
BMenuItem* fControlAsShortcutItem;
|
|
|
|
BMenuItem* fAltAsShortcutItem;
|
2006-03-06 17:15:16 +00:00
|
|
|
};
|
|
|
|
|
2006-12-22 11:05:17 +00:00
|
|
|
#endif // MENU_BAR_H
|