From 90f9a66ba4d0052dbeb4b31f4d71d3a5562f9322 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 11 Nov 2016 15:26:21 +0100 Subject: actions: put all enums in a separate line --- src/actions.h | 152 +++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 125 insertions(+), 27 deletions(-) diff --git a/src/actions.h b/src/actions.h index c4354a27..1a6ee60b 100644 --- a/src/actions.h +++ b/src/actions.h @@ -36,33 +36,131 @@ namespace Actions { enum class Type { MacroUtility = 0, - Dummy, UpdateEnvironment, MouseEvent, ScrollUp, ScrollDown, ScrollUpArtist, ScrollUpAlbum, - ScrollDownArtist, ScrollDownAlbum, PageUp, PageDown, MoveHome, MoveEnd, - ToggleInterface, JumpToParentDirectory, RunAction, PreviousColumn, - NextColumn, MasterScreen, SlaveScreen, VolumeUp, VolumeDown, AddItemToPlaylist, PlayItem, - DeletePlaylistItems, DeleteStoredPlaylist, DeleteBrowserItems, ReplaySong, Previous, - Next, Pause, Stop, ExecuteCommand, SavePlaylist, MoveSortOrderUp, MoveSortOrderDown, - MoveSelectedItemsUp, MoveSelectedItemsDown, MoveSelectedItemsTo, Add, - SeekForward, SeekBackward, ToggleDisplayMode, ToggleSeparatorsBetweenAlbums, - ToggleLyricsUpdateOnSongChange, ToggleLyricsFetcher, ToggleFetchingLyricsInBackground, - TogglePlayingSongCentering, UpdateDatabase, JumpToPlayingSong, ToggleRepeat, Shuffle, - ToggleRandom, StartSearching, SaveTagChanges, ToggleSingle, ToggleConsume, ToggleCrossfade, - SetCrossfade, SetVolume, EnterDirectory, EditSong, EditLibraryTag, EditLibraryAlbum, EditDirectoryName, - EditPlaylistName, EditLyrics, JumpToBrowser, JumpToMediaLibrary, - JumpToPlaylistEditor, ToggleScreenLock, JumpToTagEditor, JumpToPositionInSong, - SelectItem, SelectRange, ReverseSelection, RemoveSelection, SelectAlbum, SelectFoundItems, - AddSelectedItems, CropMainPlaylist, CropPlaylist, ClearMainPlaylist, ClearPlaylist, - SortPlaylist, ReversePlaylist, Find, FindItemForward, FindItemBackward, - NextFoundItem, PreviousFoundItem, ToggleFindMode, ToggleReplayGainMode, - ToggleAddMode, ToggleMouse, ToggleBitrateVisibility, - AddRandomItems, ToggleBrowserSortMode, ToggleLibraryTagType, - ToggleMediaLibrarySortMode, RefetchLyrics, - SetSelectedItemsPriority, ToggleOutput, ToggleVisualizationType, SetVisualizerSampleMultiplier, - ShowSongInfo, ShowArtistInfo, ShowLyrics, Quit, NextScreen, PreviousScreen, - ShowHelp, ShowPlaylist, ShowBrowser, ChangeBrowseMode, ShowSearchEngine, - ResetSearchEngine, ShowMediaLibrary, ToggleMediaLibraryColumnsMode, - ShowPlaylistEditor, ShowTagEditor, ShowOutputs, ShowVisualizer, - ShowClock, ShowServerInfo, + Dummy, + UpdateEnvironment, + MouseEvent, + ScrollUp, + ScrollDown, + ScrollUpArtist, + ScrollUpAlbum, + ScrollDownArtist, + ScrollDownAlbum, + PageUp, + PageDown, + MoveHome, + MoveEnd, + ToggleInterface, + JumpToParentDirectory, + RunAction, + PreviousColumn, + NextColumn, + MasterScreen, + SlaveScreen, + VolumeUp, + VolumeDown, + AddItemToPlaylist, + PlayItem, + DeletePlaylistItems, + DeleteStoredPlaylist, + DeleteBrowserItems, + ReplaySong, + Previous, + Next, + Pause, + Stop, + ExecuteCommand, + SavePlaylist, + MoveSortOrderUp, + MoveSortOrderDown, + MoveSelectedItemsUp, + MoveSelectedItemsDown, + MoveSelectedItemsTo, + Add, + SeekForward, + SeekBackward, + ToggleDisplayMode, + ToggleSeparatorsBetweenAlbums, + ToggleLyricsUpdateOnSongChange, + ToggleLyricsFetcher, + ToggleFetchingLyricsInBackground, + TogglePlayingSongCentering, + UpdateDatabase, + JumpToPlayingSong, + ToggleRepeat, + Shuffle, + ToggleRandom, + StartSearching, + SaveTagChanges, + ToggleSingle, + ToggleConsume, + ToggleCrossfade, + SetCrossfade, + SetVolume, + EnterDirectory, + EditSong, + EditLibraryTag, + EditLibraryAlbum, + EditDirectoryName, + EditPlaylistName, + EditLyrics, + JumpToBrowser, + JumpToMediaLibrary, + JumpToPlaylistEditor, + ToggleScreenLock, + JumpToTagEditor, + JumpToPositionInSong, + SelectItem, + SelectRange, + ReverseSelection, + RemoveSelection, + SelectAlbum, + SelectFoundItems, + AddSelectedItems, + CropMainPlaylist, + CropPlaylist, + ClearMainPlaylist, + ClearPlaylist, + SortPlaylist, + ReversePlaylist, + Find, + FindItemForward, + FindItemBackward, + NextFoundItem, + PreviousFoundItem, + ToggleFindMode, + ToggleReplayGainMode, + ToggleAddMode, + ToggleMouse, + ToggleBitrateVisibility, + AddRandomItems, + ToggleBrowserSortMode, + ToggleLibraryTagType, + ToggleMediaLibrarySortMode, + RefetchLyrics, + SetSelectedItemsPriority, + ToggleOutput, + ToggleVisualizationType, + SetVisualizerSampleMultiplier, + ShowSongInfo, + ShowArtistInfo, + ShowLyrics, + Quit, + NextScreen, + PreviousScreen, + ShowHelp, + ShowPlaylist, + ShowBrowser, + ChangeBrowseMode, + ShowSearchEngine, + ResetSearchEngine, + ShowMediaLibrary, + ToggleMediaLibraryColumnsMode, + ShowPlaylistEditor, + ShowTagEditor, + ShowOutputs, + ShowVisualizer, + ShowClock, + ShowServerInfo, _numberOfActions // needed to dynamically calculate size of action array }; -- cgit v1.2.3