xref: /haiku/src/apps/debugger/user_interface/gui/util/ActionMenuItem.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2012, Rene Gollent, rene@gollent.com.
3  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef ACTION_MENU_ITEM_H
7 #define ACTION_MENU_ITEM_H
8 
9 
10 #include <MenuItem.h>
11 
12 
13 class ActionMenuItem : public BMenuItem {
14 public:
15 								ActionMenuItem(const char* label,
16 									BMessage* message, char shortcut = 0,
17 									uint32 modifiers = 0);
18 								ActionMenuItem(BMenu* menu,
19 									BMessage* message = NULL);
20 	virtual						~ActionMenuItem();
21 
22 	virtual void				PrepareToShow(BLooper* parentLooper,
23 									BHandler* targetHandler);
24 	virtual bool				Finish(BLooper* parentLooper,
25 									BHandler* targetHandler, bool force);
26 
27 	virtual void				ItemSelected();
28 };
29 
30 
31 #endif // ACTION_MENU_ITEM_H
32