Config: reformat all descriptions to fill 80 columns
[ncmpcpp.git] / src / screens / screen_type.h
blob4fcc53eeb5a6af15efd4059a203223e9fd374ec9
1 /***************************************************************************
2 * Copyright (C) 2008-2017 by Andrzej Rybczak *
3 * electricityispower@gmail.com *
4 * *
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. *
9 * *
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. *
14 * *
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_SCREEN_TYPE_H
22 #define NCMPCPP_SCREEN_TYPE_H
24 #include <string>
25 #include "config.h"
27 // forward declaration
28 struct BaseScreen;
30 enum class ScreenType {
31 Browser,
32 # ifdef ENABLE_CLOCK
33 Clock,
34 # endif // ENABLE_CLOCK
35 Help,
36 Lastfm,
37 Lyrics,
38 MediaLibrary,
39 # ifdef ENABLE_OUTPUTS
40 Outputs,
41 # endif // ENABLE_OUTPUTS
42 Playlist,
43 PlaylistEditor,
44 SearchEngine,
45 SelectedItemsAdder,
46 ServerInfo,
47 SongInfo,
48 SortPlaylistDialog,
49 # ifdef HAVE_TAGLIB_H
50 TagEditor,
51 TinyTagEditor,
52 # endif // HAVE_TAGLIB_H
53 Unknown,
54 # ifdef ENABLE_VISUALIZER
55 Visualizer,
56 # endif // ENABLE_VISUALIZER
59 std::string screenTypeToString(ScreenType st);
61 ScreenType stringtoStartupScreenType(const std::string &s);
62 ScreenType stringToScreenType(const std::string &s);
64 BaseScreen *toScreen(ScreenType st);
66 #endif // NCMPCPP_SCREEN_TYPE_H