xref: /haiku/src/apps/debugger/user_interface/gui/util/ActionMenuItem.cpp (revision 21258e2674226d6aa732321b6f8494841895af5f)
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 
7 
8 #include "ActionMenuItem.h"
9 
10 #include <new>
11 
12 #include <Looper.h>
13 
14 
15 // #pragma mark - ActionMenuItem
16 
17 
18 ActionMenuItem::ActionMenuItem(const char* label, BMessage* message,
19 	char shortcut, uint32 modifiers)
20 	:
21 	BMenuItem(label, message, shortcut, modifiers)
22 {
23 }
24 
25 
26 ActionMenuItem::ActionMenuItem(BMenu* menu,	BMessage* message)
27 	:
28 	BMenuItem(menu, message)
29 {
30 }
31 
32 
33 ActionMenuItem::~ActionMenuItem()
34 {
35 }
36 
37 
38 void
39 ActionMenuItem::PrepareToShow(BLooper* parentLooper, BHandler* targetHandler)
40 {
41 	SetTarget(targetHandler);
42 }
43 
44 
45 bool
46 ActionMenuItem::Finish(BLooper* parentLooper, BHandler* targetHandler,
47 	bool force)
48 {
49 	return false;
50 }
51 
52 
53 void
54 ActionMenuItem::ItemSelected()
55 {
56 }
57