-
Notifications
You must be signed in to change notification settings - Fork 2
/
MenuItem.h
46 lines (37 loc) · 1.23 KB
/
MenuItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <wx/object.h>
namespace EShellMenu
{
//
// What does the command look like:
// "C:\Program Files (x86)\eshell\eshell.pl" -settingsFile "X:\Project.xml" -config production -exec Luna
// "C:\Program Files (x86)\eshell\eshell.pl" -settingsFile "X:\Project.xml" -config production -run Maya
// "C:\Program Files (x86)\eshell\eshell.pl" -settingsFile "X:\Project.xml" -config tools_builder -build "release" -code "devel"
//
class MenuItem
{
public:
MenuItem();
virtual ~MenuItem();
virtual bool Execute();
virtual bool CopyToClipboard();
public:
tstring m_Name; // Display name
tstring m_FavoriteName; // Display name for when the shortcut is in the favorites menu
tstring m_Icon; // Optional MenuIcon
tstring m_Description; // Mouse over description
tstring m_Folder; // Optional name of sub menu
tstring m_Command; // Command complete with Arguments
bool m_Disable; // true if we think the shortcut will not load
tstring m_DisableReason; // the reason this might fail
};
class MenuItemRefData : public wxObjectRefData
{
public:
MenuItemRefData( MenuItem* item )
: m_MenuItem( item )
{
}
MenuItem* m_MenuItem;
};
}