1 /***************************************************************************
2 * Copyright (C) 2008-2013 by Andrzej Rybczak *
3 * electricityispower@gmail.com *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
21 #ifndef NCMPCPP_ACTIONS_H
22 #define NCMPCPP_ACTIONS_H
33 Dummy
, MouseEvent
, ScrollUp
, ScrollDown
, ScrollUpArtist
, ScrollUpAlbum
,
34 ScrollDownArtist
, ScrollDownAlbum
, PageUp
, PageDown
, MoveHome
, MoveEnd
,
35 ToggleInterface
, JumpToParentDirectory
, PressEnter
, PressSpace
, PreviousColumn
,
36 NextColumn
, MasterScreen
, SlaveScreen
, VolumeUp
, VolumeDown
, DeletePlaylistItems
,
37 DeleteStoredPlaylist
, DeleteBrowserItems
, ReplaySong
, Previous
, Next
, Pause
,
38 Stop
, ExecuteCommand
, SavePlaylist
, MoveSortOrderUp
, MoveSortOrderDown
,
39 MoveSelectedItemsUp
, MoveSelectedItemsDown
, MoveSelectedItemsTo
, Add
,
40 SeekForward
, SeekBackward
, ToggleDisplayMode
, ToggleSeparatorsBetweenAlbums
,
41 ToggleLyricsFetcher
, ToggleFetchingLyricsInBackground
, TogglePlayingSongCentering
,
42 UpdateDatabase
, JumpToPlayingSong
, ToggleRepeat
, Shuffle
, ToggleRandom
,
43 StartSearching
, SaveTagChanges
, ToggleSingle
, ToggleConsume
, ToggleCrossfade
,
44 SetCrossfade
, SetVolume
, EditSong
, EditLibraryTag
, EditLibraryAlbum
, EditDirectoryName
,
45 EditPlaylistName
, EditLyrics
, JumpToBrowser
, JumpToMediaLibrary
,
46 JumpToPlaylistEditor
, ToggleScreenLock
, JumpToTagEditor
, JumpToPositionInSong
,
47 ReverseSelection
, RemoveSelection
, SelectAlbum
, AddSelectedItems
,
48 CropMainPlaylist
, CropPlaylist
, ClearMainPlaylist
, ClearPlaylist
, SortPlaylist
,
49 ReversePlaylist
, ApplyFilter
, Find
, FindItemForward
, FindItemBackward
,
50 NextFoundItem
, PreviousFoundItem
, ToggleFindMode
, ToggleReplayGainMode
,
51 ToggleSpaceMode
, ToggleAddMode
, ToggleMouse
, ToggleBitrateVisibility
,
52 AddRandomItems
, ToggleBrowserSortMode
, ToggleLibraryTagType
,
53 ToggleMediaLibrarySortMode
, RefetchLyrics
, RefetchArtistInfo
,
54 SetSelectedItemsPriority
, FilterPlaylistOnPriorities
, ShowSongInfo
,
55 ShowArtistInfo
, ShowLyrics
, Quit
, NextScreen
, PreviousScreen
, ShowHelp
,
56 ShowPlaylist
, ShowBrowser
, ChangeBrowseMode
, ShowSearchEngine
,
57 ResetSearchEngine
, ShowMediaLibrary
, ToggleMediaLibraryColumnsMode
,
58 ShowPlaylistEditor
, ShowTagEditor
, ShowOutputs
, ShowVisualizer
,
59 ShowClock
, ShowServerInfo
62 void validateScreenSize();
63 void initializeScreens();
64 void setResizeFlags();
65 void resizeScreen(bool reload_main_window
);
66 void setWindowsDimensions();
69 bool askYesNoQuestion(const std::string
&question
, void (*callback
)());
70 bool isMPDMusicDirSet();
72 struct BaseAction
*get(Type at
);
73 struct BaseAction
*get(const std::string
&name
);
75 extern bool OriginalStatusbarVisibility
;
76 extern bool ExitMainLoop
;
78 extern size_t HeaderHeight
;
79 extern size_t FooterHeight
;
80 extern size_t FooterStartY
;
84 BaseAction(Type type_
, const char *name_
) : m_type(type_
), m_name(name_
) { }
86 const char *name() const { return m_name
; }
87 Type
type() const { return m_type
; }
89 virtual bool canBeRun() const { return true; }
102 virtual void run() = 0;
109 struct Dummy
: public BaseAction
111 Dummy() : BaseAction(Type::Dummy
, "dummy") { }
114 virtual void run() { }
117 struct MouseEvent
: public BaseAction
119 MouseEvent() : BaseAction(Type::MouseEvent
, "mouse_event") { }
122 virtual bool canBeRun() const;
126 MEVENT m_mouse_event
;
127 MEVENT m_old_mouse_event
;
130 struct ScrollUp
: public BaseAction
132 ScrollUp() : BaseAction(Type::ScrollUp
, "scroll_up") { }
138 struct ScrollDown
: public BaseAction
140 ScrollDown() : BaseAction(Type::ScrollDown
, "scroll_down") { }
146 struct ScrollUpArtist
: public BaseAction
148 ScrollUpArtist() : BaseAction(Type::ScrollUpArtist
, "scroll_up_artist") { }
151 virtual bool canBeRun() const;
155 struct ScrollUpAlbum
: public BaseAction
157 ScrollUpAlbum() : BaseAction(Type::ScrollUpAlbum
, "scroll_up_album") { }
160 virtual bool canBeRun() const;
164 struct ScrollDownArtist
: public BaseAction
166 ScrollDownArtist() : BaseAction(Type::ScrollDownArtist
, "scroll_down_artist") { }
169 virtual bool canBeRun() const;
173 struct ScrollDownAlbum
: public BaseAction
175 ScrollDownAlbum() : BaseAction(Type::ScrollDownAlbum
, "scroll_down_album") { }
178 virtual bool canBeRun() const;
182 struct PageUp
: public BaseAction
184 PageUp() : BaseAction(Type::PageUp
, "page_up") { }
190 struct PageDown
: public BaseAction
192 PageDown() : BaseAction(Type::PageDown
, "page_down") { }
198 struct MoveHome
: public BaseAction
200 MoveHome() : BaseAction(Type::MoveHome
, "move_home") { }
206 struct MoveEnd
: public BaseAction
208 MoveEnd() : BaseAction(Type::MoveEnd
, "move_end") { }
214 struct ToggleInterface
: public BaseAction
216 ToggleInterface() : BaseAction(Type::ToggleInterface
, "toggle_interface") { }
222 struct JumpToParentDirectory
: public BaseAction
224 JumpToParentDirectory() : BaseAction(Type::JumpToParentDirectory
, "jump_to_parent_directory") { }
227 virtual bool canBeRun() const;
231 struct PressEnter
: public BaseAction
233 PressEnter() : BaseAction(Type::PressEnter
, "press_enter") { }
239 struct PressSpace
: public BaseAction
241 PressSpace() : BaseAction(Type::PressSpace
, "press_space") { }
247 struct PreviousColumn
: public BaseAction
249 PreviousColumn() : BaseAction(Type::PreviousColumn
, "previous_column") { }
252 virtual bool canBeRun() const;
256 struct NextColumn
: public BaseAction
258 NextColumn() : BaseAction(Type::NextColumn
, "next_column") { }
261 virtual bool canBeRun() const;
265 struct MasterScreen
: public BaseAction
267 MasterScreen() : BaseAction(Type::MasterScreen
, "master_screen") { }
270 virtual bool canBeRun() const;
274 struct SlaveScreen
: public BaseAction
276 SlaveScreen() : BaseAction(Type::SlaveScreen
, "slave_screen") { }
279 virtual bool canBeRun() const;
283 struct VolumeUp
: public BaseAction
285 VolumeUp() : BaseAction(Type::VolumeUp
, "volume_up") { }
291 struct VolumeDown
: public BaseAction
293 VolumeDown() : BaseAction(Type::VolumeDown
, "volume_down") { }
299 struct DeletePlaylistItems
: public BaseAction
301 DeletePlaylistItems() : BaseAction(Type::DeletePlaylistItems
, "delete_playlist_items") { }
304 virtual bool canBeRun() const;
308 struct DeleteStoredPlaylist
: public BaseAction
310 DeleteStoredPlaylist() : BaseAction(Type::DeleteStoredPlaylist
, "delete_stored_playlist") { }
313 virtual bool canBeRun() const;
317 struct DeleteBrowserItems
: public BaseAction
319 DeleteBrowserItems() : BaseAction(Type::DeleteBrowserItems
, "delete_browser_items") { }
322 virtual bool canBeRun() const;
326 struct ReplaySong
: public BaseAction
328 ReplaySong() : BaseAction(Type::ReplaySong
, "replay_song") { }
334 struct PreviousSong
: public BaseAction
336 PreviousSong() : BaseAction(Type::Previous
, "previous") { }
342 struct NextSong
: public BaseAction
344 NextSong() : BaseAction(Type::Next
, "next") { }
350 struct Pause
: public BaseAction
352 Pause() : BaseAction(Type::Pause
, "pause") { }
358 struct Stop
: public BaseAction
360 Stop() : BaseAction(Type::Stop
, "stop") { }
366 struct ExecuteCommand
: public BaseAction
368 ExecuteCommand() : BaseAction(Type::ExecuteCommand
, "execute_command") { }
374 struct SavePlaylist
: public BaseAction
376 SavePlaylist() : BaseAction(Type::SavePlaylist
, "save_playlist") { }
382 struct MoveSortOrderUp
: public BaseAction
384 MoveSortOrderUp() : BaseAction(Type::MoveSortOrderUp
, "move_sort_order_up") { }
387 virtual bool canBeRun() const;
391 struct MoveSortOrderDown
: public BaseAction
393 MoveSortOrderDown() : BaseAction(Type::MoveSortOrderDown
, "move_sort_order_down") { }
396 virtual bool canBeRun() const;
400 struct MoveSelectedItemsUp
: public BaseAction
402 MoveSelectedItemsUp() : BaseAction(Type::MoveSelectedItemsUp
, "move_selected_items_up") { }
405 virtual bool canBeRun() const;
409 struct MoveSelectedItemsDown
: public BaseAction
411 MoveSelectedItemsDown() : BaseAction(Type::MoveSelectedItemsDown
, "move_selected_items_down") { }
414 virtual bool canBeRun() const;
418 struct MoveSelectedItemsTo
: public BaseAction
420 MoveSelectedItemsTo() : BaseAction(Type::MoveSelectedItemsTo
, "move_selected_items_to") { }
423 virtual bool canBeRun() const;
427 struct Add
: public BaseAction
429 Add() : BaseAction(Type::Add
, "add") { }
432 virtual bool canBeRun() const;
436 struct SeekForward
: public BaseAction
438 SeekForward() : BaseAction(Type::SeekForward
, "seek_forward") { }
441 virtual bool canBeRun() const;
445 struct SeekBackward
: public BaseAction
447 SeekBackward() : BaseAction(Type::SeekBackward
, "seek_backward") { }
450 virtual bool canBeRun() const;
454 struct ToggleDisplayMode
: public BaseAction
456 ToggleDisplayMode() : BaseAction(Type::ToggleDisplayMode
, "toggle_display_mode") { }
459 virtual bool canBeRun() const;
463 struct ToggleSeparatorsBetweenAlbums
: public BaseAction
465 ToggleSeparatorsBetweenAlbums()
466 : BaseAction(Type::ToggleSeparatorsBetweenAlbums
, "toggle_separators_between_albums") { }
469 virtual bool canBeRun() const;
473 struct ToggleLyricsFetcher
: public BaseAction
475 ToggleLyricsFetcher() : BaseAction(Type::ToggleLyricsFetcher
, "toggle_lyrics_fetcher") { }
478 # ifndef HAVE_CURL_CURL_H
479 virtual bool canBeRun() const;
480 # endif // NOT HAVE_CURL_CURL_H
484 struct ToggleFetchingLyricsInBackground
: public BaseAction
486 ToggleFetchingLyricsInBackground()
487 : BaseAction(Type::ToggleFetchingLyricsInBackground
, "toggle_fetching_lyrics_in_background") { }
490 # ifndef HAVE_CURL_CURL_H
491 virtual bool canBeRun() const;
492 # endif // NOT HAVE_CURL_CURL_H
496 struct TogglePlayingSongCentering
: public BaseAction
498 TogglePlayingSongCentering()
499 : BaseAction(Type::TogglePlayingSongCentering
, "toggle_playing_song_centering") { }
505 struct UpdateDatabase
: public BaseAction
507 UpdateDatabase() : BaseAction(Type::UpdateDatabase
, "update_database") { }
513 struct JumpToPlayingSong
: public BaseAction
515 JumpToPlayingSong() : BaseAction(Type::JumpToPlayingSong
, "jump_to_playing_song") { }
518 virtual bool canBeRun() const;
522 struct ToggleRepeat
: public BaseAction
524 ToggleRepeat() : BaseAction(Type::ToggleRepeat
, "toggle_repeat") { }
530 struct Shuffle
: public BaseAction
532 Shuffle() : BaseAction(Type::Shuffle
, "shuffle") { }
538 struct ToggleRandom
: public BaseAction
540 ToggleRandom() : BaseAction(Type::ToggleRandom
, "toggle_random") { }
546 struct StartSearching
: public BaseAction
548 StartSearching() : BaseAction(Type::StartSearching
, "start_searching") { }
551 virtual bool canBeRun() const;
555 struct SaveTagChanges
: public BaseAction
557 SaveTagChanges() : BaseAction(Type::SaveTagChanges
, "save_tag_changes") { }
560 virtual bool canBeRun() const;
564 struct ToggleSingle
: public BaseAction
566 ToggleSingle() : BaseAction(Type::ToggleSingle
, "toggle_single") { }
572 struct ToggleConsume
: public BaseAction
574 ToggleConsume() : BaseAction(Type::ToggleConsume
, "toggle_consume") { }
580 struct ToggleCrossfade
: public BaseAction
582 ToggleCrossfade() : BaseAction(Type::ToggleCrossfade
, "toggle_crossfade") { }
588 struct SetCrossfade
: public BaseAction
590 SetCrossfade() : BaseAction(Type::SetCrossfade
, "set_crossfade") { }
596 struct SetVolume
: public BaseAction
598 SetVolume() : BaseAction(Type::SetVolume
, "set_volume") { }
604 struct EditSong
: public BaseAction
606 EditSong() : BaseAction(Type::EditSong
, "edit_song") { }
609 virtual bool canBeRun() const;
613 struct EditLibraryTag
: public BaseAction
615 EditLibraryTag() : BaseAction(Type::EditLibraryTag
, "edit_library_tag") { }
618 virtual bool canBeRun() const;
622 struct EditLibraryAlbum
: public BaseAction
624 EditLibraryAlbum() : BaseAction(Type::EditLibraryAlbum
, "edit_library_album") { }
627 virtual bool canBeRun() const;
631 struct EditDirectoryName
: public BaseAction
633 EditDirectoryName() : BaseAction(Type::EditDirectoryName
, "edit_directory_name") { }
636 virtual bool canBeRun() const;
640 struct EditPlaylistName
: public BaseAction
642 EditPlaylistName() : BaseAction(Type::EditPlaylistName
, "edit_playlist_name") { }
645 virtual bool canBeRun() const;
649 struct EditLyrics
: public BaseAction
651 EditLyrics() : BaseAction(Type::EditLyrics
, "edit_lyrics") { }
654 virtual bool canBeRun() const;
658 struct JumpToBrowser
: public BaseAction
660 JumpToBrowser() : BaseAction(Type::JumpToBrowser
, "jump_to_browser") { }
663 virtual bool canBeRun() const;
667 struct JumpToMediaLibrary
: public BaseAction
669 JumpToMediaLibrary() : BaseAction(Type::JumpToMediaLibrary
, "jump_to_media_library") { }
672 virtual bool canBeRun() const;
676 struct JumpToPlaylistEditor
: public BaseAction
678 JumpToPlaylistEditor() : BaseAction(Type::JumpToPlaylistEditor
, "jump_to_playlist_editor") { }
681 virtual bool canBeRun() const;
685 struct ToggleScreenLock
: public BaseAction
687 ToggleScreenLock() : BaseAction(Type::ToggleScreenLock
, "toggle_screen_lock") { }
693 struct JumpToTagEditor
: public BaseAction
695 JumpToTagEditor() : BaseAction(Type::JumpToTagEditor
, "jump_to_tag_editor") { }
698 virtual bool canBeRun() const;
702 struct JumpToPositionInSong
: public BaseAction
704 JumpToPositionInSong() : BaseAction(Type::JumpToPositionInSong
, "jump_to_position_in_song") { }
707 virtual bool canBeRun() const;
711 struct ReverseSelection
: public BaseAction
713 ReverseSelection() : BaseAction(Type::ReverseSelection
, "reverse_selection") { }
716 virtual bool canBeRun() const;
720 struct RemoveSelection
: public BaseAction
722 RemoveSelection() : BaseAction(Type::RemoveSelection
, "remove_selection") { }
725 virtual bool canBeRun() const;
729 struct SelectAlbum
: public BaseAction
731 SelectAlbum() : BaseAction(Type::SelectAlbum
, "select_album") { }
734 virtual bool canBeRun() const;
738 struct AddSelectedItems
: public BaseAction
740 AddSelectedItems() : BaseAction(Type::AddSelectedItems
, "add_selected_items") { }
743 virtual bool canBeRun() const;
747 struct CropMainPlaylist
: public BaseAction
749 CropMainPlaylist() : BaseAction(Type::CropMainPlaylist
, "crop_main_playlist") { }
755 struct CropPlaylist
: public BaseAction
757 CropPlaylist() : BaseAction(Type::CropPlaylist
, "crop_playlist") { }
760 virtual bool canBeRun() const;
764 struct ClearMainPlaylist
: public BaseAction
766 ClearMainPlaylist() : BaseAction(Type::ClearMainPlaylist
, "clear_main_playlist") { }
772 struct ClearPlaylist
: public BaseAction
774 ClearPlaylist() : BaseAction(Type::ClearPlaylist
, "clear_playlist") { }
777 virtual bool canBeRun() const;
781 struct SortPlaylist
: public BaseAction
783 SortPlaylist() : BaseAction(Type::SortPlaylist
, "sort_playlist") { }
786 virtual bool canBeRun() const;
790 struct ReversePlaylist
: public BaseAction
792 ReversePlaylist() : BaseAction(Type::ReversePlaylist
, "reverse_playlist") { }
795 virtual bool canBeRun() const;
799 struct ApplyFilter
: public BaseAction
801 ApplyFilter() : BaseAction(Type::ApplyFilter
, "apply_filter") { }
804 virtual bool canBeRun() const;
808 struct Find
: public BaseAction
810 Find() : BaseAction(Type::Find
, "find") { }
813 virtual bool canBeRun() const;
817 struct FindItemForward
: public BaseAction
819 FindItemForward() : BaseAction(Type::FindItemForward
, "find_item_forward") { }
822 virtual bool canBeRun() const;
826 struct FindItemBackward
: public BaseAction
828 FindItemBackward() : BaseAction(Type::FindItemBackward
, "find_item_backward") { }
831 virtual bool canBeRun() const;
835 struct NextFoundItem
: public BaseAction
837 NextFoundItem() : BaseAction(Type::NextFoundItem
, "next_found_item") { }
840 virtual bool canBeRun() const;
844 struct PreviousFoundItem
: public BaseAction
846 PreviousFoundItem() : BaseAction(Type::PreviousFoundItem
, "previous_found_item") { }
849 virtual bool canBeRun() const;
853 struct ToggleFindMode
: public BaseAction
855 ToggleFindMode() : BaseAction(Type::ToggleFindMode
, "toggle_find_mode") { }
861 struct ToggleReplayGainMode
: public BaseAction
863 ToggleReplayGainMode() : BaseAction(Type::ToggleReplayGainMode
, "toggle_replay_gain_mode") { }
869 struct ToggleSpaceMode
: public BaseAction
871 ToggleSpaceMode() : BaseAction(Type::ToggleSpaceMode
, "toggle_space_mode") { }
877 struct ToggleAddMode
: public BaseAction
879 ToggleAddMode() : BaseAction(Type::ToggleAddMode
, "toggle_add_mode") { }
885 struct ToggleMouse
: public BaseAction
887 ToggleMouse() : BaseAction(Type::ToggleMouse
, "toggle_mouse") { }
893 struct ToggleBitrateVisibility
: public BaseAction
895 ToggleBitrateVisibility() : BaseAction(Type::ToggleBitrateVisibility
, "toggle_bitrate_visibility") { }
901 struct AddRandomItems
: public BaseAction
903 AddRandomItems() : BaseAction(Type::AddRandomItems
, "add_random_items") { }
909 struct ToggleBrowserSortMode
: public BaseAction
911 ToggleBrowserSortMode() : BaseAction(Type::ToggleBrowserSortMode
, "toggle_browser_sort_mode") { }
914 virtual bool canBeRun() const;
918 struct ToggleLibraryTagType
: public BaseAction
920 ToggleLibraryTagType() : BaseAction(Type::ToggleLibraryTagType
, "toggle_library_tag_type") { }
923 virtual bool canBeRun() const;
927 struct ToggleMediaLibrarySortMode
: public BaseAction
929 ToggleMediaLibrarySortMode()
930 : BaseAction(Type::ToggleMediaLibrarySortMode
, "toggle_media_library_sort_mode") { }
933 virtual bool canBeRun() const;
937 struct RefetchLyrics
: public BaseAction
939 RefetchLyrics() : BaseAction(Type::RefetchLyrics
, "refetch_lyrics") { }
942 virtual bool canBeRun() const;
946 struct RefetchArtistInfo
: public BaseAction
948 RefetchArtistInfo() : BaseAction(Type::RefetchArtistInfo
, "refetch_artist_info") { }
951 virtual bool canBeRun() const;
955 struct SetSelectedItemsPriority
: public BaseAction
957 SetSelectedItemsPriority()
958 : BaseAction(Type::SetSelectedItemsPriority
, "set_selected_items_priority") { }
961 virtual bool canBeRun() const;
965 struct FilterPlaylistOnPriorities
: public BaseAction
967 FilterPlaylistOnPriorities()
968 : BaseAction(Type::FilterPlaylistOnPriorities
, "filter_playlist_on_priorities") { }
971 virtual bool canBeRun() const;
975 struct ShowSongInfo
: public BaseAction
977 ShowSongInfo() : BaseAction(Type::ShowSongInfo
, "show_song_info") { }
983 struct ShowArtistInfo
: public BaseAction
985 ShowArtistInfo() : BaseAction(Type::ShowArtistInfo
, "show_artist_info") { }
988 virtual bool canBeRun() const;
992 struct ShowLyrics
: public BaseAction
994 ShowLyrics() : BaseAction(Type::ShowLyrics
, "show_lyrics") { }
1000 struct Quit
: public BaseAction
1002 Quit() : BaseAction(Type::Quit
, "quit") { }
1008 struct NextScreen
: public BaseAction
1010 NextScreen() : BaseAction(Type::NextScreen
, "next_screen") { }
1016 struct PreviousScreen
: public BaseAction
1018 PreviousScreen() : BaseAction(Type::PreviousScreen
, "previous_screen") { }
1024 struct ShowHelp
: public BaseAction
1026 ShowHelp() : BaseAction(Type::ShowHelp
, "show_help") { }
1029 virtual bool canBeRun() const;
1033 struct ShowPlaylist
: public BaseAction
1035 ShowPlaylist() : BaseAction(Type::ShowPlaylist
, "show_playlist") { }
1038 virtual bool canBeRun() const;
1042 struct ShowBrowser
: public BaseAction
1044 ShowBrowser() : BaseAction(Type::ShowBrowser
, "show_browser") { }
1047 virtual bool canBeRun() const;
1051 struct ChangeBrowseMode
: public BaseAction
1053 ChangeBrowseMode() : BaseAction(Type::ChangeBrowseMode
, "change_browse_mode") { }
1056 virtual bool canBeRun() const;
1060 struct ShowSearchEngine
: public BaseAction
1062 ShowSearchEngine() : BaseAction(Type::ShowSearchEngine
, "show_search_engine") { }
1065 virtual bool canBeRun() const;
1069 struct ResetSearchEngine
: public BaseAction
1071 ResetSearchEngine() : BaseAction(Type::ResetSearchEngine
, "reset_search_engine") { }
1074 virtual bool canBeRun() const;
1078 struct ShowMediaLibrary
: public BaseAction
1080 ShowMediaLibrary() : BaseAction(Type::ShowMediaLibrary
, "show_media_library") { }
1083 virtual bool canBeRun() const;
1087 struct ToggleMediaLibraryColumnsMode
: public BaseAction
1089 ToggleMediaLibraryColumnsMode()
1090 : BaseAction(Type::ToggleMediaLibraryColumnsMode
, "toggle_media_library_columns_mode") { }
1093 virtual bool canBeRun() const;
1097 struct ShowPlaylistEditor
: public BaseAction
1099 ShowPlaylistEditor() : BaseAction(Type::ShowPlaylistEditor
, "show_playlist_editor") { }
1102 virtual bool canBeRun() const;
1106 struct ShowTagEditor
: public BaseAction
1108 ShowTagEditor() : BaseAction(Type::ShowTagEditor
, "show_tag_editor") { }
1111 virtual bool canBeRun() const;
1115 struct ShowOutputs
: public BaseAction
1117 ShowOutputs() : BaseAction(Type::ShowOutputs
, "show_outputs") { }
1120 virtual bool canBeRun() const;
1124 struct ShowVisualizer
: public BaseAction
1126 ShowVisualizer() : BaseAction(Type::ShowVisualizer
, "show_visualizer") { }
1129 virtual bool canBeRun() const;
1133 struct ShowClock
: public BaseAction
1135 ShowClock() : BaseAction(Type::ShowClock
, "show_clock") { }
1138 virtual bool canBeRun() const;
1142 struct ShowServerInfo
: public BaseAction
1144 ShowServerInfo() : BaseAction(Type::ShowServerInfo
, "show_server_info") { }
1147 # ifdef HAVE_TAGLIB_H
1148 virtual bool canBeRun() const;
1149 # endif // HAVE_TAGLIB_H
1155 #endif // NCMPCPP_ACTIONS_H