mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Default to console layout until we can build a path editor thing
This commit is contained in:
parent
bfbb01fa57
commit
7220617db0
@ -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,
|
||||||
|
@ -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() {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user