Default to console layout until we can build a path editor thing

This commit is contained in:
casey 2016-05-28 02:58:12 -07:00
parent bfbb01fa57
commit 7220617db0
3 changed files with 6 additions and 6 deletions

View File

@ -201,7 +201,7 @@ int main(int argc, char* argv[])
state.input = NULL; state.input = NULL;
state.keyHandler = NULL; state.keyHandler = NULL;
changeLayout(state, libraryLayout); changeLayout(state, consoleLayout);
while (!quit) { while (!quit) {
/* if the focused item is an IInput, then get characters from it, /* if the focused item is an IInput, then get characters from it,

View File

@ -47,7 +47,7 @@ CommandWindow::CommandWindow(
this->bufferPosition = 0; this->bufferPosition = 0;
this->output = &output; this->output = &output;
this->paused = false; this->paused = false;
this->output->WriteLine("type 'h' or 'help'\n", BOX_COLOR_BLACK_ON_GREY); this->Help();
} }
CommandWindow::~CommandWindow() { CommandWindow::~CommandWindow() {

View File

@ -56,9 +56,9 @@ void TransportWindow::Show() {
} }
void TransportWindow::ProcessMessage(IMessage &message) { void TransportWindow::ProcessMessage(IMessage &message) {
int type = message.Type(); int type = message.Type();
if (type == REFRESH_TRANSPORT_READOUT) { if (type == REFRESH_TRANSPORT_READOUT) {
this->Update(); this->Update();
DEBOUNCE_REFRESH(REFRESH_INTERVAL_MS) DEBOUNCE_REFRESH(REFRESH_INTERVAL_MS)
} }
@ -110,11 +110,11 @@ void TransportWindow::Update() {
/* playing SONG TITLE from ALBUM NAME */ /* playing SONG TITLE from ALBUM NAME */
std::string duration = "0"; std::string duration = "0";
if (transport->GetPlaybackState() == Transport::PlaybackStopped) { if (transport->GetPlaybackState() == Transport::PlaybackStopped) {
wattron(c, gb); wattron(c, gb);
wprintw(c, "playback is stopped"); wprintw(c, "playback is stopped");
wattroff(c, gb); wattroff(c, gb);
} }
else { else {
std::string title, album; std::string title, album;