adjust indentation of remaining classes in headers
This commit is contained in:
@@ -25,9 +25,8 @@
|
||||
#include "mpdpp.h"
|
||||
#include "screen.h"
|
||||
|
||||
class Browser : public Screen< NC::Menu<MPD::Item> >, public Filterable, public HasSongs, public Searchable
|
||||
struct Browser : public Screen< NC::Menu<MPD::Item> >, public Filterable, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
Browser() : itsBrowseLocally(0), itsScrollBeginning(0), itsBrowsedDir("/") { }
|
||||
|
||||
// Screen< NC::Menu<MPD::Item> > implementation
|
||||
|
||||
@@ -28,9 +28,8 @@
|
||||
#include "window.h"
|
||||
#include "screen.h"
|
||||
|
||||
class Clock : public Screen<NC::Window>
|
||||
struct Clock : public Screen<NC::Window>
|
||||
{
|
||||
public:
|
||||
virtual void resize() OVERRIDE;
|
||||
virtual void switchTo() OVERRIDE;
|
||||
|
||||
|
||||
@@ -26,19 +26,15 @@
|
||||
#include "mutable_song.h"
|
||||
#include "search_engine.h"
|
||||
|
||||
namespace Display
|
||||
{
|
||||
namespace Display {//
|
||||
|
||||
std::string Columns(size_t);
|
||||
|
||||
template <typename T> void Default(NC::Menu<T> &menu)
|
||||
{
|
||||
menu << menu.drawn()->value();
|
||||
}
|
||||
template <typename ItemT>
|
||||
void Default(NC::Menu<ItemT> &menu) { menu << menu.drawn()->value(); }
|
||||
|
||||
template <typename A, typename B> void Pair(NC::Menu< std::pair<A, B> > &menu)
|
||||
{
|
||||
menu << menu.drawn()->value().first;
|
||||
}
|
||||
template <typename A, typename B>
|
||||
void Pair(NC::Menu< std::pair<A, B> > &menu) { menu << menu.drawn()->value().first; }
|
||||
|
||||
void SongsInColumns(NC::Menu<MPD::Song> &menu, HasSongs *screen);
|
||||
|
||||
@@ -51,6 +47,7 @@ namespace Display
|
||||
void SearchEngine(NC::Menu<SEItem> &menu);
|
||||
|
||||
void Items(NC::Menu<MPD::Item> &menu);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,20 +20,24 @@
|
||||
|
||||
#include "global.h"
|
||||
|
||||
BasicScreen *Global::myScreen;
|
||||
BasicScreen *Global::myOldScreen;
|
||||
BasicScreen *Global::myPrevScreen;
|
||||
BasicScreen *Global::myLockedScreen;
|
||||
BasicScreen *Global::myInactiveScreen;
|
||||
namespace Global {//
|
||||
|
||||
NC::Window *Global::wHeader;
|
||||
NC::Window *Global::wFooter;
|
||||
BasicScreen *myScreen;
|
||||
BasicScreen *myOldScreen;
|
||||
BasicScreen *myPrevScreen;
|
||||
BasicScreen *myLockedScreen;
|
||||
BasicScreen *myInactiveScreen;
|
||||
|
||||
size_t Global::MainStartY;
|
||||
size_t Global::MainHeight;
|
||||
NC::Window *wHeader;
|
||||
NC::Window *wFooter;
|
||||
|
||||
bool Global::ShowMessages = false;
|
||||
bool Global::SeekingInProgress = false;
|
||||
size_t MainStartY;
|
||||
size_t MainHeight;
|
||||
|
||||
std::string Global::VolumeState;
|
||||
timeval Global::Timer;
|
||||
bool ShowMessages = false;
|
||||
bool SeekingInProgress = false;
|
||||
|
||||
std::string VolumeState;
|
||||
timeval Timer;
|
||||
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#include "mpdpp.h"
|
||||
#include "screen.h"
|
||||
|
||||
namespace Global
|
||||
{
|
||||
namespace Global {//
|
||||
|
||||
// currently active screen (displayed in main window)
|
||||
extern BasicScreen *myScreen;
|
||||
|
||||
@@ -67,6 +67,7 @@ namespace Global
|
||||
|
||||
// global timer
|
||||
extern timeval Timer;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
#include "actions.h"
|
||||
#include "screen.h"
|
||||
|
||||
class Help : public Screen<NC::Scrollpad>
|
||||
struct Help : public Screen<NC::Scrollpad>
|
||||
{
|
||||
public:
|
||||
virtual void resize() OVERRIDE;
|
||||
virtual void switchTo() OVERRIDE;
|
||||
|
||||
|
||||
@@ -31,9 +31,8 @@
|
||||
#include "lastfm_service.h"
|
||||
#include "screen.h"
|
||||
|
||||
class Lastfm : public Screen<NC::Scrollpad>
|
||||
struct Lastfm : public Screen<NC::Scrollpad>
|
||||
{
|
||||
public:
|
||||
Lastfm() : isReadyToTake(0), isDownloadInProgress(0) { }
|
||||
|
||||
// Screen<NC::Scrollpad>
|
||||
|
||||
@@ -28,9 +28,8 @@
|
||||
#include "screen.h"
|
||||
#include "lyrics_fetcher.h"
|
||||
|
||||
class Lyrics : public Screen<NC::Scrollpad>
|
||||
struct Lyrics : public Screen<NC::Scrollpad>
|
||||
{
|
||||
public:
|
||||
Lyrics() : ReloadNP(0),
|
||||
# ifdef HAVE_CURL_CURL_H
|
||||
isReadyToTake(0), isDownloadInProgress(0),
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
#include "interfaces.h"
|
||||
#include "screen.h"
|
||||
|
||||
class MediaLibrary : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
struct MediaLibrary : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
virtual void switchTo() OVERRIDE;
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
|
||||
@@ -29,10 +29,8 @@
|
||||
#include "mpdpp.h"
|
||||
#include "screen.h"
|
||||
|
||||
class Outputs : public Screen< NC::Menu<MPD::Output> >
|
||||
struct Outputs : public Screen< NC::Menu<MPD::Output> >
|
||||
{
|
||||
public:
|
||||
|
||||
// Screen< NC::Menu<MPD::Output> > implementation
|
||||
virtual void switchTo() OVERRIDE;
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
@@ -27,9 +27,8 @@
|
||||
#include "screen.h"
|
||||
#include "song.h"
|
||||
|
||||
class Playlist : public Screen<NC::Menu<MPD::Song>>, public Filterable, public HasSongs, public Searchable
|
||||
struct Playlist : public Screen<NC::Menu<MPD::Song>>, public Filterable, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
Playlist() : itsTotalLength(0), itsRemainingTime(0), itsScrollBegin(0) { }
|
||||
~Playlist() { }
|
||||
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
#include "interfaces.h"
|
||||
#include "screen.h"
|
||||
|
||||
class PlaylistEditor : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
struct PlaylistEditor : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
virtual void switchTo() OVERRIDE;
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
|
||||
@@ -73,9 +73,8 @@ struct SEItem
|
||||
MPD::Song itsSong;
|
||||
};
|
||||
|
||||
class SearchEngine : public Screen< NC::Menu<SEItem> >, public Filterable, public HasSongs, public Searchable
|
||||
struct SearchEngine : public Screen< NC::Menu<SEItem> >, public Filterable, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
// Screen< NC::Menu<SEItem> > implementation
|
||||
virtual void resize() OVERRIDE;
|
||||
virtual void switchTo() OVERRIDE;
|
||||
|
||||
@@ -23,9 +23,8 @@
|
||||
|
||||
#include "screen.h"
|
||||
|
||||
class SelectedItemsAdder : public Screen< NC::Menu<std::string> >
|
||||
struct SelectedItemsAdder : public Screen< NC::Menu<std::string> >
|
||||
{
|
||||
public:
|
||||
SelectedItemsAdder() : itsPSWidth(35), itsPSHeight(11) { }
|
||||
|
||||
// Screen< NC::Menu<std::string> > implementation
|
||||
|
||||
@@ -23,9 +23,8 @@
|
||||
|
||||
#include "screen.h"
|
||||
|
||||
class ServerInfo : public Screen<NC::Scrollpad>
|
||||
struct ServerInfo : public Screen<NC::Scrollpad>
|
||||
{
|
||||
public:
|
||||
// Screen<NC::Scrollpad> implementation
|
||||
virtual void switchTo() OVERRIDE;
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
#include "screen.h"
|
||||
#include "mutable_song.h"
|
||||
|
||||
class SongInfo : public Screen<NC::Scrollpad>
|
||||
struct SongInfo : public Screen<NC::Scrollpad>
|
||||
{
|
||||
public:
|
||||
struct Metadata
|
||||
{
|
||||
const char *Name;
|
||||
@@ -49,7 +48,6 @@ class SongInfo : public Screen<NC::Scrollpad>
|
||||
virtual bool isTabbable() OVERRIDE { return false; }
|
||||
|
||||
// private members
|
||||
|
||||
static const Metadata Tags[];
|
||||
|
||||
protected:
|
||||
|
||||
@@ -33,9 +33,8 @@
|
||||
#include "regex_filter.h"
|
||||
#include "screen.h"
|
||||
|
||||
class TagEditor : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
struct TagEditor : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
TagEditor() : FParser(0), FParserHelper(0), FParserLegend(0), FParserPreview(0), itsBrowsedDir("/") { }
|
||||
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
@@ -28,9 +28,8 @@
|
||||
#include "mutable_song.h"
|
||||
#include "screen.h"
|
||||
|
||||
class TinyTagEditor : public Screen< NC::Menu<NC::Buffer> >
|
||||
struct TinyTagEditor : public Screen< NC::Menu<NC::Buffer> >
|
||||
{
|
||||
public:
|
||||
// Screen< NC::Menu<NC::Buffer> > implementation
|
||||
virtual void resize() OVERRIDE;
|
||||
virtual void switchTo() OVERRIDE;
|
||||
|
||||
@@ -32,9 +32,8 @@
|
||||
# include <fftw3.h>
|
||||
#endif
|
||||
|
||||
class Visualizer : public Screen<NC::Window>
|
||||
struct Visualizer : public Screen<NC::Window>
|
||||
{
|
||||
public:
|
||||
virtual void switchTo() OVERRIDE;
|
||||
virtual void resize() OVERRIDE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user