void paintCell (Graphics& g, int row, int columnId, int width, int height, bool /*rowIsSelected*/) override { String text; bool isBlacklisted = row >= list.getNumTypes(); if (isBlacklisted) { if (columnId == nameCol) text = list.getBlacklistedFiles() [row - list.getNumTypes()]; else if (columnId == descCol) text = TRANS("Deactivated after failing to initialise correctly"); } else if (const PluginDescription* const desc = list.getType (row)) { switch (columnId) { case nameCol: text = desc->name; break; case typeCol: text = desc->pluginFormatName; break; case categoryCol: text = desc->category.isNotEmpty() ? desc->category : "-"; break; case manufacturerCol: text = desc->manufacturerName; break; case descCol: text = getPluginDescription (*desc); break; default: jassertfalse; break; } } if (text.isNotEmpty()) { g.setColour (isBlacklisted ? Colours::red : columnId == nameCol ? Colours::black : Colours::grey); g.setFont (Font (height * 0.7f, Font::bold)); g.drawFittedText (text, 4, 0, width - 6, height, Justification::centredLeft, 1, 0.9f); } }
Dummy::Dummy(void) { configurePluginInfo(getPluginTitle(), getPluginVersion(), getPluginAuthor(), getPluginDescription(), GlobalAttributes::PLUGINS_DIR + GlobalAttributes::DIR_SEPARATOR + QString("dummy") + GlobalAttributes::DIR_SEPARATOR + QString("dummy.png")); }