rename status_checker -> status / + some cleaning

This commit is contained in:
Andrzej Rybczak
2009-02-15 22:56:41 +01:00
parent b43d4dddeb
commit 26365d9832
15 changed files with 19 additions and 29 deletions

View File

@@ -2,8 +2,7 @@ bin_PROGRAMS = ncmpcpp
ncmpcpp_SOURCES = browser.cpp charset.cpp clock.cpp display.cpp help.cpp \
helpers.cpp info.cpp libmpdclient.c lyrics.cpp media_library.cpp misc.cpp mpdpp.cpp \
ncmpcpp.cpp playlist.cpp playlist_editor.cpp screen.cpp scrollpad.cpp \
search_engine.cpp settings.cpp song.cpp status_checker.cpp str_pool.c tag_editor.cpp \
window.cpp
search_engine.cpp settings.cpp song.cpp status.cpp str_pool.c tag_editor.cpp window.cpp
# set the include path found by configure
INCLUDES= $(all_includes)
@@ -12,5 +11,4 @@ INCLUDES= $(all_includes)
ncmpcpp_LDFLAGS = $(all_libraries)
noinst_HEADERS = browser.h charset.h clock.h display.h global.h help.h \
helpers.h info.h lyrics.h media_library.h menu.h mpdpp.h playlist_editor.h \
screen.h scrollpad.h search_engine.h settings.h song.h status_checker.h \
tag_editor.h window.h
screen.h scrollpad.h search_engine.h settings.h song.h tag_editor.h window.h

View File

@@ -29,7 +29,7 @@
#include "helpers.h"
#include "playlist.h"
#include "settings.h"
#include "status_checker.h"
#include "status.h"
#ifdef HAVE_TAGLIB_H
# include "tag_editor.h"
#endif // HAVE_TAGLIB_H

View File

@@ -27,7 +27,7 @@
#include "global.h"
#include "playlist.h"
#include "settings.h"
#include "status_checker.h"
#include "status.h"
using namespace Global;

View File

@@ -25,7 +25,7 @@
#include "global.h"
#include "helpers.h"
#include "playlist.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace MPD;

View File

@@ -35,7 +35,7 @@
#include "playlist.h"
#include "playlist_editor.h"
#include "search_engine.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace Global;

View File

@@ -34,7 +34,7 @@
#include "search_engine.h"
#include "settings.h"
#include "song.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace Global;

View File

@@ -28,7 +28,7 @@
#include "media_library.h"
#include "mpdpp.h"
#include "playlist.h"
#include "status_checker.h"
#include "status.h"
using namespace MPD;
using namespace Global;

View File

@@ -43,7 +43,7 @@
#include "settings.h"
#include "song.h"
#include "info.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
#define CHECK_MPD_MUSIC_DIR \
@@ -209,11 +209,9 @@ int main(int argc, char *argv[])
// header stuff
gettimeofday(&past, 0);
const size_t max_allowed_title_length = wHeader ? wHeader->GetWidth()-volume_state.length() : 0;
if (((past.tv_sec == now.tv_sec && past.tv_usec >= now.tv_usec+500000)
|| past.tv_sec > now.tv_sec)
&& ((myScreen == myBrowser && myBrowser->CurrentDir().length() > max_allowed_title_length)
|| myScreen == myLyrics))
if (((past.tv_sec == now.tv_sec && past.tv_usec >= now.tv_usec+500000) || past.tv_sec > now.tv_sec)
&& (myScreen == myBrowser || myScreen == myLyrics)
)
{
redraw_header = 1;
gettimeofday(&now, 0);
@@ -329,7 +327,6 @@ int main(int argc, char *argv[])
}
else if (input == KEY_RESIZE)
{
// redraw_screen = 1;
redraw_header = 1;
if (COLS < 20 || LINES < 5)
@@ -451,7 +448,6 @@ int main(int argc, char *argv[])
myPlaylist->Main()->DeleteOption(*it);
}
ShowMessage("Selected items deleted!");
// redraw_screen = 1;
}
else
{
@@ -517,7 +513,6 @@ int main(int argc, char *argv[])
}
utf_to_locale(myPlaylistEditor->List->Current());
ShowMessage("Selected items deleted from playlist '%s'!", myPlaylistEditor->List->Current().c_str());
// redraw_screen = 1;
}
else
{
@@ -916,7 +911,6 @@ int main(int argc, char *argv[])
if (mySearcher->Main()->Size() > SearchEngine::StaticOptions)
mySearcher->Main()->SetTitle(Config.columns_in_search_engine ? Display::Columns(Config.song_columns_list_format) : "");
}
// redraw_screen = 1;
}
# ifdef HAVE_CURL_CURL_H
else if (Keypressed(input, Key.ToggleLyricsDB))
@@ -1348,7 +1342,6 @@ int main(int argc, char *argv[])
size_t id = mDialog->Choice();
// redraw_screen = 1;
if (myScreen == myLibrary)
{
myLibrary->Refresh();

View File

@@ -24,7 +24,7 @@
#include "menu.h"
#include "playlist.h"
#include "song.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace Global;

View File

@@ -27,7 +27,7 @@
#include "playlist.h"
#include "playlist_editor.h"
#include "mpdpp.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace Global;

View File

@@ -25,7 +25,7 @@
#include "menu.h"
#include "mpdpp.h"
#include "helpers.h"
#include "status_checker.h"
#include "status.h"
class BasicScreen
{

View File

@@ -24,7 +24,7 @@
#include "playlist.h"
#include "search_engine.h"
#include "settings.h"
#include "status_checker.h"
#include "status.h"
using namespace MPD;
using namespace Global;

View File

@@ -31,7 +31,7 @@
#include "playlist_editor.h"
#include "search_engine.h"
#include "settings.h"
#include "status_checker.h"
#include "status.h"
#include "tag_editor.h"
using namespace Global;

View File

@@ -38,7 +38,7 @@
#include "playlist.h"
#include "playlist_editor.h"
#include "search_engine.h"
#include "status_checker.h"
#include "status.h"
using namespace Global;
using namespace MPD;
@@ -496,10 +496,9 @@ void TagEditor::Update()
Tags->Refresh();
}
if (/*redraw_screen && */w == TagTypes && TagTypes->Choice() < 13)
if (w == TagTypes && TagTypes->Choice() < 13)
{
Tags->Refresh();
// redraw_screen = 0;
}
else if (TagTypes->Choice() >= 13)
Tags->Window::Clear();