Make ScrollMenu not rely on Menu.cpp

Rename ScrollMenu.cpp to MenuScrollView.cpp

Half step towards making this class work as part of Deskbar without
extending any other classes. Scrolling works both with mouse and
scroll wheel. Redraws on scroll, need to make that work better.
Also need to move classes out of the Interface Kit and into Deskbar.
This commit is contained in:
John Scipione
2012-11-12 22:03:17 -05:00
parent cb55ef9fb5
commit 49ff476d13
10 changed files with 123 additions and 107 deletions
@@ -7,8 +7,8 @@
* Stefano Ceccherini (stefano.ceccherini@gmail.com)
* John Scipione (jscipione@gmail.com)
*/
#ifndef SCROLL_MENU_H
#define SCROLL_MENU_H
#ifndef MENU_SCROLL_VIEW_H
#define MENU_SCROLL_VIEW_H
#include <View.h>
@@ -18,10 +18,10 @@ class BMenu;
class BMenuScroller;
class BScrollMenu : public BView {
class BMenuScrollView : public BView {
public:
BScrollMenu(BMenu* menu);
virtual ~BScrollMenu();
BMenuScrollView(BMenu* menu);
virtual ~BMenuScrollView();
virtual void AttachedToWindow();
virtual void DetachedFromWindow();
@@ -52,4 +52,4 @@ private:
};
#endif // SCROLL_MENU_H
#endif // MENU_SCROLL_VIEW_H