summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorLars Bisballe Jensen <larsbisballe@gmail.com>2014-10-22 14:57:37 +0200
committerLars Bisballe Jensen <larsbisballe@gmail.com>2014-10-22 14:57:37 +0200
commit327eca0ff84f7487d3f29eb612e79209001b3ef5 (patch)
treef200fa3a4f65b58e034eff7c7d33a9a37e5ddc6b /plugingui
parent783b507224630debf361702b7294631d66e77bef (diff)
Now shows data correctly, but elements parsed wrong, contrains newlines where non are present
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/plugingui.cc10
1 files changed, 8 insertions, 2 deletions
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<std::pair< std::string, std::string> >::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<std::pair< std::string, std::string> >::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: