1/*
2 * Copyright 2018, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef TYPE_HANDLER_MENU_ITEM_H
6#define TYPE_HANDLER_MENU_ITEM_H
7
8
9#include "ActionMenuItem.h"
10
11
12class TypeHandler;
13
14
15class TypeHandlerMenuItem : public ActionMenuItem {
16public:
17								TypeHandlerMenuItem(const char* label,
18									BMessage* message, char shortcut = 0,
19									uint32 modifiers = 0);
20	virtual						~TypeHandlerMenuItem();
21
22	virtual	void				ItemSelected();
23
24			status_t			SetTypeHandler(TypeHandler* handler);
25									// takes over caller's reference
26
27private:
28	TypeHandler*				fTypeHandler;
29};
30
31
32#endif // TYPE_HANDLER_MENU_ITEM_H
33