QString MIDIOut::infoText(quint32 output) { QString str; str += QString("<HTML>"); str += QString("<HEAD>"); str += QString("<TITLE>%1</TITLE>").arg(name()); str += QString("</HEAD>"); str += QString("<BODY>"); if (output == QLCOutPlugin::invalidOutput()) { str += QString("<H3>%1</H3>").arg(name()); str += QString("<P>"); str += tr("This plugin provides DMX output support for various MIDI devices."); str += QString("</P>"); } else { MIDIDevice* dev = device(output); if (dev != NULL) str += dev->infoText(); } str += QString("</BODY>"); str += QString("</HTML>"); return str; }
QString MIDIOut::infoText(t_output output) { QString str; str += QString("<HTML>"); str += QString("<HEAD>"); str += QString("<TITLE>%1</TITLE>").arg(name()); str += QString("</HEAD>"); str += QString("<BODY>"); if (output == KOutputInvalid) { str += QString("<H3>%1</H3>").arg(name()); str += QString("<P>"); str += QString("This plugin provides DMX output support thru "); str += QString("various MIDI devices."); str += QString("</P>"); } else { MIDIDevice* dev = device(output); if (dev != NULL) { str += dev->infoText(); } else { str += QString("<P><I>"); str += QString("Unable to find device. Please go to "); str += QString("the configuration dialog and click "); str += QString("the refresh button."); str += QString("</I></P>"); } } str += QString("</BODY>"); str += QString("</HTML>"); return str; }