actions: keep actions in array instead of map

This commit is contained in:
Andrzej Rybczak
2013-09-23 14:03:13 +02:00
parent becb32840a
commit 5625e247a4
2 changed files with 13 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ namespace Actions {//
enum class Type
{
MacroUtility,
MacroUtility = 0,
Dummy, MouseEvent, ScrollUp, ScrollDown, ScrollUpArtist, ScrollUpAlbum,
ScrollDownArtist, ScrollDownAlbum, PageUp, PageDown, MoveHome, MoveEnd,
ToggleInterface, JumpToParentDirectory, PressEnter, PressSpace, PreviousColumn,
@@ -56,7 +56,8 @@ enum class Type
ShowPlaylist, ShowBrowser, ChangeBrowseMode, ShowSearchEngine,
ResetSearchEngine, ShowMediaLibrary, ToggleMediaLibraryColumnsMode,
ShowPlaylistEditor, ShowTagEditor, ShowOutputs, ShowVisualizer,
ShowClock, ShowServerInfo
ShowClock, ShowServerInfo,
_numberOfActions // needed to dynamically calculate size of action array
};
void validateScreenSize();