150472Speter/* 238738Sbrian * Copyright 2018, Rene Gollent, rene@gollent.com. 33161Sache * Distributed under the terms of the MIT License. 463912Sasmodai */ 5130151Sschweikh#ifndef TYPE_HANDLER_MENU_ITEM_H 63161Sache#define TYPE_HANDLER_MENU_ITEM_H 73161Sache 863912Sasmodai 963912Sasmodai#include "ActionMenuItem.h" 1063912Sasmodai 114994Sache 1235121Sdesclass TypeHandler; 1335121Sdes 1463912Sasmodai 15208116Sjillesclass TypeHandlerMenuItem : public ActionMenuItem { 16208116Sjillespublic: 1719033Sache TypeHandlerMenuItem(const char* label, 1819033Sache 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