20 enum CONTEXT_BUTTON { CONTEXT_BUTTON_CANCELLED = 0,
21 CONTEXT_BUTTON_RENAME,
22 CONTEXT_BUTTON_DELETE,
24 CONTEXT_BUTTON_SETTINGS,
25 CONTEXT_BUTTON_RIP_CD,
26 CONTEXT_BUTTON_CANCEL_RIP_CD,
27 CONTEXT_BUTTON_RIP_TRACK,
28 CONTEXT_BUTTON_EJECT_DRIVE,
29 CONTEXT_BUTTON_EDIT_SOURCE,
30 CONTEXT_BUTTON_REMOVE_SOURCE,
31 CONTEXT_BUTTON_SET_DEFAULT,
32 CONTEXT_BUTTON_CLEAR_DEFAULT,
33 CONTEXT_BUTTON_SET_THUMB,
34 CONTEXT_BUTTON_ADD_LOCK,
35 CONTEXT_BUTTON_REMOVE_LOCK,
36 CONTEXT_BUTTON_CHANGE_LOCK,
37 CONTEXT_BUTTON_RESET_LOCK,
38 CONTEXT_BUTTON_REACTIVATE_LOCK,
39 CONTEXT_BUTTON_VIEW_SLIDESHOW,
40 CONTEXT_BUTTON_RECURSIVE_SLIDESHOW,
41 CONTEXT_BUTTON_REFRESH_THUMBS,
42 CONTEXT_BUTTON_SWITCH_MEDIA,
43 CONTEXT_BUTTON_MOVE_ITEM,
44 CONTEXT_BUTTON_MOVE_HERE,
45 CONTEXT_BUTTON_CANCEL_MOVE,
46 CONTEXT_BUTTON_MOVE_ITEM_UP,
47 CONTEXT_BUTTON_MOVE_ITEM_DOWN,
49 CONTEXT_BUTTON_QUEUE_ITEM,
50 CONTEXT_BUTTON_PLAY_ITEM,
51 CONTEXT_BUTTON_PLAY_WITH,
52 CONTEXT_BUTTON_PLAY_PARTYMODE,
53 CONTEXT_BUTTON_PLAY_PART,
54 CONTEXT_BUTTON_RESUME_ITEM,
56 CONTEXT_BUTTON_EDIT_SMART_PLAYLIST,
58 CONTEXT_BUTTON_INFO_ALL,
61 CONTEXT_BUTTON_SCAN_TO_LIBRARY,
62 CONTEXT_BUTTON_SET_ARTIST_THUMB,
63 CONTEXT_BUTTON_SET_SEASON_ART,
64 CONTEXT_BUTTON_CANCEL_PARTYMODE,
65 CONTEXT_BUTTON_MARK_WATCHED,
66 CONTEXT_BUTTON_MARK_UNWATCHED,
67 CONTEXT_BUTTON_SET_CONTENT,
68 CONTEXT_BUTTON_EDIT_PARTYMODE,
69 CONTEXT_BUTTON_LINK_MOVIE,
70 CONTEXT_BUTTON_UNLINK_MOVIE,
71 CONTEXT_BUTTON_GO_TO_ARTIST,
72 CONTEXT_BUTTON_GO_TO_ALBUM,
73 CONTEXT_BUTTON_PLAY_OTHER,
74 CONTEXT_BUTTON_SET_ACTOR_THUMB,
75 CONTEXT_BUTTON_UNLINK_BOOKMARK,
76 CONTEXT_BUTTON_ACTIVATE,
77 CONTEXT_BUTTON_GROUP_MANAGER,
78 CONTEXT_BUTTON_CHANNEL_MANAGER,
79 CONTEXT_BUTTON_SET_MOVIESET_ART,
80 CONTEXT_BUTTON_PLAY_AND_QUEUE,
81 CONTEXT_BUTTON_PLAY_ONLY_THIS,
82 CONTEXT_BUTTON_UPDATE_EPG,
83 CONTEXT_BUTTON_TAGS_ADD_ITEMS,
84 CONTEXT_BUTTON_TAGS_REMOVE_ITEMS,
85 CONTEXT_BUTTON_SET_MOVIESET,
86 CONTEXT_BUTTON_MOVIESET_ADD_REMOVE_ITEMS,
87 CONTEXT_BUTTON_BROWSE_INTO,
88 CONTEXT_BUTTON_EDIT_SORTTITLE,
89 CONTEXT_BUTTON_DELETE_ALL,
91 CONTEXT_BUTTON_PLAY_NEXT,
92 CONTEXT_BUTTON_NAVIGATE,
98 void Add(
unsigned int,
const std::string &label);
99 void Add(
unsigned int,
int label);
109 bool OnAction(
const CAction& action)
override;
110 void SetPosition(
float posX,
float posY)
override;
112 static bool SourcesMenu(
const std::string &strType,
const CFileItemPtr& item,
float posX,
float posY);
113 static void SwitchMedia(
const std::string& strType,
const std::string& strPath);
115 static void GetContextButtons(
const std::string &type,
const CFileItemPtr& item,
CContextButtons &buttons);
116 static bool OnContextButton(
const std::string &type,
const CFileItemPtr& item, CONTEXT_BUTTON button);
121 static int Show(
const CContextButtons& choices,
int focusedButton = 0);
132 void PositionAtCurrentFocus();
134 float GetWidth()
const override;
135 float GetHeight()
const override;
136 void OnInitWindow()
override;
137 void OnWindowLoaded()
override;
138 void OnDeinitWindow(
int nextWindowID)
override;
139 static std::string GetDefaultShareNameByType(
const std::string &strType);
140 static void SetDefault(
const std::string &strType,
const std::string &strDefault);
141 static void ClearDefault(
const std::string &strType);
145 float m_coordX, m_coordY;
147 float m_backgroundImageSize;
148 int m_initiallyFocusedButtonIdx = 0;
Base class for controls.
Definition: GUIControl.h:75
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIDialogContextMenu.h:95
Represents a file on a share.
Definition: FileItem.h:102