From 327eca0ff84f7487d3f29eb612e79209001b3ef5 Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Wed, 22 Oct 2014 14:57:37 +0200 Subject: Now shows data correctly, but elements parsed wrong, contrains newlines where non are present --- plugingui/plugingui.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugingui') diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc index f85d98d..d87f0c3 100644 --- a/plugingui/plugingui.cc +++ b/plugingui/plugingui.cc @@ -236,31 +236,37 @@ void PluginGUI::handleMessage(Message *msg) std::string metadatatext; metadatatext.append(m.name + " v. " + m.version + "\n"); metadatatext.append(m.author + "\n"); - metadatatext.append(m.email + " " + metadatatext.append(m.website + "\n\n")); + metadatatext.append(m.email + "\n"); + metadatatext.append(m.website + "\n\n"); metadatatext.append(m.description + "\n"); metadatatext.append(m.notes + "\n\n"); metadatatext.append("Channels:\n"); std::vector >::iterator channels_it; + for(channels_it = m.channels.begin(); channels_it != m.channels.end(); channels_it++) { std::string name = channels_it->first; std::string microphone = channels_it->second; metadatatext.append("\t" + name + ": " + microphone + "\n"); } + metadatatext.append("\n\n"); metadatatext.append("Instruments:\n"); std::vector >::iterator instruments_it; - for(channels_it = m.instruments.begin(); instruments_it != m.instruments.end(); + for(instruments_it = m.instruments.begin(); instruments_it != m.instruments.end(); instruments_it++) { std::string name = instruments_it->first; std::string microphone = instruments_it->second; metadatatext.append("\t" + name + ": " + microphone + "\n"); } + drumkitinfo->setText(metadatatext); + printf("META:\n%s\n", metadatatext.c_str()); + } break; case Message::EngineSettingsMessage: -- cgit v1.2.3