22 CONTEXT_BUTTON_CANCELLED = 0,
23 CONTEXT_BUTTON_RENAME,
24 CONTEXT_BUTTON_DELETE,
26 CONTEXT_BUTTON_SETTINGS,
27 CONTEXT_BUTTON_RIP_CD,
28 CONTEXT_BUTTON_CANCEL_RIP_CD,
29 CONTEXT_BUTTON_RIP_TRACK,
30 CONTEXT_BUTTON_EJECT_DRIVE,
31 CONTEXT_BUTTON_EDIT_SOURCE,
32 CONTEXT_BUTTON_REMOVE_SOURCE,
33 CONTEXT_BUTTON_SET_DEFAULT,
34 CONTEXT_BUTTON_CLEAR_DEFAULT,
35 CONTEXT_BUTTON_SET_THUMB,
36 CONTEXT_BUTTON_ADD_LOCK,
37 CONTEXT_BUTTON_REMOVE_LOCK,
38 CONTEXT_BUTTON_CHANGE_LOCK,
39 CONTEXT_BUTTON_RESET_LOCK,
40 CONTEXT_BUTTON_REACTIVATE_LOCK,
41 CONTEXT_BUTTON_VIEW_SLIDESHOW,
42 CONTEXT_BUTTON_RECURSIVE_SLIDESHOW,
43 CONTEXT_BUTTON_REFRESH_THUMBS,
44 CONTEXT_BUTTON_SWITCH_MEDIA,
45 CONTEXT_BUTTON_MOVE_ITEM,
46 CONTEXT_BUTTON_MOVE_HERE,
47 CONTEXT_BUTTON_CANCEL_MOVE,
48 CONTEXT_BUTTON_MOVE_ITEM_UP,
49 CONTEXT_BUTTON_MOVE_ITEM_DOWN,
51 CONTEXT_BUTTON_PLAY_ITEM,
52 CONTEXT_BUTTON_PLAY_PARTYMODE,
53 CONTEXT_BUTTON_PLAY_PART,
55 CONTEXT_BUTTON_EDIT_SMART_PLAYLIST,
57 CONTEXT_BUTTON_INFO_ALL,
60 CONTEXT_BUTTON_SCAN_TO_LIBRARY,
61 CONTEXT_BUTTON_SET_ARTIST_THUMB,
62 CONTEXT_BUTTON_SET_ART,
63 CONTEXT_BUTTON_CANCEL_PARTYMODE,
64 CONTEXT_BUTTON_MARK_WATCHED,
65 CONTEXT_BUTTON_MARK_UNWATCHED,
66 CONTEXT_BUTTON_SET_CONTENT,
67 CONTEXT_BUTTON_EDIT_PARTYMODE,
68 CONTEXT_BUTTON_LINK_MOVIE,
69 CONTEXT_BUTTON_UNLINK_MOVIE,
70 CONTEXT_BUTTON_GO_TO_ARTIST,
71 CONTEXT_BUTTON_GO_TO_ALBUM,
72 CONTEXT_BUTTON_PLAY_OTHER,
73 CONTEXT_BUTTON_SET_ACTOR_THUMB,
74 CONTEXT_BUTTON_UNLINK_BOOKMARK,
75 CONTEXT_BUTTON_ACTIVATE,
76 CONTEXT_BUTTON_GROUP_MANAGER,
77 CONTEXT_BUTTON_CHANNEL_MANAGER,
78 CONTEXT_BUTTON_PLAY_AND_QUEUE,
79 CONTEXT_BUTTON_PLAY_ONLY_THIS,
80 CONTEXT_BUTTON_UPDATE_EPG,
81 CONTEXT_BUTTON_TAGS_ADD_ITEMS,
82 CONTEXT_BUTTON_TAGS_REMOVE_ITEMS,
83 CONTEXT_BUTTON_SET_MOVIESET,
84 CONTEXT_BUTTON_MOVIESET_ADD_REMOVE_ITEMS,
85 CONTEXT_BUTTON_EDIT_SORTTITLE,
86 CONTEXT_BUTTON_DELETE_ALL,
88 CONTEXT_BUTTON_PLAY_NEXT,
89 CONTEXT_BUTTON_NAVIGATE,
95 void Add(
unsigned int,
const std::string &label);
96 void Add(
unsigned int,
int label);
106 bool OnAction(
const CAction& action)
override;
107 void SetPosition(
float posX,
float posY)
override;
109 static bool SourcesMenu(
const std::string &strType,
const CFileItemPtr& item,
float posX,
float posY);
110 static void SwitchMedia(
const std::string& strType,
const std::string& strPath);
112 static void GetContextButtons(
const std::string &type,
const CFileItemPtr& item,
CContextButtons &buttons);
113 static bool OnContextButton(
const std::string &type,
const CFileItemPtr& item, CONTEXT_BUTTON button);
118 static int Show(
const CContextButtons& choices,
int focusedButton = 0);
129 void PositionAtCurrentFocus();
131 float GetWidth()
const override;
132 float GetHeight()
const override;
133 void OnInitWindow()
override;
134 void OnWindowLoaded()
override;
135 void OnDeinitWindow(
int nextWindowID)
override;
136 static std::string GetDefaultShareNameByType(
const std::string &strType);
137 static void SetDefault(
const std::string &strType,
const std::string &strDefault);
138 static void ClearDefault(
const std::string &strType);
142 float m_coordX, m_coordY;
144 float m_backgroundImageSize;
145 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:92
Represents a file on a share.
Definition: FileItem.h:102