2006-11-22 11:52:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2001-2006, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Marc Flerackers (mflerackers@androme.be)
|
|
|
|
* Stefano Ceccherini (burton666@libero.it)
|
|
|
|
*/
|
2004-12-27 09:05:16 +00:00
|
|
|
#ifndef __MENUWINDOW_H
|
|
|
|
#define __MENUWINDOW_H
|
|
|
|
|
2006-11-22 11:52:18 +00:00
|
|
|
|
2004-12-27 09:05:16 +00:00
|
|
|
#include <Window.h>
|
|
|
|
|
|
|
|
class BMenu;
|
2006-11-20 20:19:55 +00:00
|
|
|
|
|
|
|
|
2006-11-22 11:52:18 +00:00
|
|
|
namespace BPrivate {
|
2006-11-20 20:19:55 +00:00
|
|
|
|
2006-11-22 11:52:18 +00:00
|
|
|
class BMenuFrame;
|
|
|
|
class BMenuScroller;
|
2006-11-20 20:19:55 +00:00
|
|
|
|
2005-01-04 13:00:33 +00:00
|
|
|
|
2004-12-27 09:05:16 +00:00
|
|
|
class BMenuWindow : public BWindow {
|
2006-11-20 20:19:55 +00:00
|
|
|
public:
|
|
|
|
BMenuWindow(const char *name);
|
|
|
|
virtual ~BMenuWindow();
|
2005-01-04 13:00:33 +00:00
|
|
|
|
2006-11-20 20:19:55 +00:00
|
|
|
void AttachMenu(BMenu *menu);
|
|
|
|
void DetachMenu();
|
2006-03-28 13:06:47 +00:00
|
|
|
|
2006-11-20 20:19:55 +00:00
|
|
|
void AttachScrollers();
|
|
|
|
void DetachScrollers();
|
2004-12-27 09:05:16 +00:00
|
|
|
|
2006-11-20 20:19:55 +00:00
|
|
|
private:
|
|
|
|
BMenuScroller *fScroller;
|
|
|
|
BMenuFrame *fMenuFrame;
|
2004-12-27 09:05:16 +00:00
|
|
|
};
|
|
|
|
|
2006-11-22 11:52:18 +00:00
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
#endif // __MENUWINDOW_H
|