move statusbar/progressbar related code to separate file

This commit is contained in:
Andrzej Rybczak
2012-09-11 21:52:41 +02:00
parent 6ab2714e2f
commit c90545b008
22 changed files with 577 additions and 457 deletions

View File

@@ -26,6 +26,7 @@
#include "global.h"
#include "settings.h"
#include "status.h"
#include "statusbar.h"
using Global::MainHeight;
using Global::MainStartY;
@@ -87,12 +88,12 @@ void Outputs::EnterPressed()
if (w->current().value().isEnabled())
{
if (Mpd.DisableOutput(w->choice()))
ShowMessage("Output \"%s\" disabled", w->current().value().name().c_str());
Statusbar::msg("Output \"%s\" disabled", w->current().value().name().c_str());
}
else
{
if (Mpd.EnableOutput(w->choice()))
ShowMessage("Output \"%s\" enabled", w->current().value().name().c_str());
Statusbar::msg("Output \"%s\" enabled", w->current().value().name().c_str());
}
if (!Mpd.SupportsIdle())
FetchList();