182931998SRene Gollent/*
282931998SRene Gollent * Copyright 2012, Rene Gollent, rene@gollent.com.
382931998SRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
482931998SRene Gollent * Distributed under the terms of the MIT License.
582931998SRene Gollent */
682931998SRene Gollent#ifndef ACTION_MENU_ITEM_H
782931998SRene Gollent#define ACTION_MENU_ITEM_H
882931998SRene Gollent
982931998SRene Gollent
1082931998SRene Gollent#include <MenuItem.h>
1182931998SRene Gollent
1282931998SRene Gollent
1382931998SRene Gollentclass ActionMenuItem : public BMenuItem {
1482931998SRene Gollentpublic:
1582931998SRene Gollent								ActionMenuItem(const char* label,
1682931998SRene Gollent									BMessage* message, char shortcut = 0,
1782931998SRene Gollent									uint32 modifiers = 0);
1882931998SRene Gollent								ActionMenuItem(BMenu* menu,
1982931998SRene Gollent									BMessage* message = NULL);
2082931998SRene Gollent	virtual						~ActionMenuItem();
2182931998SRene Gollent
2282931998SRene Gollent	virtual void				PrepareToShow(BLooper* parentLooper,
2382931998SRene Gollent									BHandler* targetHandler);
2482931998SRene Gollent	virtual bool				Finish(BLooper* parentLooper,
2582931998SRene Gollent									BHandler* targetHandler, bool force);
2682931998SRene Gollent
2782931998SRene Gollent	virtual void				ItemSelected();
2882931998SRene Gollent};
2982931998SRene Gollent
3082931998SRene Gollent
3182931998SRene Gollent#endif // ACTION_MENU_ITEM_H
32